Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroliviert2016-12-05 10:12:41 -0500
committeroliviert2016-12-05 10:12:41 -0500
commit2c899a795e226ccaabbc3d0abe69491243897ed5 (patch)
tree35aba7ecc0a47f1d36509cfa4d42d2579244f6ed /org.eclipse.jdt.core.internal.tools
parent3dcdbaddb573d591473681efe30e6739dd14f048 (diff)
downloadeclipse.jdt.core-2c899a795e226ccaabbc3d0abe69491243897ed5.tar.gz
eclipse.jdt.core-2c899a795e226ccaabbc3d0abe69491243897ed5.tar.xz
eclipse.jdt.core-2c899a795e226ccaabbc3d0abe69491243897ed5.zip
Bug 508624 - simplify environment management
Diffstat (limited to 'org.eclipse.jdt.core.internal.tools')
-rw-r--r--org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierPartResources.java2
-rw-r--r--org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierStartResources.java2
-rw-r--r--org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/UnicodeResourceGenerator.java8
3 files changed, 9 insertions, 3 deletions
diff --git a/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierPartResources.java b/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierPartResources.java
index c6533a8832..8ed6e75dd0 100644
--- a/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierPartResources.java
+++ b/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierPartResources.java
@@ -6,6 +6,6 @@ public class GenerateIdentifierPartResources {
public static void main(String[] args) throws IOException {
UnicodeResourceGenerator generator = new UnicodeResourceGenerator(args, true);
- generator.generate(new PartEnvironment());
+ generator.generate();
}
}
diff --git a/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierStartResources.java b/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierStartResources.java
index abb7422d7b..d60b983090 100644
--- a/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierStartResources.java
+++ b/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/GenerateIdentifierStartResources.java
@@ -6,6 +6,6 @@ public class GenerateIdentifierStartResources {
public static void main(String[] args) throws IOException {
UnicodeResourceGenerator generator = new UnicodeResourceGenerator(args, false);
- generator.generate(new StartEnvironment());
+ generator.generate();
}
}
diff --git a/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/UnicodeResourceGenerator.java b/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/UnicodeResourceGenerator.java
index ec5a7f268f..4d26774271 100644
--- a/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/UnicodeResourceGenerator.java
+++ b/org.eclipse.jdt.core.internal.tools/src/org/eclipse/jdt/core/internal/tools/unicode/UnicodeResourceGenerator.java
@@ -25,7 +25,13 @@ public class UnicodeResourceGenerator {
this.generateParts = doPart;
}
- public void generate(Environment environment) throws IOException {
+ public void generate() throws IOException {
+ Environment environment = null;
+ if (this.generateParts) {
+ environment = new PartEnvironment();
+ } else {
+ environment = new StartEnvironment();
+ }
if (this.args == null) {
// wrong settings
return;

Back to the top