Skip to content

Commit 2ed3db2

Browse files
committed
EDIT: Support for Eclipse 2020-06.
1 parent f80794b commit 2ed3db2

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

META-INF/MANIFEST.MF

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ Bundle-SymbolicName: JavaCodeEcorification;singleton:=true
55
Bundle-Version: 1.0.0.qualifier
66
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
77
Require-Bundle: org.eclipse.ui,
8-
org.eclipse.emf.ecore;bundle-version="2.12.0",
9-
org.eclipse.emf.ecore.xmi;bundle-version="2.12.0",
10-
org.eclipse.core.resources;bundle-version="3.11.0",
11-
org.eclipse.core.runtime;bundle-version="3.12.0",
12-
org.eclipse.jdt.core;bundle-version="3.12.1",
13-
org.eclipse.jdt.launching;bundle-version="3.8.100",
8+
org.eclipse.emf.ecore,
9+
org.eclipse.emf.ecore.xmi,
10+
org.eclipse.core.resources,
11+
org.eclipse.core.runtime,
12+
org.eclipse.jdt.core,
13+
org.eclipse.jdt.launching,
1414
org.junit,
15-
org.apache.log4j;bundle-version="1.2.15",
16-
org.eclipse.emf.importer.ecore;bundle-version="2.8.0",
17-
org.eclipse.emf.codegen.ecore;bundle-version="2.12.0",
15+
org.apache.log4j,
16+
org.eclipse.emf.importer.ecore,
17+
org.eclipse.emf.codegen.ecore,
1818
org.eclipse.xtext.xbase.lib,
1919
org.eclipse.xtend.lib,
2020
org.eclipse.xtend.lib.macro,
21-
EcoreMetamodelExtraction;bundle-version="1.0.0",
21+
EcoreMetamodelExtraction,
2222
org.eclipse.text,
23-
org.eclipse.pde.core;bundle-version="3.11.1",
23+
org.eclipse.pde.core,
2424
org.eclipse.jdt.ui,
2525
org.eclipse.ltk.core.refactoring,
2626
org.eclipse.swt,

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This process is depicted in the following diagram:
1111
## How to install:
1212
1. Clone or download the project.
1313
2. Import as existing project into the Eclipse IDE.
14-
3. Do the steps one and two of the [EcoreMetamodelExtraction project](https://github.com/tsaglam/EcoreMetamodelExtraction) installation instructions (use Eclipse 2018-09 or newer, Oxygen is no longer supported).
15-
4. You need the Eclipse Modeling Framework, the Eclipse Java Development Tools, the Eclipse Plug-in Development Environment, the Xtend IDE and [XAnnotations](https://github.com/kit-sdq/XAnnotations). Make sure that all five are installed.
14+
3. Do the steps one and two of the [EcoreMetamodelExtraction project](https://github.com/tsaglam/EcoreMetamodelExtraction) installation instructions (use Eclipse 2018-09 or newer, Oxygen is no longer supported, tested up to Eclipse 2020-06).
15+
4. You need the Eclipse Modeling Framework, the Eclipse Java Development Tools, the Eclipse Plug-in Development Environment, the Xtend IDE, [XAnnotations](https://github.com/kit-sdq/XAnnotations), and log4j. Make sure that all of them are installed.
1616
5. Run the project as Eclipse Application.
1717
6. You can start the extraction from the context menu of a Java project (provisional UI).

src/main/java/jce/codemanipulation/ImportOrganizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public ImportOrganizer(EcorificationProperties properties) {
3636
@Override
3737
protected void manipulate(ICompilationUnit unit) throws JavaModelException {
3838
unit.becomeWorkingCopy(monitor); // changes unit handle to working copy
39-
CompilationUnit reconciledUnit = unit.reconcile(AST.JLS10, false, null, monitor);
39+
CompilationUnit reconciledUnit = unit.reconcile(AST.JLS14 , false, null, monitor);
4040
try {
4141
OrganizeImportsOperation operation = new OrganizeImportsOperation(unit, reconciledUnit, true, true, true, null);
4242
TextEdit edit = operation.createTextEdit(monitor);

0 commit comments

Comments
 (0)