summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-09-11 17:04:31 +0000
committerSilenio Quarti <silenio>2008-09-11 17:04:31 +0000
commit337a83a0311fb0fd43a988850359e06ba5a19509 (patch)
treed94f11055e02657b1e2c227b72e07f9ecaebf21c
parent10bcdacfd58e2f3ac8ae12e949415114424f1760 (diff)
downloadeclipse.platform.swt-337a83a0311fb0fd43a988850359e06ba5a19509.tar.gz
eclipse.platform.swt-337a83a0311fb0fd43a988850359e06ba5a19509.tar.xz
eclipse.platform.swt-337a83a0311fb0fd43a988850359e06ba5a19509.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java16
-rw-r--r--bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/MacGeneratorView.java1
2 files changed, 11 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
index e13995c0b3..03e981ae46 100644
--- a/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
+++ b/bundles/org.eclipse.swt.tools/Mac Generation/org/eclipse/swt/tools/internal/MacGenerator.java
@@ -25,6 +25,8 @@ public class MacGenerator {
PrintStream out;
+ public static boolean BUILD_C_SOURCE = true;
+
public MacGenerator() {
}
@@ -102,7 +104,7 @@ void merge(Document document, Document extraDocument) {
public void generate(ProgressMonitor progress) {
if (progress != null) {
- progress.setTotal(4);
+ progress.setTotal(BUILD_C_SOURCE ? 4 : 3);
progress.setMessage("extra attributes...");
}
generateExtraAttributes();
@@ -116,14 +118,16 @@ public void generate(ProgressMonitor progress) {
progress.setMessage("classes...");
}
generateClasses();
- if (progress != null) {
- progress.step();
- progress.setMessage("C source...");
+ if (BUILD_C_SOURCE) {
+ if (progress != null) {
+ progress.step();
+ progress.setMessage("C source...");
+ }
+ generateCSource();
}
- generateCSource();
if (progress != null) {
- progress.setMessage("Done.");
progress.step();
+ progress.setMessage("Done.");
}
}
diff --git a/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/MacGeneratorView.java b/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/MacGeneratorView.java
index a7b41a9141..4500c9879e 100644
--- a/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/MacGeneratorView.java
+++ b/bundles/org.eclipse.swt.tools/src/org/eclipse/swt/tools/views/MacGeneratorView.java
@@ -73,6 +73,7 @@ public class MacGeneratorView extends ViewPart {
* The constructor.
*/
public MacGeneratorView() {
+ MacGenerator.BUILD_C_SOURCE = false;
IWorkspaceRoot workspace = ResourcesPlugin.getWorkspace().getRoot();
root = workspace.findMember(new Path("org.eclipse.swt/Eclipse SWT PI/cocoa"));
}