summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Charles David2013-12-02 08:40:39 (EST)
committerPierre-Charles David2013-12-02 08:40:39 (EST)
commitb4dda30d105032766abcf53c39b24ced2da6cabe (patch)
tree955296bf8d0a73fb50662b6724d61fc6873c367b
parentfc452639e53a39651fb63432c81feec1ba635177 (diff)
downloadorg.eclipse.acceleo-b4dda30d105032766abcf53c39b24ced2da6cabe.zip
org.eclipse.acceleo-b4dda30d105032766abcf53c39b24ced2da6cabe.tar.gz
org.eclipse.acceleo-b4dda30d105032766abcf53c39b24ced2da6cabe.tar.bz2
[421983] Fix serialization of the trim-position builder settingrefs/changes/99/19199/1
Change-Id: I4589957dadb544a4001cd59a959030afa7450a1b Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
-rw-r--r--plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilderSettings.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilderSettings.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilderSettings.java
index 0d946fa..ce8bc3d 100644
--- a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilderSettings.java
+++ b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/builders/AcceleoBuilderSettings.java
@@ -122,7 +122,7 @@ public class AcceleoBuilderSettings {
ICommand[] commands = desc.getBuildSpec();
ICommand command = getCommand(commands);
if (command != null) {
- Object arg = command.getArguments().get(BUILD_COMPLIANCE_KEYWORD);
+ String arg = command.getArguments().get(BUILD_COMPLIANCE_KEYWORD);
if (BUILD_STRICT_MTL_COMPLIANCE.equals(arg)) {
compliance = BUILD_STRICT_MTL_COMPLIANCE;
} else {
@@ -137,7 +137,7 @@ public class AcceleoBuilderSettings {
}
arg = command.getArguments().get(TRIM_POSITION_RESOURCE_KEYWORD);
- if (arg instanceof Boolean && ((Boolean)arg).booleanValue()) {
+ if (Boolean.parseBoolean(arg)) {
trimmedPositions = true;
}
@@ -253,6 +253,7 @@ public class AcceleoBuilderSettings {
args.put(BUILD_COMPLIANCE_KEYWORD, compliance);
args.put(BUILD_RESOURCE_KIND, resourceKind);
args.put(COMPILATION_PATH_KIND_KEYWORD, compilationKind);
+ args.put(TRIM_POSITION_RESOURCE_KEYWORD, String.valueOf(trimmedPositions));
command.setArguments(args);
desc.setBuildSpec(commands);
project.setDescription(desc, null);