ada.project/src/org/netbeans/modules/ada/project/ui/properties/AdaProjectProperties.java
1.1 --- a/ada.project/src/org/netbeans/modules/ada/project/ui/properties/AdaProjectProperties.java Wed Sep 23 02:06:44 2009 +0200
1.2 +++ b/ada.project/src/org/netbeans/modules/ada/project/ui/properties/AdaProjectProperties.java Sun Aug 22 23:37:11 2010 +0200
1.3 @@ -77,6 +77,10 @@
1.4 public static final String ACTIVE_PLATFORM = "platform.active"; //NOI18N
1.5 public static final String ADA_LIB_PATH = "ada.lib.path"; //NOI18N
1.6 public static final String SOURCE_ENCODING = "source.encoding"; //NOI18N
1.7 + public static final String OUTPUT_BUILD_FORMAT = "output.build.format"; //NOI18N
1.8 +
1.9 + public static final String NATIVE_FORMAT = "NATIVE_FORMAT"; //NOI18N
1.10 + public static final String JVM_FORMAT = "JVM_FORMAT"; //NOI18N
1.11
1.12 private final AdaProject project;
1.13 private final PropertyEvaluator eval;
1.14 @@ -89,6 +93,7 @@
1.15 private volatile ArrayList<String> librariesPath;
1.16
1.17 private volatile String activePlatformId;
1.18 + private volatile String outputBuildFormat;
1.19 private volatile String adaDialects;
1.20 private volatile String adaRestrictions;
1.21 private volatile String pkgSpecPrefix;
1.22 @@ -217,6 +222,17 @@
1.23 this.activePlatformId = activePlatformId;
1.24 }
1.25
1.26 + public String getOutputBuildFormat() {
1.27 + if (outputBuildFormat == null) {
1.28 + outputBuildFormat = eval.getProperty(OUTPUT_BUILD_FORMAT);
1.29 + }
1.30 + return outputBuildFormat;
1.31 + }
1.32 +
1.33 + public void setOutputBuildFormat(String outputBuildFormat) {
1.34 + this.outputBuildFormat = outputBuildFormat;
1.35 + }
1.36 +
1.37 // Storing
1.38 void save() {
1.39 try {
1.40 @@ -271,6 +287,10 @@
1.41 projectProperties.put(ACTIVE_PLATFORM, activePlatformId);
1.42 }
1.43
1.44 + if (outputBuildFormat != null) {
1.45 + projectProperties.put(OUTPUT_BUILD_FORMAT, outputBuildFormat);
1.46 + }
1.47 +
1.48 if (adaDialects != null) {
1.49 projectProperties.put(AdaOptions.ADA_DIALECTS, adaDialects);
1.50 }