Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroliviert2016-12-05 08:42:28 -0500
committeroliviert2016-12-05 08:42:28 -0500
commit3dcdbaddb573d591473681efe30e6739dd14f048 (patch)
treefedca3b7ce5858f51ba6f5c6b9436209fa699aef /org.eclipse.jdt.core.internal.tools
parent464c3902ffc2c81abd5330392b8b48d9e436e536 (diff)
downloadeclipse.jdt.core-3dcdbaddb573d591473681efe30e6739dd14f048.tar.gz
eclipse.jdt.core-3dcdbaddb573d591473681efe30e6739dd14f048.tar.xz
eclipse.jdt.core-3dcdbaddb573d591473681efe30e6739dd14f048.zip
Bug 508624 - Fix predefined range generation
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.java6
3 files changed, 6 insertions, 4 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 2885ed913b..c6533a8832 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
@@ -5,7 +5,7 @@ import java.io.IOException;
public class GenerateIdentifierPartResources {
public static void main(String[] args) throws IOException {
- UnicodeResourceGenerator generator = new UnicodeResourceGenerator(args);
+ UnicodeResourceGenerator generator = new UnicodeResourceGenerator(args, true);
generator.generate(new PartEnvironment());
}
}
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 96a0b93082..abb7422d7b 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
@@ -5,7 +5,7 @@ import java.io.IOException;
public class GenerateIdentifierStartResources {
public static void main(String[] args) throws IOException {
- UnicodeResourceGenerator generator = new UnicodeResourceGenerator(args);
+ UnicodeResourceGenerator generator = new UnicodeResourceGenerator(args, false);
generator.generate(new StartEnvironment());
}
}
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 46ee184230..ec5a7f268f 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
@@ -6,8 +6,9 @@ public class UnicodeResourceGenerator {
double unicodeValue = -1.0;
String[] args = null;
+ boolean generateParts;
- UnicodeResourceGenerator(String[] args) {
+ UnicodeResourceGenerator(String[] args, boolean doPart) {
if (args.length != 3) {
System.err.println("Usage: " + GenerateIdentifierStartResources.class + " <unicode version> <path to ucd.all.flat.xml> <export directory>"); //$NON-NLS-1$ //$NON-NLS-2$
return;
@@ -21,6 +22,7 @@ public class UnicodeResourceGenerator {
return;
}
this.args = args;
+ this.generateParts = doPart;
}
public void generate(Environment environment) throws IOException {
@@ -28,7 +30,7 @@ public class UnicodeResourceGenerator {
// wrong settings
return;
}
- String[] codePointTable = TableBuilder.buildTables(this.unicodeValue, true, environment, this.args[1]);
+ String[] codePointTable = TableBuilder.buildTables(this.unicodeValue, this.generateParts, environment, this.args[1]);
if (codePointTable == null) {
System.err.println("Generation failed"); //$NON-NLS-1$
return;

Back to the top