Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #40

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 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
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
14 changes: 9 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ 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
Expand Down
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>
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.

11 changes: 6 additions & 5 deletions bundles/org.enterprisedomain.classmaker.cdo/.classpath
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?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-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"/>
<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="output" path="bin" />
</classpath>
12 changes: 6 additions & 6 deletions bundles/org.enterprisedomain.classmaker.cdo/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: ClassMaker CDO Support
Bundle-SymbolicName: org.enterprisedomain.classmaker.cdo;singleton:=true
Bundle-Version: 0.8.55.qualifier
Bundle-Version: 0.8.55
Bundle-Vendor: Kyrill Zotkin
Automatic-Module-Name: org.enterprisedomain.classmaker.cdo
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-RequiredExecutionEnvironment: JavaSE-21
Bundle-Activator: org.enterprisedomain.classmaker.cdo.Activator
Require-Bundle: org.eclipse.osgi;bundle-version="[3.16.200,4.0.0)",
org.enterprisedomain.classmaker;bundle-version="0.8.55",
org.eclipse.emf.cdo;bundle-version="4.15.0";visibility:=reexport,
org.eclipse.emf.cdo.edit;bundle-version="4.5.6";visibility:=reexport
Require-Bundle: org.eclipse.osgi;bundle-version="[3.18.200,4.0.0)",
org.enterprisedomain.classmaker;bundle-version="0.8.55";visibility:=reexport,
org.eclipse.emf.cdo;bundle-version="[4.21.0,5.0.0)";visibility:=reexport,
org.eclipse.emf.cdo.edit;bundle-version="[4.5.6,5.0.0)";visibility:=reexport
Export-Package: org.enterprisedomain.classmaker.cdo
Loading
Loading