diff options
Diffstat (limited to 'bundles/org.eclipse.swt.tools')
-rw-r--r-- | bundles/org.eclipse.swt.tools/plugin.properties | 2 | ||||
-rw-r--r-- | bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/bundles/org.eclipse.swt.tools/plugin.properties b/bundles/org.eclipse.swt.tools/plugin.properties index 3065bf1b0c..a7444a35e3 100644 --- a/bundles/org.eclipse.swt.tools/plugin.properties +++ b/bundles/org.eclipse.swt.tools/plugin.properties @@ -14,4 +14,4 @@ macViewName = Mac Generator spyViewName = SWT Spy sleakViewName = Sleak jniBuilderName = JNI Builder -enableCheck64Name = Report 64-bit Problems +enableCheck64Name = Report 32/64-bit Problems diff --git a/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java b/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java index f28a2accbb..4a01e75775 100644 --- a/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java +++ b/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/builders/Check64CompilationParticipant.java @@ -157,7 +157,7 @@ void createProblems(IJavaProject project, String root) throws CoreException { if (resource != null) { int start = Integer.parseInt(node.getAttribute("charStart")); int end = Integer.parseInt(node.getAttribute("charEnd")); - String message = "[64] " + ((Element)node.getElementsByTagName("message").item(0)).getAttribute("value"); + String message = "[32/64] " + ((Element)node.getElementsByTagName("message").item(0)).getAttribute("value"); IMarker marker = resource.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER); int severity = IMarker.SEVERITY_ERROR; marker.setAttributes( @@ -189,15 +189,15 @@ boolean replace(char[] source, char[] src, char[] dest) { boolean replace(char[] source) { boolean changed = false; - changed |= replace(source, INT_LONG, LONG_INT); - changed |= replace(source, INT_LONG_ARRAY, LONG_INT_ARRAY); - changed |= replace(source, FLOAT_DOUBLE, DOUBLE_FLOAT); - changed |= replace(source, FLOAT_DOUBLE_ARRAY, DOUBLE_FLOAT_ARRAY); + changed |= replace(source, LONG_INT, INT_LONG); + changed |= replace(source, LONG_INT_ARRAY, INT_LONG_ARRAY); + changed |= replace(source, DOUBLE_FLOAT, FLOAT_DOUBLE); + changed |= replace(source, DOUBLE_FLOAT_ARRAY, FLOAT_DOUBLE_ARRAY); if (!changed) { - changed |= replace(source, LONG_INT, INT_LONG); - changed |= replace(source, LONG_INT_ARRAY, INT_LONG_ARRAY); - changed |= replace(source, DOUBLE_FLOAT, FLOAT_DOUBLE); - changed |= replace(source, DOUBLE_FLOAT_ARRAY, FLOAT_DOUBLE_ARRAY); + changed |= replace(source, INT_LONG, LONG_INT); + changed |= replace(source, INT_LONG_ARRAY, LONG_INT_ARRAY); + changed |= replace(source, FLOAT_DOUBLE, DOUBLE_FLOAT); + changed |= replace(source, FLOAT_DOUBLE_ARRAY, DOUBLE_FLOAT_ARRAY); } return changed; } |