Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f5d5889
Update workbench bundle
kyrillzotkin Jan 15, 2023
2e3af64
Exclusive or non-exclusive customizers
Jan 15, 2023
8ef2ba9
Exclusive or non-exclusive customizers
kyrillzotkin Jan 15, 2023
4ddb230
Merge branch 'develop' of git@github.com:enterpriseDomain/ClassMaker.…
Jan 15, 2023
a3cd117
CDO Generator Customizer
kyrillzotkin Jan 15, 2023
71a0574
Merge branch 'master' into develop
kyrillzotkin Jan 15, 2023
316c6e9
Update parent POM
kyrillzotkin Jan 15, 2023
b7649f8
Update POM
kyrillzotkin Jan 15, 2023
4f44630
Update POM dependencies
kyrillzotkin Jan 16, 2023
c6396dc
Update tests
kyrillzotkin Jan 16, 2023
eab9d92
Update MANIFESTs
kyrillzotkin Jan 16, 2023
c7189d0
Closes #12, Libraries, PDEBuildExporter
kyrillzotkin Apr 19, 2023
c2a3f40
Some minor updates
kyrillzotkin Apr 20, 2023
bb84d06
Several minor changes
kyrillzotkin May 2, 2023
c671b09
Update target definition
kyrillzotkin May 2, 2023
6483005
CustomClassLoader
kyrillzotkin Sep 4, 2023
7a82918
Update JGit version in target platform
kyrillzotkin Sep 4, 2023
6408b07
Update windowImages
kyrillzotkin Sep 7, 2023
fdcf820
Some useful updates
kyrillzotkin Dec 9, 2023
b4d2e34
Update target
kyrillzotkin Dec 9, 2023
261c44b
Update workflow
kyrillzotkin Dec 9, 2023
fd4afc5
Update maven.yml
kyrillzotkin Dec 9, 2023
d2b65ca
Partial update
kyrillzotkin Feb 8, 2024
25c70be
Several changes
kyrillzotkin Oct 2, 2024
301f6ab
Update Actions versions
kyrillzotkin Oct 6, 2024
477fd89
Remove some projects
kyrillzotkin Oct 6, 2024
49240f8
Update imports
kyrillzotkin Oct 6, 2024
cac4875
Add sought for
kyrillzotkin Oct 6, 2024
34b5f90
Some update
kyrillzotkin Oct 6, 2024
52ea005
Update setup
kyrillzotkin Oct 11, 2024
0603782
Versions, extract UI plug-in
kyrillzotkin Mar 21, 2025
65b8241
Package UI plug-in to feature
kyrillzotkin Mar 23, 2025
1829f12
Add Edit feature to Maven
kyrillzotkin Mar 23, 2025
9ab28fc
Update maven.yml
kyrillzotkin Mar 28, 2025
79e89c4
Update maven.yml
kyrillzotkin Mar 28, 2025
5079e71
Update target
kyrillzotkin Apr 16, 2025
3bda801
Merge branch 'develop' of git@github.com:enterpriseDomain/ClassMaker.…
kyrillzotkin Apr 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21">
<attributes>
<attribute name="module" value="true"/>
</attributes>
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.0
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
- name: Copy toolchain
run: |
mkdir -p ~/.m2/
echo "<toolchains xmlns=\"http://maven.apache.org/TOOLCHAINS/1.1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/TOOLCHAINS/1.1.0 http://maven.apache.org/xsd/toolchains-1.1.0.xsd\"><toolchain><type>jdk</type><provides><version>17</version><vendor>eclipse</vendor></provides><configuration><jdkHome>/$JAVA_HOME</jdkHome></configuration></toolchain></toolchains>" > ~/.m2/toolchains.xml
echo "<toolchains xmlns=\"http://maven.apache.org/TOOLCHAINS/1.1.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://maven.apache.org/TOOLCHAINS/1.1.0 http://maven.apache.org/xsd/toolchains-1.1.0.xsd\"><toolchain><type>jdk</type><provides><id>JavaSE-21</id><version>21</version><vendor>eclipse</vendor></provides><configuration><jdkHome>/$JAVA_HOME</jdkHome></configuration></toolchain></toolchains>" > ~/.m2/toolchains.xml
- name: Build with Maven
run:
mvn -B clean package --file pom.xml
- name: Deploy with Maven
env:
BT_PAT: ${{ secrets.BT_TOKEN }}
T: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><settings xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd\" xmlns=\"http://maven.apache.org/SETTINGS/1.1.0\"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><servers><server><configuration><httpHeaders><property><name>Authorization</name><value>Bearer $BT_PAT</value></property></httpHeaders></configuration><id>github</id></server></servers><profiles><profile><repositories><repository><id>central</id><url>https://repo1.maven.org/maven2</url></repository><repository><id>github</id><url>https://maven.pkg.github.com/enterpriseDomain/*</url><snapshots><enabled>true</enabled></snapshots></repository></repositories><id>github</id></profile></profiles><activeProfiles><activeProfile>github</activeProfile></activeProfiles></settings>" > ~/.m2/settings.xml
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><settings xsi:schemaLocation=\"http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd\" xmlns=\"http://maven.apache.org/SETTINGS/1.1.0\"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><servers><server><configuration><httpHeaders><property><name>Authorization</name><value>Bearer $T</value></property></httpHeaders></configuration><id>github</id></server></servers><profiles><profile><repositories><repository><id>central</id><url>https://repo1.maven.org/maven2</url></repository><repository><id>github</id><url>https://maven.pkg.github.com/enterpriseDomain/*</url><snapshots><enabled>true</enabled></snapshots></repository></repositories><id>github</id></profile></profiles><activeProfiles><activeProfile>github</activeProfile></activeProfiles></settings>" > ~/.m2/settings.xml
mvn clean deploy -s ~/.m2/settings.xml

6 changes: 3 additions & 3 deletions .mvn/extensions.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<extensions>
<extension>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pomless</artifactId>
<version>0.25.0</version>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-build</artifactId>
<version>4.0.8</version>
</extension>
</extensions>
11 changes: 8 additions & 3 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@ org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nul
org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=21
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=21
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.APILeak=warning
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
Expand Down Expand Up @@ -107,4 +112,4 @@ org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=17
org.eclipse.jdt.core.compiler.source=21
13 changes: 5 additions & 8 deletions bundles/org.enterprisedomain.classmaker.cdo.ui/.classpath
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins" />
<classpathentry kind="src" path="src" />
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21" />
<classpathentry kind="output" path="bin" />
</classpath>
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
org.eclipse.jdt.core.compiler.compliance=17
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11
org.eclipse.jdt.core.compiler.source=17
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ClassMaker CDO UI Support
Bundle-SymbolicName: org.enterprisedomain.classmaker.cdo.ui
Bundle-Version: 0.8.55.qualifier
Bundle-SymbolicName: org.enterprisedomain.classmaker.cdo.ui;singleton:=true
Bundle-Version: 0.8.55
Bundle-Vendor: Kyrill Zotkin
Require-Bundle: org.enterprisedomain.classmaker.cdo;bundle-version="0.0.1",
org.eclipse.emf.cdo.ui.shared;bundle-version="4.5.0",
org.eclipse.emf.cdo.ui;bundle-version="4.9.1",
org.eclipse.emf.cdo.explorer.ui;bundle-version="4.7.1",
org.eclipse.net4j.tcp;bundle-version="4.2.1",
org.eclipse.emf.ecp.view.context;bundle-version="1.26.0",
org.eclipse.emf.ecp.ui.view;bundle-version="1.26.0",
org.eclipse.emf.ecp.ui.view.swt;bundle-version="1.26.0",
org.eclipse.emf.cdo.ui.shared;bundle-version="[4.5.0,5.0.0)",
org.eclipse.emf.cdo.ui;bundle-version="[4.9.1,5.0.0)",
org.eclipse.emf.cdo.explorer.ui;bundle-version="[4.7.1,5.0.0)",
org.eclipse.net4j.tcp;bundle-version="[4.2.1,5.0.0)",
org.eclipse.equinox.concurrent;bundle-version="1.2.0"
Automatic-Module-Name: org.enterprisedomain.classmaker.cdo.ui
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-RequiredExecutionEnvironment: JavaSE-21
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source.. = src/
output.. = bin/
bin.includes = META-INF/,\
.
.,\
plugin.xml
16 changes: 16 additions & 0 deletions bundles/org.enterprisedomain.classmaker.cdo.ui/plugin.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.emf.cdo.ui.editorOpeners">
<editorOpener
class="org.enterprisedomain.classmaker.cdo.ui.CDOEditorOpener"
icon="platform:/plugin/org.eclipse.emf.cdo.ui.shared/icons/full/obj16/cdo_editor.gif"
id="org.enterprisedomain.classmaker.cdo.ui.editorOpener"
name="CDO Editor"
priority="700"
regex="cdo.*">
</editorOpener>
</extension>

</plugin>
6 changes: 4 additions & 2 deletions bundles/org.enterprisedomain.classmaker.cdo.ui/pom.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.enterprisedomain</groupId>
<artifactId>org.enterprisedomain.root</artifactId>
<version>0.8.55-SNAPSHOT</version>
<version>0.8.55</version>
<relativePath>../../</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package org.enterprisedomain.classmaker.cdo.ui;

import org.eclipse.emf.cdo.explorer.ui.checkouts.CDOModelEditorInput;
import org.eclipse.emf.cdo.transaction.CDOCommitContext;
import org.eclipse.emf.cdo.transaction.CDOTransaction;
import org.eclipse.emf.cdo.transaction.CDOTransactionHandler2;
import org.eclipse.emf.cdo.ui.CDOEditorUtil;
import org.eclipse.emf.common.util.URI;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchPage;
import org.enterprisedomain.classmaker.core.ClassMakerPlugin;

public class CDOEditorOpener extends org.eclipse.emf.cdo.ui.CDOEditorOpener.Default {

public CDOEditorOpener() {
}

@Override
protected IEditorPart doOpenEditor(IWorkbenchPage page, URI uri) {
CDOModelEditorInput editorInput = new CDOModelEditorInput(uri) {

@Override
protected void configureTransaction(CDOTransaction transaction) {
transaction.addTransactionHandler(new CDOTransactionHandler2() {

@Override
public void rolledBackTransaction(CDOTransaction transaction) {
System.out.println("rolledBackTransaction " + transaction);
}

@Override
public void committingTransaction(CDOTransaction transaction, CDOCommitContext commitContext) {
System.out.println("committingTransaction " + transaction);
}

@Override
public void committedTransaction(CDOTransaction transaction, CDOCommitContext commitContext) {
System.out.println("committedTransaction " + transaction);
}
});
super.configureTransaction(transaction);
}

};
String editorID = CDOEditorUtil.getEditorID();
try {
return page.openEditor(editorInput, editorID);
} catch (Exception ex) {
ClassMakerPlugin.getInstance().getLog().log(ClassMakerPlugin.createErrorStatus(ex));
return null;
}
}

}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ClassMaker CDO UI Support
Bundle-SymbolicName: org.enterprisedomain.classmaker.cdo.ui
Bundle-Version: 0.8.55.202208170821
Bundle-SymbolicName: org.enterprisedomain.classmaker.cdo.ui;singleton:=t
rue
Bundle-Version: 0.8.55
Bundle-Vendor: Kyrill Zotkin
Require-Bundle: org.enterprisedomain.classmaker.cdo;bundle-version="0.0.
1",org.eclipse.emf.cdo.ui.shared;bundle-version="4.5.0",org.eclipse.emf
.cdo.ui;bundle-version="4.9.1",org.eclipse.emf.cdo.explorer.ui;bundle-v
ersion="4.7.1",org.eclipse.net4j.tcp;bundle-version="4.2.1",org.eclipse
.emf.ecp.view.context;bundle-version="1.26.0",org.eclipse.emf.ecp.ui.vi
ew;bundle-version="1.26.0",org.eclipse.emf.ecp.ui.view.swt;bundle-versi
on="1.26.0",org.eclipse.equinox.concurrent;bundle-version="1.2.0"
1",org.eclipse.emf.cdo.ui.shared;bundle-version="[4.5.0,5.0.0)",org.ecl
ipse.emf.cdo.ui;bundle-version="[4.9.1,5.0.0)",org.eclipse.emf.cdo.expl
orer.ui;bundle-version="[4.7.1,5.0.0)",org.eclipse.net4j.tcp;bundle-ver
sion="[4.2.1,5.0.0)",org.eclipse.equinox.concurrent;bundle-version="1.2
.0"
Automatic-Module-Name: org.enterprisedomain.classmaker.cdo.ui
Bundle-RequiredExecutionEnvironment: JavaSE-11
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=21))"

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading