Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Schaefer2003-09-15 16:44:43 -0400
committerDoug Schaefer2003-09-15 16:44:43 -0400
commitd18851f2d7a8140dfd3930f1dd838e79bdf3c0db (patch)
tree3253237d790a40a4bff4cd55bf9aef6cb4d14297
parentc96f650a35f2ffcfd362332fbfc558a6afef241f (diff)
downloadorg.eclipse.cdt-d18851f2d7a8140dfd3930f1dd838e79bdf3c0db.tar.gz
org.eclipse.cdt-d18851f2d7a8140dfd3930f1dd838e79bdf3c0db.tar.xz
org.eclipse.cdt-d18851f2d7a8140dfd3930f1dd838e79bdf3c0db.zip
Patch for Sean Evoy:
- Move the managed builder to it's own plugins and feature.
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/.classpath15
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/.cvsignore1
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/.project37
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/ChangeLog10
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/about.html30
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/build.properties1
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/plugin.properties2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/plugin.xml68
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/schema/ManagedBuildTools.exsd (renamed from core/org.eclipse.cdt.core/schema/ManagedBuildTools.exsd)0
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/BuildException.java19
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IBuildObject.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IBuildObject.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IConfiguration.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IConfiguration.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IManagedBuildInfo.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IManagedBuildInfo.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IOption.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IOption.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IOptionCategory.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IOptionCategory.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ITarget.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ITarget.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ITool.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ITool.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ManagedBuildManager.java)22
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuilderCorePlugin.java80
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedCProjectNature.java (renamed from core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ManagedCProjectNature.java)10
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/BuildObject.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/BuildObject.java)31
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Configuration.java)12
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/GeneratedMakefileBuilder.java (renamed from core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/GeneratedMakefileBuilder.java)19
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MakefileGenerator.java (renamed from core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/MakefileGenerator.java)27
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/ManagedBuildInfo.java)14
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Option.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Option.java)12
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/OptionCategory.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/OptionCategory.java)10
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/OptionReference.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/OptionReference.java)10
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/PluginResources.properties24
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Target.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Target.java)12
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Tool.java)14
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolReference.java (renamed from core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/ToolReference.java)14
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/.classpath17
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/.cvsignore1
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/.project39
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/ChangeLog15
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/about.html30
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/build.properties1
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-buildconfig.gifbin0 -> 940 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-deleteconfig.gifbin0 -> 936 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-editconfig.gifbin0 -> 942 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-newconfig.gifbin0 -> 941 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/build_configs.gifbin0 -> 940 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-category.gifbin0 -> 902 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-compiler.gifbin0 -> 157 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-debug.gifbin0 -> 166 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-librarian.gifbin0 -> 171 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-linker.gifbin0 -> 130 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-preprocessor.gifbin0 -> 167 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-profile.gifbin0 -> 193 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-release.gifbin0 -> 166 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-tool.gifbin0 -> 891 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/wizban/newmngc_app.gifbin0 -> 416 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/icons/full/wizban/newmngcc_app.gifbin0 -> 425 bytes
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/plugin.properties24
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/plugin.xml1530
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIImages.java112
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIPlugin.java79
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedProjectOptionBlock.java35
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/PluginResources.properties57
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BrowseEntryDialog.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BrowseEntryDialog.java)10
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionComboFieldEditor.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildOptionComboFieldEditor.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionListFieldEditor.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildOptionListFieldEditor.java)2
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildPropertyPage.java)32
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolSettingsPage.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildToolSettingsPage.java)12
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolsSettingsStore.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildToolsSettingsStore.java)16
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ManageConfigDialog.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ManageConfigDialog.java)8
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/NewConfigurationDialog.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/NewConfigurationDialog.java)16
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/SummaryFieldEditor.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/SummaryFieldEditor.java)4
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolListContentProvider.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ToolListContentProvider.java)8
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolListLabelProvider.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ToolListLabelProvider.java)10
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CProjectPlatformPage.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/CProjectPlatformPage.java)23
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/ConfigurationContentProvider.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationContentProvider.java)6
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/ConfigurationLabelProvider.java (renamed from core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationLabelProvider.java)8
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedCCProjectWizard.java54
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedCProjectWizard.java36
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectOptionPage.java59
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java168
-rw-r--r--core/org.eclipse.cdt.core.tests/.classpath7
-rw-r--r--core/org.eclipse.cdt.core.tests/.project5
-rw-r--r--core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java20
-rw-r--r--core/org.eclipse.cdt.core.tests/plugin.xml3
-rw-r--r--core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/BuildException.java21
-rw-r--r--core/org.eclipse.cdt.core/plugin.properties4
-rw-r--r--core/org.eclipse.cdt.core/plugin.xml51
-rw-r--r--core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePluginResources.properties14
-rw-r--r--core/org.eclipse.cdt.ui/.classpath1
-rw-r--r--core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationBlock.java181
-rw-r--r--core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedCCWizard.java66
-rw-r--r--core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedCWizard.java61
-rw-r--r--core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedProjectWizard.java214
-rw-r--r--core/org.eclipse.cdt.ui/plugin.properties20
-rw-r--r--core/org.eclipse.cdt.ui/plugin.xml1504
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java19
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginResources.properties22
95 files changed, 2761 insertions, 2374 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/.classpath b/build/org.eclipse.cdt.managedbuilder.core/.classpath
new file mode 100644
index 0000000000..31ac46f26a
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/.classpath
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="/org.apache.xerces"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.linux"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.qnx"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.solaris"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.win32"/>
+ <classpathentry kind="src" path="/org.eclipse.core.resources"/>
+ <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
+ <classpathentry kind="src" path="/org.eclipse.core.boot"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/build/org.eclipse.cdt.managedbuilder.core/.cvsignore b/build/org.eclipse.cdt.managedbuilder.core/.cvsignore
new file mode 100644
index 0000000000..ba077a4031
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/.cvsignore
@@ -0,0 +1 @@
+bin
diff --git a/build/org.eclipse.cdt.managedbuilder.core/.project b/build/org.eclipse.cdt.managedbuilder.core/.project
new file mode 100644
index 0000000000..fe252f677b
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/.project
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.cdt.managedbuilder.core</name>
+ <comment></comment>
+ <projects>
+ <project>org.apache.xerces</project>
+ <project>org.eclipse.cdt.core</project>
+ <project>org.eclipse.cdt.core.linux</project>
+ <project>org.eclipse.cdt.core.qnx</project>
+ <project>org.eclipse.cdt.core.solaris</project>
+ <project>org.eclipse.cdt.core.win32</project>
+ <project>org.eclipse.core.boot</project>
+ <project>org.eclipse.core.resources</project>
+ <project>org.eclipse.core.runtime</project>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/build/org.eclipse.cdt.managedbuilder.core/ChangeLog b/build/org.eclipse.cdt.managedbuilder.core/ChangeLog
new file mode 100644
index 0000000000..e03ee82d96
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/ChangeLog
@@ -0,0 +1,10 @@
+2003-09-15 Sean Evoy
+ First submission of code to new project. Moved the managed builder
+ source code out of the cdt.core project. This includes the code to
+ implement the build model, along with the shema and extension point
+ declaration. Moved the builder, scnanaer info provider and managed
+ nature definitions into the package as well.
+
+ There are 2 new classes to handle the externalized strings:
+ * src/org/eclipse/cdt/managedbuilder/core/ManagedBuilderCorePlugin.java
+ * src/org/eclipse/cdt/managedbuilder/internal/core/PluginResources.properties \ No newline at end of file
diff --git a/build/org.eclipse.cdt.managedbuilder.core/about.html b/build/org.eclipse.cdt.managedbuilder.core/about.html
new file mode 100644
index 0000000000..8c828de2ad
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/about.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>10th July, 2002</p>
+<h3>License</h3>
+<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
+Common Public License Version 1.0 (&quot;CPL&quot;). A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
+For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
+
+<h3>Contributions</h3>
+
+<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
+made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
+Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
+
+<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
+other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
+host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
+to others under the terms of the Other License. In addition, with regard to Modifications for which you are the copyright holder, you are also
+providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
+the CPL.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/build/org.eclipse.cdt.managedbuilder.core/build.properties b/build/org.eclipse.cdt.managedbuilder.core/build.properties
new file mode 100644
index 0000000000..16f386ca45
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/build.properties
@@ -0,0 +1 @@
+source.New\ Library = src/
diff --git a/build/org.eclipse.cdt.managedbuilder.core/plugin.properties b/build/org.eclipse.cdt.managedbuilder.core/plugin.properties
new file mode 100644
index 0000000000..4790b7ca75
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/plugin.properties
@@ -0,0 +1,2 @@
+pluginName=C/C++ Managed Builder Core
+providerName=Eclipse.org \ No newline at end of file
diff --git a/build/org.eclipse.cdt.managedbuilder.core/plugin.xml b/build/org.eclipse.cdt.managedbuilder.core/plugin.xml
new file mode 100644
index 0000000000..a6f8dd7921
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/plugin.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plugin
+ id="org.eclipse.cdt.managedbuilder.core"
+ name="%pluginName"
+ version="1.0.0"
+ provider-name="%providerName"
+ class="org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin">
+
+ <runtime>
+ <library name="mngbuildcore.jar"/>
+ </runtime>
+ <requires>
+ <import plugin="org.apache.xerces"/>
+ <import plugin="org.eclipse.cdt.core"/>
+ <import plugin="org.eclipse.core.resources"/>
+ <import plugin="org.eclipse.core.runtime"/>
+ </requires>
+
+
+ <extension-point id="ManagedBuildInfo" name="Managed Build Tools" schema="schema/ManagedBuildTools.exsd"/>
+
+<!-- =================================================================================== -->
+<!-- Extension Point: IScannerInfoProvider for the managed Builder -->
+<!-- =================================================================================== -->
+ <extension
+ id="ManagedBuildManager"
+ point="org.eclipse.cdt.core.ScannerInfoProvider">
+ <cextension>
+ <run
+ class="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager">
+ </run>
+ </cextension>
+ </extension>
+<!-- =================================================================================== -->
+<!-- Extension Point: Makefile Generation Builder -->
+<!-- =================================================================================== -->
+ <extension
+ id="genmakebuilder"
+ name="%GeneratedMakefileCBuilder.name"
+ point="org.eclipse.core.resources.builders">
+ <builder
+ hasNature="true">
+ <run
+ class="org.eclipse.cdt.managedbuilder.internal.core.GeneratedMakefileBuilder">
+ </run>
+ </builder>
+ </extension>
+<!-- =================================================================================== -->
+<!-- Extension Point: Managed Build Project Nature -->
+<!-- =================================================================================== -->
+ <extension
+ id="managedBuildNature"
+ name="%ManagedBuildNature.name"
+ point="org.eclipse.core.resources.natures">
+ <requires-nature
+ id="org.eclipse.cdt.core.cnature">
+ </requires-nature>
+ <runtime>
+ <run
+ class="org.eclipse.cdt.managedbuilder.core.ManagedCProjectNature">
+ </run>
+ </runtime>
+ <builder
+ id="org.eclipse.cdt.managedbuilder.core.genmakebuilder">
+ </builder>
+ </extension>
+
+</plugin>
diff --git a/core/org.eclipse.cdt.core/schema/ManagedBuildTools.exsd b/build/org.eclipse.cdt.managedbuilder.core/schema/ManagedBuildTools.exsd
index 72aab2bf24..72aab2bf24 100644
--- a/core/org.eclipse.cdt.core/schema/ManagedBuildTools.exsd
+++ b/build/org.eclipse.cdt.managedbuilder.core/schema/ManagedBuildTools.exsd
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/BuildException.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/BuildException.java
new file mode 100644
index 0000000000..98f8506d1c
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/BuildException.java
@@ -0,0 +1,19 @@
+/**********************************************************************
+ * Copyright (c) 2003 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ **********************************************************************/
+package org.eclipse.cdt.managedbuilder.core;
+
+public class BuildException extends Exception {
+
+ public BuildException(String msg) {
+ super(msg);
+ }
+
+}
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IBuildObject.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IBuildObject.java
index 2529da7ec8..96c0cd1bcf 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IBuildObject.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IBuildObject.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.core.build.managed;
+package org.eclipse.cdt.managedbuilder.core;
public interface IBuildObject {
// Schema element names
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IConfiguration.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IConfiguration.java
index f61c914313..24478ebd8e 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IConfiguration.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IConfiguration.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.core.build.managed;
+package org.eclipse.cdt.managedbuilder.core;
import org.eclipse.core.resources.IResource;
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IManagedBuildInfo.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IManagedBuildInfo.java
index c60e45474e..cc0e747f27 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IManagedBuildInfo.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IManagedBuildInfo.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.core.build.managed;
+package org.eclipse.cdt.managedbuilder.core;
import java.util.List;
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IOption.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IOption.java
index 496a2ace23..3f47f4b83f 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IOption.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IOption.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.core.build.managed;
+package org.eclipse.cdt.managedbuilder.core;
/**
*
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IOptionCategory.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IOptionCategory.java
index e0b5a7bfcf..5067a92de3 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/IOptionCategory.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/IOptionCategory.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.core.build.managed;
+package org.eclipse.cdt.managedbuilder.core;
/**
*
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ITarget.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ITarget.java
index d22f5a5610..3440e2ad9e 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ITarget.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ITarget.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.core.build.managed;
+package org.eclipse.cdt.managedbuilder.core;
import org.eclipse.core.resources.IResource;
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ITool.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ITool.java
index 85f0be6c3d..f6bc93031c 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ITool.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ITool.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.core.build.managed;
+package org.eclipse.cdt.managedbuilder.core;
/**
*
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ManagedBuildManager.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
index c99e26dde3..14c74c84ec 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/ManagedBuildManager.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.core.build.managed;
+package org.eclipse.cdt.managedbuilder.core;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -29,11 +29,10 @@ import org.apache.xml.serialize.OutputFormat;
import org.apache.xml.serialize.Serializer;
import org.apache.xml.serialize.SerializerFactory;
import org.eclipse.cdt.core.AbstractCExtension;
-import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.parser.*;
-import org.eclipse.cdt.internal.core.build.managed.Configuration;
-import org.eclipse.cdt.internal.core.build.managed.ManagedBuildInfo;
-import org.eclipse.cdt.internal.core.build.managed.Target;
+import org.eclipse.cdt.managedbuilder.internal.core.Configuration;
+import org.eclipse.cdt.managedbuilder.internal.core.ManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.internal.core.Target;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
@@ -52,11 +51,11 @@ import org.w3c.dom.Node;
*/
public class ManagedBuildManager extends AbstractCExtension implements IScannerInfoProvider {
- private static final QualifiedName buildInfoProperty = new QualifiedName(CCorePlugin.PLUGIN_ID, "managedBuildInfo");
+ private static final QualifiedName buildInfoProperty = new QualifiedName(ManagedBuilderCorePlugin.getUniqueIdentifier(), "managedBuildInfo");
private static final String ROOT_ELEM_NAME = "ManagedProjectBuildInfo"; //$NON-NLS-1$
private static final String FILE_NAME = ".cdtbuild"; //$NON-NLS-1$
private static final ITarget[] emptyTargets = new ITarget[0];
- public static final String INTERFACE_IDENTITY = CCorePlugin.PLUGIN_ID + "." + "ManagedBuildManager"; //$NON-NLS-1$
+ public static final String INTERFACE_IDENTITY = ManagedBuilderCorePlugin.getUniqueIdentifier() + "." + "ManagedBuildManager"; //$NON-NLS-1$
public static final String EXTENSION_POINT_ID = "ManagedBuildInfo"; //$NON-NLS-1$
// Targets defined by extensions (i.e., not associated with a resource)
@@ -83,8 +82,9 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
// To Do
// Create the array and copy the elements over
- int size = extensionTargets.size()
- + (definedTargets != null ? definedTargets.size() : 0);
+ int size = extensionTargets != null ?
+ extensionTargets.size() + (definedTargets != null ? definedTargets.size() : 0) :
+ 0;
ITarget[] targets = new ITarget[size];
@@ -340,7 +340,7 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
ITarget parentTarget = parentConfig.getTarget();
// Get the extension point information
- IExtensionPoint extensionPoint = CCorePlugin.getDefault().getDescriptor().getExtensionPoint(EXTENSION_POINT_ID);
+ IExtensionPoint extensionPoint = ManagedBuilderCorePlugin.getDefault().getDescriptor().getExtensionPoint(EXTENSION_POINT_ID);
IExtension[] extensions = extensionPoint.getExtensions();
for (int i = 0; i < extensions.length; ++i) {
IExtension extension = extensions[i];
@@ -402,7 +402,7 @@ public class ManagedBuildManager extends AbstractCExtension implements IScannerI
return;
extensionTargetsLoaded = true;
- IExtensionPoint extensionPoint = CCorePlugin.getDefault().getDescriptor().getExtensionPoint(EXTENSION_POINT_ID);
+ IExtensionPoint extensionPoint = ManagedBuilderCorePlugin.getDefault().getDescriptor().getExtensionPoint(EXTENSION_POINT_ID);
IExtension[] extensions = extensionPoint.getExtensions();
for (int i = 0; i < extensions.length; ++i) {
IExtension extension = extensions[i];
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuilderCorePlugin.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuilderCorePlugin.java
new file mode 100644
index 0000000000..a671aea851
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuilderCorePlugin.java
@@ -0,0 +1,80 @@
+package org.eclipse.cdt.managedbuilder.core;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * IBM Rational Software - Initial API and implementation
+ * **********************************************************************/
+
+import java.text.MessageFormat;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+import org.eclipse.core.runtime.IPluginDescriptor;
+import org.eclipse.core.runtime.Plugin;
+
+
+public class ManagedBuilderCorePlugin extends Plugin {
+ //The shared instance.
+ private static ManagedBuilderCorePlugin plugin;
+ //Resource bundle.
+ private static ResourceBundle resourceBundle;
+
+ /**
+ * @param descriptor
+ */
+ public ManagedBuilderCorePlugin(IPluginDescriptor descriptor) {
+ super(descriptor);
+ plugin = this;
+ try {
+ resourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.managedbuilder.internal.core.PluginResources"); //$NON-NLS-1$
+ } catch (MissingResourceException x) {
+ resourceBundle = null;
+ }
+ }
+
+ /**
+ * Returns the shared instance.
+ */
+ public static ManagedBuilderCorePlugin getDefault() {
+ return plugin;
+ }
+
+
+ public static String getResourceString(String key) {
+ try {
+ return resourceBundle.getString(key);
+ } catch (MissingResourceException e) {
+ return "!" + key + "!";
+ } catch (NullPointerException e) {
+ return "#" + key + "#";
+ }
+ }
+
+ public static String getFormattedString(String key, String arg) {
+ return MessageFormat.format(getResourceString(key), new String[] { arg });
+ }
+
+ public static String getFormattedString(String key, String[] args) {
+ return MessageFormat.format(getResourceString(key), args);
+ }
+
+ /**
+ * Convenience method which returns the unique identifier of this plugin.
+ */
+ public static String getUniqueIdentifier() {
+ if (getDefault() == null) {
+ // If the default instance is not yet initialized,
+ // return a static identifier. This identifier must
+ // match the plugin id defined in plugin.xml
+ return "org.eclipse.cdt.managedbuilder.core"; //$NON-NLS-1$
+ }
+ return getDefault().getDescriptor().getUniqueIdentifier();
+ }
+
+}
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ManagedCProjectNature.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedCProjectNature.java
index cf77ba2800..235167976e 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ManagedCProjectNature.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedCProjectNature.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.core;
+package org.eclipse.cdt.managedbuilder.core;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -26,9 +26,9 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Plugin;
public class ManagedCProjectNature implements IProjectNature {
- public static final String BUILDER_NAME= "genmakebuilder";
- public static final String BUILDER_ID= CCorePlugin.PLUGIN_ID + "." + BUILDER_NAME;
- private static final String MNG_NATURE_ID = CCorePlugin.PLUGIN_ID + ".managedBuildNature";
+ public static final String BUILDER_NAME = "genmakebuilder";
+ public static final String BUILDER_ID = ManagedBuilderCorePlugin.getUniqueIdentifier() + "." + BUILDER_NAME;
+ private static final String MNG_NATURE_ID = ManagedBuilderCorePlugin.getUniqueIdentifier() + ".managedBuildNature";
private IProject project;
/**
@@ -109,7 +109,7 @@ public class ManagedCProjectNature implements IProjectNature {
* Get the correct builderID
*/
public static String getBuilderID() {
- Plugin plugin = (Plugin)CCorePlugin.getDefault();
+ Plugin plugin = (Plugin)ManagedBuilderCorePlugin.getDefault();
IPluginDescriptor descriptor = plugin.getDescriptor();
if (descriptor.getExtension(BUILDER_NAME) != null) {
return descriptor.getUniqueIdentifier() + "." + BUILDER_NAME;
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/BuildObject.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/BuildObject.java
index 97c8f9a0c9..482e691ebd 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/BuildObject.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/BuildObject.java
@@ -1,19 +1,18 @@
-/*
- * Created on Apr 9, 2003
- *
- * To change the template for this generated file go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.cdt.internal.core.build.managed;
-
-import org.eclipse.cdt.core.build.managed.IBuildObject;
-
-/**
- * @author dschaefe
- *
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
+package org.eclipse.cdt.managedbuilder.internal.core;
+
+/**********************************************************************
+ * Copyright (c) 2003 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM - Initial API and implementation
+ **********************************************************************/
+
+import org.eclipse.cdt.managedbuilder.core.IBuildObject;
+
public class BuildObject implements IBuildObject {
protected String id;
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Configuration.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
index a4ce7cccb1..4de1b3afa7 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Configuration.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
@@ -8,17 +8,17 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.internal.core.build.managed;
+package org.eclipse.cdt.managedbuilder.internal.core;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IConfigurationElement;
import org.w3c.dom.Document;
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/GeneratedMakefileBuilder.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/GeneratedMakefileBuilder.java
index efa4accea7..ddf014c0f8 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/GeneratedMakefileBuilder.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/GeneratedMakefileBuilder.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.internal.core;
+package org.eclipse.cdt.managedbuilder.internal.core;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -24,8 +24,9 @@ import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.CommandLauncher;
import org.eclipse.cdt.core.ConsoleOutputStream;
import org.eclipse.cdt.core.ErrorParserManager;
-import org.eclipse.cdt.core.build.managed.IManagedBuildInfo;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin;
import org.eclipse.cdt.core.model.ICModelMarker;
import org.eclipse.cdt.core.resources.ACBuilder;
import org.eclipse.cdt.core.resources.IConsole;
@@ -93,7 +94,7 @@ public class GeneratedMakefileBuilder extends ACBuilder {
* @see org.eclipse.core.internal.events.InternalBuilder#build(int, java.util.Map, org.eclipse.core.runtime.IProgressMonitor)
*/
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
- String statusMsg = CCorePlugin.getFormattedString(START, getProject().getName());
+ String statusMsg = ManagedBuilderCorePlugin.getFormattedString(START, getProject().getName());
if (statusMsg != null) {
monitor.subTask(statusMsg);
}
@@ -170,7 +171,7 @@ public class GeneratedMakefileBuilder extends ACBuilder {
}
// Need to report status to the user
- String statusMsg = CCorePlugin.getFormattedString(REBUILD, currentProject.getName());
+ String statusMsg = ManagedBuilderCorePlugin.getFormattedString(REBUILD, currentProject.getName());
monitor.subTask(statusMsg);
// Regenerate the makefiles for this project
@@ -256,7 +257,7 @@ public class GeneratedMakefileBuilder extends ACBuilder {
if (monitor == null) {
monitor = new NullProgressMonitor();
}
- statusMsg = CCorePlugin.getFormattedString(INCREMENTAL, currentProject.getName());
+ statusMsg = ManagedBuilderCorePlugin.getFormattedString(INCREMENTAL, currentProject.getName());
monitor.subTask(statusMsg);
// Ask the makefile generator to generate any makefiles needed to build delta
@@ -296,7 +297,7 @@ public class GeneratedMakefileBuilder extends ACBuilder {
String[] msgs = new String[2];
msgs[0] = info.getMakeCommand();
msgs[1] = currentProject.getName();
- String statusMsg = CCorePlugin.getFormattedString(MAKE, msgs);
+ String statusMsg = ManagedBuilderCorePlugin.getFormattedString(MAKE, msgs);
if (statusMsg != null) {
monitor.subTask(statusMsg);
}
@@ -384,14 +385,14 @@ public class GeneratedMakefileBuilder extends ACBuilder {
// Report either the success or failure of our mission
StringBuffer buf = new StringBuffer();
if (errMsg != null && errMsg.length() > 0) {
- String errorDesc = CCorePlugin.getResourceString(BUILD_ERROR);
+ String errorDesc = ManagedBuilderCorePlugin.getResourceString(BUILD_ERROR);
buf.append(errorDesc);
buf.append(System.getProperty("line.separator", "\n"));
buf.append("(").append(errMsg).append(")");
}
else {
// Report a successful build
- String successMsg = CCorePlugin.getFormattedString(BUILD_FINISHED, currentProject.getName());
+ String successMsg = ManagedBuilderCorePlugin.getFormattedString(BUILD_FINISHED, currentProject.getName());
buf.append(successMsg);
buf.append(System.getProperty("line.separator", "\n"));
}
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/MakefileGenerator.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MakefileGenerator.java
index 74269e995d..2d4c75d3fd 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/MakefileGenerator.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/MakefileGenerator.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.internal.core;
+package org.eclipse.cdt.managedbuilder.internal.core;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -17,9 +17,10 @@ import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
+import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin;
import org.eclipse.cdt.core.CCorePlugin;
-import org.eclipse.cdt.core.build.managed.IManagedBuildInfo;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
import org.eclipse.cdt.core.search.ICSearchConstants;
import org.eclipse.cdt.internal.core.model.Util;
import org.eclipse.cdt.internal.core.sourcedependency.DependencyManager;
@@ -220,7 +221,7 @@ public class MakefileGenerator {
// Create the buffer to hold the output for the module and a dep calculator
StringBuffer buffer = new StringBuffer();
- buffer.append(CCorePlugin.getResourceString(AUTO_DEP) + NEWLINE);
+ buffer.append(ManagedBuilderCorePlugin.getResourceString(AUTO_DEP) + NEWLINE);
DependencyManager dependencyManager = CCorePlugin.getDefault().getCoreModel().getDependencyManager();
/*
@@ -278,7 +279,7 @@ public class MakefileGenerator {
buffer.append("RM := ");
buffer.append(info.getCleanCommand() + NEWLINE + NEWLINE);
- buffer.append(CCorePlugin.getResourceString(SRC_LISTS) + NEWLINE);
+ buffer.append(ManagedBuilderCorePlugin.getResourceString(SRC_LISTS) + NEWLINE);
buffer.append("C_SRCS := " + NEWLINE);
buffer.append("CC_SRCS := " + NEWLINE + NEWLINE);
@@ -294,7 +295,7 @@ public class MakefileGenerator {
protected StringBuffer addModules() {
StringBuffer buffer = new StringBuffer();
// Add the comment
- buffer.append(CCorePlugin.getResourceString(MOD_LIST) + NEWLINE);
+ buffer.append(ManagedBuilderCorePlugin.getResourceString(MOD_LIST) + NEWLINE);
buffer.append("MODULES := " + LINEBREAK + NEWLINE);
// Get all the module names
@@ -312,7 +313,7 @@ public class MakefileGenerator {
// Now add the makefile instruction to include all the subdirectory makefile fragments
buffer.append(NEWLINE);
- buffer.append(CCorePlugin.getResourceString(MOD_INCL) + NEWLINE);
+ buffer.append(ManagedBuilderCorePlugin.getResourceString(MOD_INCL) + NEWLINE);
buffer.append("include ${patsubst %, %/module.mk, $(MODULES)}" + NEWLINE);
buffer.append(NEWLINE + NEWLINE);
@@ -338,10 +339,10 @@ public class MakefileGenerator {
cBuffer.append("${addprefix $(ROOT)/" + relativePath + "," + LINEBREAK + NEWLINE);
StringBuffer ccBuffer = new StringBuffer("CC_SRCS += \\" + NEWLINE);
ccBuffer.append("${addprefix $(ROOT)/" + relativePath + "," + LINEBREAK + NEWLINE);
- StringBuffer ruleBuffer = new StringBuffer(CCorePlugin.getResourceString(MOD_RULES) + NEWLINE);
+ StringBuffer ruleBuffer = new StringBuffer(ManagedBuilderCorePlugin.getResourceString(MOD_RULES) + NEWLINE);
// Put the comment in
- buffer.append(CCorePlugin.getResourceString(SRC_LISTS) + NEWLINE);
+ buffer.append(ManagedBuilderCorePlugin.getResourceString(SRC_LISTS) + NEWLINE);
// Visit the resources in this folder
IResource[] resources = module.members();
@@ -429,7 +430,7 @@ public class MakefileGenerator {
buffer.append(TAB + "$(RM)" + WHITESPACE + "${addprefix ., $(CC_SRCS:$(ROOT)%.cpp=%.o)} ${addprefix ., $(C_SRCS:$(ROOT)%.c=%.o)}" + WHITESPACE + outputPrefix + target + NEWLINE);
buffer.append(NEWLINE);
- buffer.append(NEWLINE + CCorePlugin.getResourceString(DEP_INCL) + NEWLINE);
+ buffer.append(NEWLINE + ManagedBuilderCorePlugin.getResourceString(DEP_INCL) + NEWLINE);
buffer.append("include ${patsubst %, %/module.dep, $(MODULES)}" + NEWLINE);
buffer.append(NEWLINE);
@@ -550,7 +551,7 @@ public class MakefileGenerator {
// There may be nothing to regenerate and no content changes that require a rebuild
if (getModifiedList().isEmpty() && !shouldRunBuild()) {
// There is nothing to build
- IStatus status = new Status(IStatus.INFO, CCorePlugin.PLUGIN_ID, GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR, "", null);
+ IStatus status = new Status(IStatus.INFO, ManagedBuilderCorePlugin.getUniqueIdentifier(), GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR, "", null);
throw new CoreException(status);
}
@@ -562,7 +563,7 @@ public class MakefileGenerator {
project.accept(resourceVisitor, IResource.NONE);
if (getSubdirList().isEmpty()) {
// There is nothing to build (but we should never throw this exception)
- IStatus status = new Status(IStatus.INFO, CCorePlugin.PLUGIN_ID, GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR, "", null);
+ IStatus status = new Status(IStatus.INFO, ManagedBuilderCorePlugin.getUniqueIdentifier(), GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR, "", null);
throw new CoreException(status);
}
checkCancel();
@@ -788,7 +789,7 @@ public class MakefileGenerator {
project.accept(visitor, IResource.NONE);
if (getSubdirList().isEmpty()) {
// There is nothing to build
- IStatus status = new Status(IStatus.INFO, CCorePlugin.PLUGIN_ID, GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR, "", null);
+ IStatus status = new Status(IStatus.INFO, ManagedBuilderCorePlugin.getUniqueIdentifier(), GeneratedMakefileBuilder.EMPTY_PROJECT_BUILD_ERROR, "", null);
throw new CoreException(status);
}
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/ManagedBuildInfo.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
index 382a65e3c6..1409dc09cb 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/ManagedBuildInfo.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ManagedBuildInfo.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.internal.core.build.managed;
+package org.eclipse.cdt.managedbuilder.internal.core;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -19,12 +19,12 @@ import java.util.List;
import java.util.ListIterator;
import java.util.Map;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IManagedBuildInfo;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.cdt.core.parser.IScannerInfo;
import org.eclipse.core.resources.IResource;
import org.w3c.dom.Document;
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Option.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Option.java
index c0fa51a4c9..30e2f17e43 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Option.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Option.java
@@ -8,18 +8,18 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.internal.core.build.managed;
+package org.eclipse.cdt.managedbuilder.internal.core;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.core.runtime.IConfigurationElement;
/**
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/OptionCategory.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/OptionCategory.java
index e8e6ec6e8a..11ad290022 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/OptionCategory.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/OptionCategory.java
@@ -8,15 +8,15 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.internal.core.build.managed;
+package org.eclipse.cdt.managedbuilder.internal.core;
import java.util.ArrayList;
import java.util.List;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.core.runtime.IConfigurationElement;
/**
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/OptionReference.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/OptionReference.java
index e52d5e829d..269812c583 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/OptionReference.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/OptionReference.java
@@ -8,17 +8,17 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.internal.core.build.managed;
+package org.eclipse.cdt.managedbuilder.internal.core;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.ListIterator;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.core.runtime.IConfigurationElement;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/PluginResources.properties b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/PluginResources.properties
new file mode 100644
index 0000000000..2cdf0e150a
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/PluginResources.properties
@@ -0,0 +1,24 @@
+##########################################################################
+# Copyright (c) 2002,2003 Rational Software Corporation and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Common Public License v0.5
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/cpl-v05.html
+#
+# Contributors:
+# IBM Rational Software - Initial API and implementation
+##########################################################################
+
+# Generated makefile builder messages
+MakeBuilder.message.starting = Starting the build for project {0}
+MakeBuilder.message.rebuild = Regenerating makefiles for project {0}
+MakeBuilder.message.incremental = Updating makefiles for project {0}
+MakeBuilder.message.make = Calling {0} for project {1}
+MakeBuilder.message.error = Build error
+MakeBuilder.message.finished = Build complete for project {0}
+MakeBuilder.comment.module.list = # Every subdirectory with source files must be described here
+MakeBuilder.comment.source.list = # Each subdirectory must contribute its source files here
+MakeBuilder.comment.build.rule = # Each subdirectory must supply rules for building sources it contributes
+MakeBuilder.comment.module.make.includes = # Include the makefiles for each source subdirectory
+MakeBuilder.comment.module.dep.includes = # Include automatically-generated dependency list:
+MakeBuilder.comment.autodeps = # Automatically-generated dependency list:
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Target.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Target.java
index 520242ef36..7f660fcffd 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Target.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Target.java
@@ -8,18 +8,18 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.internal.core.build.managed;
+package org.eclipse.cdt.managedbuilder.internal.core;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IManagedBuildInfo;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ITool;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ITool;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IConfigurationElement;
import org.w3c.dom.Document;
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Tool.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
index 3ed5bf404c..59e09f12b6 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/Tool.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Tool.java
@@ -8,7 +8,7 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.internal.core.build.managed;
+package org.eclipse.cdt.managedbuilder.internal.core;
import java.util.ArrayList;
import java.util.HashMap;
@@ -17,12 +17,12 @@ import java.util.ListIterator;
import java.util.Map;
import java.util.StringTokenizer;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.core.runtime.IConfigurationElement;
/**
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/ToolReference.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolReference.java
index a670db24dc..bd230450db 100644
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/internal/core/build/managed/ToolReference.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/ToolReference.java
@@ -8,18 +8,18 @@
* Contributors:
* IBM - Initial API and implementation
**********************************************************************/
-package org.eclipse.cdt.internal.core.build.managed;
+package org.eclipse.cdt.managedbuilder.internal.core;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.core.runtime.IConfigurationElement;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/.classpath b/build/org.eclipse.cdt.managedbuilder.ui/.classpath
new file mode 100644
index 0000000000..35da7f95d3
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/.classpath
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/"/>
+ <classpathentry kind="src" path="/org.eclipse.core.resources"/>
+ <classpathentry kind="src" path="/org.eclipse.ui"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.linux"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.qnx"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.solaris"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.win32"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.ui"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.managedbuilder.core"/>
+ <classpathentry kind="src" path="/org.eclipse.core.boot"/>
+ <classpathentry kind="src" path="/org.eclipse.core.runtime"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/.cvsignore b/build/org.eclipse.cdt.managedbuilder.ui/.cvsignore
new file mode 100644
index 0000000000..ba077a4031
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/.cvsignore
@@ -0,0 +1 @@
+bin
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/.project b/build/org.eclipse.cdt.managedbuilder.ui/.project
new file mode 100644
index 0000000000..9091b32f7a
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/.project
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.cdt.managedbuilder.ui</name>
+ <comment></comment>
+ <projects>
+ <project>org.eclipse.cdt.core</project>
+ <project>org.eclipse.cdt.core.linux</project>
+ <project>org.eclipse.cdt.core.qnx</project>
+ <project>org.eclipse.cdt.core.solaris</project>
+ <project>org.eclipse.cdt.core.win32</project>
+ <project>org.eclipse.cdt.managedbuilder.core</project>
+ <project>org.eclipse.cdt.ui</project>
+ <project>org.eclipse.core.boot</project>
+ <project>org.eclipse.core.resources</project>
+ <project>org.eclipse.core.runtime</project>
+ <project>org.eclipse.ui</project>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/ChangeLog b/build/org.eclipse.cdt.managedbuilder.ui/ChangeLog
new file mode 100644
index 0000000000..b670dfc5c0
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/ChangeLog
@@ -0,0 +1,15 @@
+2003-09-15 Sean Evoy
+ First submission of code to new project. Moved all the managed
+ builder-specific UI elements out of the cdt.ui project. This
+ includes the icons, and externalized strings.
+
+ There are 2 new classes to handle the externalized strings and image
+ files:
+ * src/org/eclipse/cdt/managedbuilder/internal/ui/PluginResources.properties
+ * src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIPlugin.java
+ * src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIImages.java
+
+ The property pages have been modified to use a mix of externalized
+ strings from the CUIPlugin and ManagedBuilderUIPlugin. The new project
+ wizard has been reimplemented using the new C project classes added by
+ QNX September 12, 2003. The UI itself has not changed. \ No newline at end of file
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/about.html b/build/org.eclipse.cdt.managedbuilder.ui/about.html
new file mode 100644
index 0000000000..8c828de2ad
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/about.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>10th July, 2002</p>
+<h3>License</h3>
+<p>Eclipse.org makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
+Common Public License Version 1.0 (&quot;CPL&quot;). A copy of the CPL is available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>.
+For purposes of the CPL, &quot;Program&quot; will mean the Content.</p>
+
+<h3>Contributions</h3>
+
+<p>If this Content is licensed to you under the terms and conditions of the CPL, any Contributions, as defined in the CPL, uploaded, submitted, or otherwise
+made available to Eclipse.org, members of Eclipse.org and/or the host of Eclipse.org web site, by you that relate to such
+Content are provided under the terms and conditions of the CPL and can be made available to others under the terms of the CPL.</p>
+
+<p>If this Content is licensed to you under license terms and conditions other than the CPL (&quot;Other License&quot;), any modifications, enhancements and/or
+other code and/or documentation (&quot;Modifications&quot;) uploaded, submitted, or otherwise made available to Eclipse.org, members of Eclipse.org and/or the
+host of Eclipse.org, by you that relate to such Content are provided under terms and conditions of the Other License and can be made available
+to others under the terms of the Other License. In addition, with regard to Modifications for which you are the copyright holder, you are also
+providing the Modifications under the terms and conditions of the CPL and such Modifications can be made available to others under the terms of
+the CPL.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/build.properties b/build/org.eclipse.cdt.managedbuilder.ui/build.properties
new file mode 100644
index 0000000000..90d0a0b9d3
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/build.properties
@@ -0,0 +1 @@
+source.mgdbuildui.jar = src/
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-buildconfig.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-buildconfig.gif
new file mode 100644
index 0000000000..bb64374a7b
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-buildconfig.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-deleteconfig.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-deleteconfig.gif
new file mode 100644
index 0000000000..a06106af2d
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-deleteconfig.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-editconfig.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-editconfig.gif
new file mode 100644
index 0000000000..820079ad6b
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-editconfig.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-newconfig.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-newconfig.gif
new file mode 100644
index 0000000000..5b04a5e461
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/action-newconfig.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/build_configs.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/build_configs.gif
new file mode 100644
index 0000000000..bb64374a7b
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/build_configs.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-category.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-category.gif
new file mode 100644
index 0000000000..690bba071f
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-category.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-compiler.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-compiler.gif
new file mode 100644
index 0000000000..20e7baed14
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-compiler.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-debug.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-debug.gif
new file mode 100644
index 0000000000..3052a80cd6
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-debug.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-librarian.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-librarian.gif
new file mode 100644
index 0000000000..f966fc39d9
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-librarian.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-linker.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-linker.gif
new file mode 100644
index 0000000000..91eec0f7da
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-linker.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-preprocessor.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-preprocessor.gif
new file mode 100644
index 0000000000..082e49fbe6
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-preprocessor.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-profile.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-profile.gif
new file mode 100644
index 0000000000..45d614829b
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-profile.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-release.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-release.gif
new file mode 100644
index 0000000000..b7b23708e0
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-release.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-tool.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-tool.gif
new file mode 100644
index 0000000000..33981a5dbf
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/build16/config-tool.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/wizban/newmngc_app.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/wizban/newmngc_app.gif
new file mode 100644
index 0000000000..beefb8ee95
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/wizban/newmngc_app.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/icons/full/wizban/newmngcc_app.gif b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/wizban/newmngcc_app.gif
new file mode 100644
index 0000000000..85e3f72d33
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/icons/full/wizban/newmngcc_app.gif
Binary files differ
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/plugin.properties b/build/org.eclipse.cdt.managedbuilder.ui/plugin.properties
new file mode 100644
index 0000000000..b8dfd060f5
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/plugin.properties
@@ -0,0 +1,24 @@
+pluginName=C/C++ Managed Builder UI
+providerName=Eclipse.org
+
+# The Wizards
+MngCWizard.name=Managed Make C Project
+MngCWizard.description=Create a new C project and let Eclipse create and manage the makefile
+MngCCWizard.name=Managed Make C++ Project
+MngCCWizard.description=Create a new C++ project and let Eclipse create and manage the makefile
+
+# Build Model Names
+ConfigName.Rel=Release
+ConfigName.Dbg=Debug
+ToolName.preprocessor = Preprocessor
+ToolName.compiler = Compiler
+ToolName.archiver = Archiver
+ToolName.linker = Linker
+OptionCategory.Preproc = Preprocessor
+OptionCategory.Dirs = Directories
+OptionCategory.General = General
+OptionCategory.Optimize=Optimization
+OptionCategory.Debug=Debugging
+OptionCategory.Warn=Warnings
+OptionCategory.Misc=Miscellaneous
+OptionCategory.Libs=Libraries
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/plugin.xml b/build/org.eclipse.cdt.managedbuilder.ui/plugin.xml
new file mode 100644
index 0000000000..f3bd68d613
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/plugin.xml
@@ -0,0 +1,1530 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<plugin
+ id="org.eclipse.cdt.managedbuilder.ui"
+ name="%pluginName"
+ version="1.0.0"
+ provider-name="%providerName"
+ class="org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin">
+
+ <runtime>
+ <library name="mgdbuildui.jar"/>
+ </runtime>
+ <requires>
+ <import plugin="org.eclipse.core.resources"/>
+ <import plugin="org.eclipse.ui"/>
+ <import plugin="org.eclipse.cdt.core"/>
+ <import plugin="org.eclipse.cdt.ui"/>
+ <import plugin="org.eclipse.cdt.managedbuilder.core"/>
+ <import plugin="org.eclipse.cdt.make.core"/>
+ </requires>
+
+
+ <extension
+ point="org.eclipse.ui.newWizards">
+<!-- Managed Make Builder Projects -->
+ <wizard
+ name="%MngCCWizard.name"
+ icon="icons/full/wizban/newmngcc_app.gif"
+ category="org.eclipse.cdt.ui.newCCWizards"
+ class="org.eclipse.cdt.managedbuilder.ui.wizards.NewManagedCCProjectWizard"
+ project="true"
+ finalPerspective="org.eclipse.cdt.ui.CPerspective"
+ id="org.eclipse.cdt.managedbuilder.ui.wizards.StdCCWizard">
+ <description>
+ %MngCCWizard.description
+ </description>
+ </wizard>
+ <wizard
+ name="%MngCWizard.name"
+ icon="icons/full/wizban/newmngcc_app.gif"
+ category="org.eclipse.cdt.ui.newCWizards"
+ class="org.eclipse.cdt.managedbuilder.ui.wizards.NewManagedCProjectWizard"
+ project="true"
+ finalPerspective="org.eclipse.cdt.ui.CPerspective"
+ id="org.eclipse.cdt.managedbuilder.ui.wizards.StdCWizard">
+ <description>
+ %MngCWizard.description
+ </description>
+ </wizard>
+ </extension>
+ <extension
+ point="org.eclipse.ui.propertyPages">
+ <page
+ objectClass="org.eclipse.core.resources.IProject"
+ name="C/C++ Build"
+ class="org.eclipse.cdt.managedbuilder.ui.properties.BuildPropertyPage"
+ id="org.eclipse.cdt.managedbuilder.ui.properties.BuildProperties">
+ <filter
+ name="nature"
+ value="org.eclipse.cdt.managedbuilder.core.managedBuildNature">
+ </filter>
+ </page>
+ </extension>
+ <extension
+ id="cdt.managed.build.info"
+ name="Managed Build Tools Description"
+ point="org.eclipse.cdt.managedbuilder.core.ManagedBuildInfo">
+ <target
+ makeFlags="-k"
+ isTest="false"
+ cleanCommand="rm -rf"
+ name="Cygwin"
+ isAbstract="true"
+ makeCommand="make"
+ id="cygwin">
+ <tool
+ sources="c,cc,cpp,cxx,C"
+ name="%ToolName.compiler"
+ outputFlag="-o"
+ outputs="o"
+ command="g++"
+ id="org.eclipse.cdt.build.tool.cygwin.compiler">
+ <optionCategory
+ owner="org.eclipse.cdt.build.tool.cygwin.compiler"
+ name="%OptionCategory.Preproc"
+ id="cygwin.compiler.category.preprocessor">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Do not search system directories (-nostdinc)"
+ category="cygwin.compiler.category.preprocessor"
+ command="-nostdinc"
+ valueType="boolean"
+ id="cygwin.gnu.compiler.preprocessor.nostdinc">
+ </option>
+ <option
+ defaultValue="false"
+ name="Preprocess only (-E)"
+ category="cygwin.compiler.category.preprocessor"
+ command="-E"
+ valueType="boolean"
+ id="cygwin.gnu.compiler.preprocessor.preprocess">
+ </option>
+ <option
+ name="Answers (-A)"
+ category="cygwin.compiler.category.preprocessor"
+ command="-A"
+ valueType="stringList"
+ id="cygwin.gnu.preprocessor.answers">
+ </option>
+ <optionCategory
+ owner="org.eclipse.cdt.build.tool.cygwin.compiler"
+ name="Symbols"
+ id="cygwin.gnu.compiler.category.symbols">
+ </optionCategory>
+ <option
+ name="Defined symbols (-D)"
+ category="cygwin.gnu.compiler.category.symbols"
+ command="-D"
+ valueType="definedSymbols"
+ id="cygwin.preprocessor.def.symbols">
+ <listOptionValue
+ value="_X86_=1"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__OPTIMIZE__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__STDC_HOSTED__=1"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="i386"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__i386"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__i386__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__tune_i686__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__tune_pentiumpro__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__tune_pentium2__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__tune_pentium3__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__stdcall=__attribute__((__stdcall__))"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__fastcall=__attribute__((__fastcall__))"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__cdecl=__attribute__((__cdecl__))"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="_stdcall=__attribute__((__stdcall__))"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="_fastcall=__attribute__((__fastcall__))"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="_cdecl=__attribute__((__cdecl__))"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__declspec(x)=__attribute__((x))"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__CYGWIN32__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__CYGWIN__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="unix"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__unix__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__unix"
+ builtIn="true">
+ </listOptionValue>
+ </option>
+ <option
+ name="Undefined symbols (-U)"
+ category="cygwin.gnu.compiler.category.symbols"
+ command="-U"
+ valueType="stringList"
+ id="cygwin.preprocessor.undef.symbol">
+ </option>
+ <optionCategory
+ owner="org.eclipse.cdt.build.tool.cygwin.compiler"
+ name="%OptionCategory.General"
+ id="cygwin.compiler.category.general">
+ </optionCategory>
+ <option
+ defaultValue="-c"
+ name="Compiler Flags"
+ category="cygwin.compiler.category.general"
+ valueType="string"
+ id="cygwin.compiler.general.ccflags">
+ </option>
+ <option
+ name="Optimization Level"
+ category="cygwin.compiler.category.general"
+ valueType="enumerated"
+ id="cygwin.compiler.general.optimization.level">
+ <enumeratedOptionValue
+ name="None (-O0)"
+ command="-O0"
+ id="cygwin.optimization.level.none">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize (-O1)"
+ command="-O1"
+ id="cygwin.optimization.level.optimize">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize more (-O2)"
+ isDefault="true"
+ command="-O2"
+ id="cygwin.optimization.level.more">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize most (-O3)"
+ command="-O3"
+ id="cygwin.optimization.level.most">
+ </enumeratedOptionValue>
+ </option>
+ <option
+ name="Debug Level"
+ category="cygwin.compiler.category.general"
+ valueType="enumerated"
+ id="cygwin.compiler.debugging.level">
+ <enumeratedOptionValue
+ name="None"
+ isDefault="false"
+ id="cygwin.debugging.level.none">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Minimal (-g1)"
+ command="-g1"
+ id="cygwin.debugging.level.minimal">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Default (-g)"
+ isDefault="true"
+ command="-g"
+ id="cygwin.debugging.level.default">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Maximum (-g3)"
+ isDefault="false"
+ command="-g3"
+ id="cygwin.debugging.level.max">
+ </enumeratedOptionValue>
+ </option>
+ <option
+ name="Include Paths"
+ category="cygwin.compiler.category.general"
+ command="-I"
+ valueType="includePath"
+ id="cygwin.compiler.general.include.paths">
+ <listOptionValue
+ value="C:\cygwin\usr\include\w32api"
+ builtIn="true">
+ </listOptionValue>
+ </option>
+ <option
+ defaultValue="false"
+ name="Verbose"
+ category="cygwin.compiler.category.general"
+ command="-v"
+ valueType="boolean"
+ id="cygwin.compiler.general.verbose">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Cygwin Executable"
+ parent="cygwin"
+ defaultExtension="exe"
+ isAbstract="false"
+ id="cygwin.exec">
+ <configuration
+ name="%ConfigName.Rel"
+ id="cygwin.exec.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="cygwin.exec.debug">
+ </configuration>
+ <tool
+ name="%ToolName.linker"
+ outputFlag="-o"
+ outputs="exe"
+ command="g++"
+ id="org.eclipse.cdt.build.tool.cygwin.link">
+ <optionCategory
+ owner="org.eclipse.cdt.build.tool.cygwin.link"
+ name="%OptionCategory.General"
+ id="cygwin.linker.category.general">
+ </optionCategory>
+ <option
+ name="Linker Flags"
+ category="cygwin.linker.category.general"
+ valueType="string"
+ id="cygwin.link.ld.flags">
+ </option>
+ <option
+ name="Library Paths"
+ category="cygwin.linker.category.general"
+ command="-L"
+ valueType="stringList"
+ id="cygwin.link.ld.paths">
+ </option>
+ <option
+ name="Libraries"
+ category="cygwin.linker.category.general"
+ command="-l"
+ valueType="libs"
+ id="cygwin.link.libs">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Cygwin Shared Library"
+ parent="cygwin"
+ defaultExtension="dll"
+ isAbstract="false"
+ id="cygwin.so">
+ <configuration
+ name="%ConfigName.Rel"
+ id="cygwin.so.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="cygwin.so.debug">
+ </configuration>
+ <tool
+ name="%ToolName.linker"
+ outputFlag="-o"
+ outputs="dll"
+ outputPrefix="lib"
+ command="g++ -shared"
+ id="org.eclipse.cdt.build.tool.cygwin.solink">
+ <optionCategory
+ owner="org.eclipse.cdt.build.tool.cygwin.solink"
+ name="%OptionCategory.General"
+ id="cygwin.solink.category.general">
+ </optionCategory>
+ <option
+ defaultValue=""
+ name="Linker Flags"
+ category="cygwin.solink.category.general"
+ valueType="string"
+ id="cygwin.solink.ld.flags">
+ </option>
+ <option
+ name="Library Paths"
+ category="cygwin.solink.category.general"
+ command="-L"
+ valueType="stringList"
+ id="cygwin.solink.ld.paths">
+ </option>
+ <option
+ name="Libraries"
+ category="cygwin.solink.category.general"
+ command="-l"
+ valueType="libs"
+ id="cygwin.solink.libs">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="true"
+ name="Cygwin Export Library (DLL)"
+ parent="cygwin"
+ defaultExtension="dll.a"
+ isAbstract="false"
+ id="cygwin.exp">
+ <configuration
+ name="%ConfigName.Rel"
+ id="cygwin.exp.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="cygwin.exp.debug">
+ </configuration>
+ <tool
+ name="%ToolName.linker"
+ outputFlag="-o"
+ outputs="dll"
+ outputPrefix="cyg"
+ command="g++ -shared"
+ id="org.eclipse.cdt.build.tool.cygwin.explink">
+ <optionCategory
+ owner="org.eclipse.cdt.build.tool.cygwin.explink"
+ name="%OptionCategory.General"
+ id="cygwin.explink.category.general">
+ </optionCategory>
+ <option
+ defaultValue="-Wl,--export-all-symbols -Wl,--enable-auto-import"
+ name="Linker Flags"
+ category="cygwin.explink.category.general"
+ valueType="string"
+ id="cygwin.explink.ld.flags">
+ </option>
+ <option
+ name="Library Paths"
+ category="cygwin.explink.category.general"
+ command="-L"
+ valueType="stringList"
+ id="cygwin.explink.ld.paths">
+ </option>
+ <option
+ name="Libraries"
+ category="cygwin.explink.category.general"
+ command="-l"
+ valueType="libs"
+ id="cygwin.explink.libs">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Cygwin Static Library"
+ parent="cygwin"
+ defaultExtension="a"
+ isAbstract="false"
+ id="cygwin.lib">
+ <configuration
+ name="%ConfigName.Rel"
+ id="cygwin.lib.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="cygwin.lib.debug">
+ </configuration>
+ <tool
+ name="%ToolName.archiver"
+ outputs="a"
+ outputPrefix="lib"
+ command="ar"
+ id="org.eclipse.cdt.build.tool.cygwin.ar">
+ <optionCategory
+ owner="org.eclipse.cdt.build.tool.cygwin.ar"
+ name="%OptionCategory.General"
+ id="cygwin.ar.category.general">
+ </optionCategory>
+ <option
+ defaultValue="-r"
+ name="Archiver Flags"
+ category="cygwin.ar.category.general"
+ valueType="string"
+ id="cygwin.ar.flags">
+ </option>
+ </tool>
+ </target>
+ <target
+ makeFlags="-k"
+ isTest="false"
+ cleanCommand="rm -rf"
+ name="Linux"
+ isAbstract="true"
+ makeCommand="make"
+ id="linux.gnu">
+ <tool
+ sources="c,C,cc,cxx,cpp"
+ name="%ToolName.compiler"
+ outputFlag="-o"
+ outputs="o"
+ command="g++"
+ id="cdt.build.tool.linux.gnu.compiler">
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.compiler"
+ name="%OptionCategory.Preproc"
+ id="linux.gnu.compiler.category.preprocessor">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Do not search system directories (-nostdinc)"
+ category="linux.gnu.compiler.category.preprocessor"
+ command="-nostdinc"
+ valueType="boolean"
+ id="linux.gnu.compiler.preprocessor.nostdinc">
+ </option>
+ <option
+ defaultValue="false"
+ name="Preprocess only (-E)"
+ category="linux.gnu.compiler.category.preprocessor"
+ command="-E"
+ valueType="boolean"
+ id="linux.gnu.compiler.preprocessor.preprocess">
+ </option>
+ <option
+ name="Defined Symbols (-D)"
+ category="linux.gnu.compiler.category.preprocessor"
+ command="-D"
+ valueType="definedSymbols"
+ id="linux.gnu.compiler.preprocessor.def">
+ <listOptionValue
+ value="__ELF__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="unix"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__gnu_linux__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="linux"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__unix__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__linux__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__unix"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__linux"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__OPTIMIZE__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__STDC_HOSTED__=1"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="_GNU_SOURCE"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="i386"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__i386"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__i386__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__tune_i386__"
+ builtIn="true">
+ </listOptionValue>
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.compiler"
+ name="%OptionCategory.Dirs"
+ id="linux.gnu.compiler.category.dirs">
+ </optionCategory>
+ <option
+ name="Include search paths (-I)"
+ category="linux.gnu.compiler.category.dirs"
+ command="-I"
+ valueType="includePath"
+ id="linux.gnu.compiler.dirs.incpaths">
+ <listOptionValue
+ value="/usr/local/include"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="/usr/include"
+ builtIn="true">
+ </listOptionValue>
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.compiler"
+ name="%OptionCategory.Optimize"
+ id="linux.gnu.compiler.category.optimization">
+ </optionCategory>
+ <option
+ name="Optimization Level"
+ category="linux.gnu.compiler.category.optimization"
+ valueType="enumerated"
+ id="linux.gnu.compiler.optimization.level">
+ <enumeratedOptionValue
+ name="None (-O0)"
+ command="-O0"
+ id="linux.gnu.compiler.optimization.level.none">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize (-O1)"
+ command="-O1"
+ id="linux.gnu.compiler.optimization.level.optimize">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize more (-O2)"
+ isDefault="true"
+ command="-O2"
+ id="linux.gnu.compiler.optimization.level.more">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize most (-O3)"
+ command="-O3"
+ id="linux.gnu.compiler.optimization.level.most">
+ </enumeratedOptionValue>
+ </option>
+ <option
+ name="Other optimization flags"
+ category="linux.gnu.compiler.category.optimization"
+ valueType="string"
+ id="linux.compiler.optimization.flags">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.compiler"
+ name="%OptionCategory.Debug"
+ id="linux.gnu.compiler.category.debug">
+ </optionCategory>
+ <option
+ name="Debug Level"
+ category="linux.gnu.compiler.category.debug"
+ valueType="enumerated"
+ id="linux.gnu.compiler.debugging.level">
+ <enumeratedOptionValue
+ name="None"
+ isDefault="false"
+ id="linux.gnu.compiler.debugging.level.none">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Minimal (-g1)"
+ command="-g1"
+ id="linux.gnu.compiler.debugging.level.minimal">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Default (-g)"
+ isDefault="true"
+ command="-g"
+ id="linux.gnu.compiler.debugging.level.default">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Maximum (-g3)"
+ isDefault="false"
+ command="-g3"
+ id="linux.gnu.compiler.debugging.level.max">
+ </enumeratedOptionValue>
+ </option>
+ <option
+ name="Other debugging flags"
+ category="linux.gnu.compiler.category.debug"
+ valueType="string"
+ id="linux.gnu.compiler.debugging.other">
+ </option>
+ <option
+ defaultValue="false"
+ name="Generate prof information (-p)"
+ category="linux.gnu.compiler.category.debug"
+ command="-p"
+ valueType="boolean"
+ id="linux.gnu.compiler.debugging.prof">
+ </option>
+ <option
+ defaultValue="false"
+ name="Generate gprof information (-pg)"
+ category="linux.gnu.compiler.category.debug"
+ command="-pg"
+ valueType="boolean"
+ id="linux.gnu.compiler.debugging.gprof">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.compiler"
+ name="%OptionCategory.Warn"
+ id="linux.gnu.compiler.category.warnings">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Check syntax only (-fsyntax-only)"
+ category="linux.gnu.compiler.category.warnings"
+ command="-fsyntax-only"
+ valueType="boolean"
+ id="linux.gnu.compiler.warnings.syntax">
+ </option>
+ <option
+ defaultValue="false"
+ name="Pedantic (-pedantic)"
+ category="linux.gnu.compiler.category.warnings"
+ command="-pedantic"
+ valueType="boolean"
+ id="linux.gnu.compiler.warnings.pedantic">
+ </option>
+ <option
+ defaultValue="false"
+ name="Pedantic warnings as errors (-pedantic-errors)"
+ category="linux.gnu.compiler.category.warnings"
+ command="-pedantic-errors"
+ valueType="boolean"
+ id="linux.gnu.compiler.warnings.pedantic.error">
+ </option>
+ <option
+ defaultValue="false"
+ name="Inhibit all warnings (-w)"
+ category="linux.gnu.compiler.category.warnings"
+ command="-w"
+ valueType="boolean"
+ id="linux.gnu.compiler.warnings.nowarn">
+ </option>
+ <option
+ defaultValue="true"
+ name="All warnings (-Wall)"
+ category="linux.gnu.compiler.category.warnings"
+ command="-Wall"
+ valueType="boolean"
+ id="linux.gnu.compiler.warnings.allwarn">
+ </option>
+ <option
+ defaultValue="false"
+ name="Warnings as errors (-werror)"
+ category="linux.gnu.compiler.category.warnings"
+ command="-werror"
+ valueType="boolean"
+ id="linux.gnu.compiler.warnings.toerrors">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.compiler"
+ name="%OptionCategory.Misc"
+ id="linux.gnu.compiler.category.other">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Verbose (-v)"
+ category="linux.gnu.compiler.category.other"
+ command="-v"
+ valueType="boolean"
+ id="linux.gnu.compiler.other.verbose">
+ </option>
+ <option
+ defaultValue="-c"
+ name="Other flags"
+ category="linux.gnu.compiler.category.other"
+ valueType="string"
+ id="linux.gnu.compiler.other.other">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Linux Executable"
+ parent="linux.gnu"
+ isAbstract="false"
+ id="linux.gnu.exec">
+ <configuration
+ name="%ConfigName.Rel"
+ id="linux.gnu.exec.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="linux.gnu.exec.debug">
+ </configuration>
+ <tool
+ sources="o"
+ name="%ToolName.linker"
+ outputFlag="-o"
+ command="g++"
+ id="cdt.build.tool.linux.gnu.link">
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.link"
+ name="%OptionCategory.General"
+ id="linux.gnu.linker.category.options">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Do not use standard start files (-nostartfiles)"
+ category="linux.gnu.linker.category.options"
+ command="-nostartfiles"
+ valueType="boolean"
+ id="linux.gnu.linker.options.nostart">
+ </option>
+ <option
+ defaultValue="false"
+ name="Do not use default libraries (-nodefaultlibs)"
+ category="linux.gnu.linker.category.options"
+ command="-nodefaultlibs"
+ valueType="boolean"
+ id="linux.gnu.linker.options.nodeflibs">
+ </option>
+ <option
+ defaultValue="false"
+ name="No startup or default libs (-nostdlib)"
+ category="linux.gnu.linker.category.options"
+ command="-nostdlib"
+ valueType="boolean"
+ id="linux.gnu.linker.options.nostdlibs">
+ </option>
+ <option
+ defaultValue="false"
+ name="Remove symbol table (-s)"
+ category="linux.gnu.linker.category.options"
+ command="-s"
+ valueType="boolean"
+ id="linux.gnu.linker.options.strip">
+ </option>
+ <option
+ defaultValue="false"
+ name="No shared libraries (-static)"
+ category="linux.gnu.linker.category.options"
+ command="-static"
+ valueType="boolean"
+ id="linux.gnu.linker.options.noshared">
+ </option>
+ <option
+ name="Other options (-Xlinker [option])"
+ category="linux.gnu.linker.category.options"
+ command="-Xlinker"
+ valueType="stringList"
+ id="linux.gnu.linker.options.other">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.link"
+ name="%OptionCategory.Libs"
+ id="linux.gnu.linker.category.libs">
+ </optionCategory>
+ <option
+ name="Libraries"
+ category="linux.gnu.linker.category.libs"
+ command="-l"
+ valueType="libs"
+ id="linux.gnu.linker.libs.libs">
+ </option>
+ <option
+ name="Library search path"
+ category="linux.gnu.linker.category.libs"
+ command="-L"
+ valueType="stringList"
+ id="linux.gnu.linker.libs.paths">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Linux Shared Library"
+ parent="linux.gnu"
+ defaultExtension="so"
+ isAbstract="false"
+ id="linux.gnu.so">
+ <configuration
+ name="%ConfigName.Rel"
+ id="linux.gnu.so.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="linux.gnu.so.debug">
+ </configuration>
+ <tool
+ sources="o"
+ name="%ToolName.linker"
+ outputFlag="-o"
+ outputs="so"
+ outputPrefix="lib"
+ command="g++ -shared"
+ id="cdt.build.tool.linux.gnu.solink">
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.solink"
+ name="%OptionCategory.General"
+ id="linux.gnu.solink.category.options">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Do not use standard start files (-nostartfiles)"
+ category="linux.gnu.solink.category.options"
+ command="-nostartfiles"
+ valueType="boolean"
+ id="linux.gnu.solink.options.nostart">
+ </option>
+ <option
+ defaultValue="false"
+ name="Do not use default libraries (-nodefaultlibs)"
+ category="linux.gnu.solink.category.options"
+ command="-nodefaultlibs"
+ valueType="boolean"
+ id="linux.gnu.solink.options.nodeflibs">
+ </option>
+ <option
+ defaultValue="false"
+ name="No startup or default libs (-nostdlib)"
+ category="linux.gnu.solink.category.options"
+ command="-nostdlib"
+ valueType="boolean"
+ id="linux.gnu.solink.options.nostdlibs">
+ </option>
+ <option
+ defaultValue="false"
+ name="Remove symbol table (-s)"
+ category="linux.gnu.solink.category.options"
+ command="-s"
+ valueType="boolean"
+ id="linux.gnu.solink.options.strip">
+ </option>
+ <option
+ defaultValue="false"
+ name="No shared libraries (-static)"
+ category="linux.gnu.solink.category.options"
+ command="-static"
+ valueType="boolean"
+ id="linux.gnu.solink.options.noshared">
+ </option>
+ <option
+ defaultValue="false"
+ name="Bind global symbol references (-symbolic)"
+ category="linux.gnu.solink.category.options"
+ command="-symbolic"
+ valueType="boolean"
+ id="linux.gnu.solink.options.symbolic">
+ </option>
+ <option
+ name="Other options (-Xlinker [option])"
+ category="linux.gnu.solink.category.options"
+ command="-Xlinker"
+ valueType="stringList"
+ id="linux.gnu.solink.options.other">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.solink"
+ name="%OptionCategory.Libs"
+ id="linux.gnu.solink.category.libs">
+ </optionCategory>
+ <option
+ name="Libraries"
+ category="linux.gnu.solink.category.libs"
+ command="-l"
+ valueType="libs"
+ id="linux.gnu.solink.libs.libs">
+ </option>
+ <option
+ name="Library search path"
+ category="linux.gnu.solink.category.libs"
+ command="-L"
+ valueType="stringList"
+ id="linux.gnu.solink.libs.paths">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Linux Static Library"
+ parent="linux.gnu"
+ defaultExtension="a"
+ isAbstract="false"
+ id="linux.gnu.lib">
+ <configuration
+ name="%ConfigName.Rel"
+ id="linux.gnu.lib.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="linux.gnu.lib.debug">
+ </configuration>
+ <tool
+ sources="o"
+ name="%ToolName.archiver"
+ outputs="a"
+ outputPrefix="lib"
+ command="ar"
+ id="cdt.build.tool.linux.gnu.lib">
+ <optionCategory
+ owner="cdt.build.tool.linux.gnu.lib"
+ name="%OptionCategory.General"
+ id="linux.gnu.lib.category.general">
+ </optionCategory>
+ <option
+ defaultValue="-r"
+ name="Archiver Flags"
+ category="linux.gnu.lib.category.general"
+ valueType="string"
+ id="linux.gnu.lib.flags">
+ </option>
+ </tool>
+ </target>
+ <target
+ makeFlags="-k"
+ isTest="false"
+ cleanCommand="rm -rf"
+ name="Solaris"
+ isAbstract="true"
+ makeCommand="make"
+ id="solaris.gnu">
+ <tool
+ sources="c,C,cc,cxx,cpp"
+ name="%ToolName.compiler"
+ outputFlag="-o"
+ outputs="o"
+ command="g++"
+ id="cdt.build.tool.solaris.gnu.compiler">
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.compiler"
+ name="%OptionCategory.Preproc"
+ id="solaris.gnu.compiler.category.preprocessor">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Do not search system directories (-nostdinc)"
+ category="solaris.gnu.compiler.category.preprocessor"
+ command="-nostdinc"
+ valueType="boolean"
+ id="solaris.gnu.compiler.preprocessor.nostdinc">
+ </option>
+ <option
+ defaultValue="false"
+ name="Preprocess only (-E)"
+ category="solaris.gnu.compiler.category.preprocessor"
+ command="-E"
+ valueType="boolean"
+ id="solaris.gnu.compiler.preprocessor.preprocess">
+ </option>
+ <option
+ name="Defined Symbols (-D)"
+ category="solaris.gnu.compiler.category.preprocessor"
+ command="-D"
+ valueType="definedSymbols"
+ id="solaris.gnu.compiler.preprocessor.def">
+ <listOptionValue
+ value="sun"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="sparc"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="unix"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__svr4__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__SVR4"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__GCC_NEW_VARARGS__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__sun__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__sparc__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__unix__"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__sun"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__sparc"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__unix"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="__OPTIMIZE__"
+ builtIn="true">
+ </listOptionValue>
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.compiler"
+ name="%OptionCategory.Dirs"
+ id="solaris.gnu.compiler.category.dirs">
+ </optionCategory>
+ <option
+ name="Include search paths (-I)"
+ category="solaris.gnu.compiler.category.dirs"
+ command="-I"
+ valueType="includePath"
+ id="solaris.gnu.compiler.dirs.incpaths">
+ <listOptionValue
+ value="/usr/local/include"
+ builtIn="true">
+ </listOptionValue>
+ <listOptionValue
+ value="/usr/include"
+ builtIn="true">
+ </listOptionValue>
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.compiler"
+ name="%OptionCategory.Optimize"
+ id="solaris.gnu.compiler.category.optimization">
+ </optionCategory>
+ <option
+ name="Optimization Level"
+ category="solaris.gnu.compiler.category.optimization"
+ valueType="enumerated"
+ id="solaris.gnu.compiler.optimization.level">
+ <enumeratedOptionValue
+ name="None (-O0)"
+ command="-O0"
+ id="solaris.gnu.compiler.optimization.level.none">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize (-O1)"
+ command="-O1"
+ id="solaris.gnu.compiler.optimization.level.optimize">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize more (-O2)"
+ isDefault="true"
+ command="-O2"
+ id="solaris.gnu.compiler.optimization.level.more">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Optimize most (-O3)"
+ command="-O3"
+ id="solaris.gnu.compiler.optimization.level.most">
+ </enumeratedOptionValue>
+ </option>
+ <option
+ name="Other optimization flags"
+ category="solaris.gnu.compiler.category.optimization"
+ valueType="string"
+ id="solaris.compiler.optimization.flags">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.compiler"
+ name="%OptionCategory.Debug"
+ id="solaris.gnu.compiler.category.debug">
+ </optionCategory>
+ <option
+ name="Debug Level"
+ category="solaris.gnu.compiler.category.debug"
+ valueType="enumerated"
+ id="solaris.gnu.compiler.debugging.level">
+ <enumeratedOptionValue
+ name="None"
+ isDefault="false"
+ id="solaris.gnu.compiler.debugging.level.none">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Minimal (-g1)"
+ command="-g1"
+ id="solaris.gnu.compiler.debugging.level.minimal">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Default (-g)"
+ isDefault="true"
+ command="-g"
+ id="solaris.gnu.compiler.debugging.level.default">
+ </enumeratedOptionValue>
+ <enumeratedOptionValue
+ name="Maximum (-g3)"
+ isDefault="false"
+ command="-g3"
+ id="solaris.gnu.compiler.debugging.level.max">
+ </enumeratedOptionValue>
+ </option>
+ <option
+ name="Other debugging flags"
+ category="solaris.gnu.compiler.category.debug"
+ valueType="string"
+ id="solaris.gnu.compiler.debugging.other">
+ </option>
+ <option
+ defaultValue="false"
+ name="Generate prof information (-p)"
+ category="solaris.gnu.compiler.category.debug"
+ command="-p"
+ valueType="boolean"
+ id="solaris.gnu.compiler.debugging.prof">
+ </option>
+ <option
+ defaultValue="false"
+ name="Generate gprof information (-pg)"
+ category="solaris.gnu.compiler.category.debug"
+ command="-pg"
+ valueType="boolean"
+ id="solaris.gnu.compiler.debugging.gprof">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.compiler"
+ name="%OptionCategory.Warn"
+ id="solaris.gnu.compiler.category.warnings">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Check syntax only (-fsyntax-only)"
+ category="solaris.gnu.compiler.category.warnings"
+ command="-fsyntax-only"
+ valueType="boolean"
+ id="solaris.gnu.compiler.warnings.syntax">
+ </option>
+ <option
+ defaultValue="false"
+ name="Pedantic (-pedantic)"
+ category="solaris.gnu.compiler.category.warnings"
+ command="-pedantic"
+ valueType="boolean"
+ id="solaris.gnu.compiler.warnings.pedantic">
+ </option>
+ <option
+ defaultValue="false"
+ name="Pedantic warnings as errors (-pedantic-errors)"
+ category="solaris.gnu.compiler.category.warnings"
+ command="-pedantic-errors"
+ valueType="boolean"
+ id="solaris.gnu.compiler.warnings.pedantic.error">
+ </option>
+ <option
+ defaultValue="false"
+ name="Inhibit all warnings (-w)"
+ category="solaris.gnu.compiler.category.warnings"
+ command="-w"
+ valueType="boolean"
+ id="solaris.gnu.compiler.warnings.nowarn">
+ </option>
+ <option
+ defaultValue="true"
+ name="All warnings (-Wall)"
+ category="solaris.gnu.compiler.category.warnings"
+ command="-Wall"
+ valueType="boolean"
+ id="solaris.gnu.compiler.warnings.allwarn">
+ </option>
+ <option
+ defaultValue="false"
+ name="Warnings as errors (-werror)"
+ category="solaris.gnu.compiler.category.warnings"
+ command="-werror"
+ valueType="boolean"
+ id="solaris.gnu.compiler.warnings.toerrors">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.compiler"
+ name="%OptionCategory.Misc"
+ id="solaris.gnu.compiler.category.other">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Verbose (-v)"
+ category="solaris.gnu.compiler.category.other"
+ command="-v"
+ valueType="boolean"
+ id="solaris.gnu.compiler.other.verbose">
+ </option>
+ <option
+ defaultValue="-c"
+ name="Other flags"
+ category="solaris.gnu.compiler.category.other"
+ valueType="string"
+ id="solaris.gnu.compiler.other.other">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Solaris Executable"
+ parent="solaris.gnu"
+ isAbstract="false"
+ id="solaris.gnu.exec">
+ <configuration
+ name="%ConfigName.Rel"
+ id="solaris.gnu.exec.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="solaris.gnu.exec.debug">
+ </configuration>
+ <tool
+ sources="o"
+ name="%ToolName.linker"
+ outputFlag="-o"
+ command="g++"
+ id="cdt.build.tool.solaris.gnu.link">
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.link"
+ name="%OptionCategory.General"
+ id="solaris.gnu.linker.category.options">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Do not use standard start files (-nostartfiles)"
+ category="solaris.gnu.linker.category.options"
+ command="-nostartfiles"
+ valueType="boolean"
+ id="solaris.gnu.linker.options.nostart">
+ </option>
+ <option
+ defaultValue="false"
+ name="Do not use default libraries (-nodefaultlibs)"
+ category="solaris.gnu.linker.category.options"
+ command="-nodefaultlibs"
+ valueType="boolean"
+ id="solaris.gnu.linker.options.nodeflibs">
+ </option>
+ <option
+ defaultValue="false"
+ name="No startup or default libs (-nostdlib)"
+ category="solaris.gnu.linker.category.options"
+ command="-nostdlib"
+ valueType="boolean"
+ id="solaris.gnu.linker.options.nostdlibs">
+ </option>
+ <option
+ defaultValue="false"
+ name="Remove symbol table (-s)"
+ category="solaris.gnu.linker.category.options"
+ command="-s"
+ valueType="boolean"
+ id="solaris.gnu.linker.options.strip">
+ </option>
+ <option
+ defaultValue="false"
+ name="No shared libraries (-static)"
+ category="solaris.gnu.linker.category.options"
+ command="-static"
+ valueType="boolean"
+ id="solaris.gnu.linker.options.noshared">
+ </option>
+ <option
+ name="Other options (-Xlinker [option])"
+ category="solaris.gnu.linker.category.options"
+ command="-Xlinker"
+ valueType="stringList"
+ id="solaris.gnu.linker.options.other">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.link"
+ name="%OptionCategory.Libs"
+ id="solaris.gnu.linker.category.libs">
+ </optionCategory>
+ <option
+ name="Libraries"
+ category="solaris.gnu.linker.category.libs"
+ command="-l"
+ valueType="libs"
+ id="solaris.gnu.linker.libs.libs">
+ </option>
+ <option
+ name="Library search path"
+ category="solaris.gnu.linker.category.libs"
+ command="-L"
+ valueType="stringList"
+ id="solaris.gnu.linker.libs.paths">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Solaris Shared Library"
+ parent="solaris.gnu"
+ defaultExtension="so"
+ isAbstract="false"
+ id="solaris.gnu.so">
+ <configuration
+ name="%ConfigName.Rel"
+ id="solaris.gnu.so.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="solaris.gnu.so.debug">
+ </configuration>
+ <tool
+ sources="o"
+ name="%ToolName.linker"
+ outputFlag="-o"
+ outputs="so"
+ outputPrefix="lib"
+ command="g++ -shared"
+ id="cdt.build.tool.solaris.gnu.solink">
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.solink"
+ name="%OptionCategory.General"
+ id="solaris.gnu.solink.category.options">
+ </optionCategory>
+ <option
+ defaultValue="false"
+ name="Do not use standard start files (-nostartfiles)"
+ category="solaris.gnu.solink.category.options"
+ command="-nostartfiles"
+ valueType="boolean"
+ id="solaris.gnu.solink.options.nostart">
+ </option>
+ <option
+ defaultValue="false"
+ name="Do not use default libraries (-nodefaultlibs)"
+ category="solaris.gnu.solink.category.options"
+ command="-nodefaultlibs"
+ valueType="boolean"
+ id="solaris.gnu.solink.options.nodeflibs">
+ </option>
+ <option
+ defaultValue="false"
+ name="No startup or default libs (-nostdlib)"
+ category="solaris.gnu.solink.category.options"
+ command="-nostdlib"
+ valueType="boolean"
+ id="solaris.gnu.solink.options.nostdlibs">
+ </option>
+ <option
+ defaultValue="false"
+ name="Remove symbol table (-s)"
+ category="solaris.gnu.solink.category.options"
+ command="-s"
+ valueType="boolean"
+ id="solaris.gnu.solink.options.strip">
+ </option>
+ <option
+ defaultValue="false"
+ name="No shared libraries (-static)"
+ category="solaris.gnu.solink.category.options"
+ command="-static"
+ valueType="boolean"
+ id="solaris.gnu.solink.options.noshared">
+ </option>
+ <option
+ defaultValue="false"
+ name="Bind global symbol references (-symbolic)"
+ category="solaris.gnu.solink.category.options"
+ command="-symbolic"
+ valueType="boolean"
+ id="solaris.gnu.solink.options.symbolic">
+ </option>
+ <option
+ name="Other options (-Xlinker [option])"
+ category="solaris.gnu.solink.category.options"
+ command="-Xlinker"
+ valueType="stringList"
+ id="solaris.gnu.solink.options.other">
+ </option>
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.solink"
+ name="%OptionCategory.Libs"
+ id="solaris.gnu.solink.category.libs">
+ </optionCategory>
+ <option
+ name="Libraries"
+ category="solaris.gnu.solink.category.libs"
+ command="-l"
+ valueType="libs"
+ id="solaris.gnu.solink.libs.libs">
+ </option>
+ <option
+ name="Library search path"
+ category="solaris.gnu.solink.category.libs"
+ command="-L"
+ valueType="stringList"
+ id="solaris.gnu.solink.libs.paths">
+ </option>
+ </tool>
+ </target>
+ <target
+ isTest="false"
+ name="Solaris Static Library"
+ parent="solaris.gnu"
+ defaultExtension="a"
+ isAbstract="false"
+ id="solaris.gnu.lib">
+ <configuration
+ name="%ConfigName.Rel"
+ id="solaris.gnu.lib.release">
+ </configuration>
+ <configuration
+ name="%ConfigName.Dbg"
+ id="solaris.gnu.lib.debug">
+ </configuration>
+ <tool
+ sources="o"
+ name="%ToolName.archiver"
+ outputs="a"
+ outputPrefix="lib"
+ command="ar"
+ id="cdt.build.tool.solaris.gnu.lib">
+ <optionCategory
+ owner="cdt.build.tool.solaris.gnu.lib"
+ name="%OptionCategory.General"
+ id="solaris.gnu.lib.category.general">
+ </optionCategory>
+ <option
+ defaultValue="-r"
+ name="Archiver Flags"
+ category="solaris.gnu.lib.category.general"
+ valueType="string"
+ id="solaris.gnu.lib.flags">
+ </option>
+ </tool>
+ </target>
+ </extension>
+
+</plugin>
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIImages.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIImages.java
new file mode 100644
index 0000000000..338ade7758
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIImages.java
@@ -0,0 +1,112 @@
+package org.eclipse.cdt.managedbuilder.internal.ui;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * IBM Rational Software - Initial API and implementation
+ * **********************************************************************/
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.eclipse.cdt.ui.*;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * Bundle of all images used by the C plugin.
+ */
+public class ManagedBuilderUIImages {
+
+ // The plugin registry
+ private static ImageRegistry imageRegistry = new ImageRegistry();
+
+ // Subdirectory (under the package containing this class) where 16 color images are
+ private static URL fgIconBaseURL;
+ static {
+ try {
+ fgIconBaseURL= new URL(ManagedBuilderUIPlugin.getDefault().getDescriptor().getInstallURL(), "icons/" );
+ } catch (MalformedURLException e) {
+ CUIPlugin.getDefault().log(e);
+ }
+ }
+ private static final String NAME_PREFIX= ManagedBuilderUIPlugin.getUniqueIdentifier() + '.';
+ private static final int NAME_PREFIX_LENGTH= NAME_PREFIX.length();
+ private static final String T= "full/";
+
+ public static final String T_BUILD= T + "build16/";
+
+
+
+ // For the managed build images
+ public static final String IMG_BUILD_CONFIG = NAME_PREFIX + "build_configs.gif";
+ public static final ImageDescriptor DESC_BUILD_CONFIG = createManaged(T_BUILD, IMG_BUILD_CONFIG);
+ public static final String IMG_BUILD_COMPILER = NAME_PREFIX + "config-compiler.gif";
+ public static final ImageDescriptor DESC_BUILD_COMPILER = createManaged(T_BUILD, IMG_BUILD_COMPILER);
+ public static final String IMG_BUILD_LINKER = NAME_PREFIX + "config-linker.gif";
+ public static final ImageDescriptor DESC_BUILD_LINKER = createManaged(T_BUILD, IMG_BUILD_LINKER);
+ public static final String IMG_BUILD_LIBRARIAN = NAME_PREFIX + "config-librarian.gif";
+ public static final ImageDescriptor DESC_BUILD_LIBRARIAN = createManaged(T_BUILD, IMG_BUILD_LIBRARIAN);
+ public static final String IMG_BUILD_COMMAND = NAME_PREFIX + "config-command.gif";
+ public static final ImageDescriptor DESC_BUILD_COMMAND = createManaged(T_BUILD, IMG_BUILD_COMMAND);
+ public static final String IMG_BUILD_PREPROCESSOR = NAME_PREFIX + "config-preprocessor.gif";
+ public static final ImageDescriptor DESC_BUILD_PREPROCESSOR = createManaged(T_BUILD, IMG_BUILD_PREPROCESSOR);
+ public static final String IMG_BUILD_TOOL = NAME_PREFIX + "config-tool.gif";
+ public static final ImageDescriptor DESC_BUILD_TOOL = createManaged(T_BUILD, IMG_BUILD_TOOL);
+ public static final String IMG_BUILD_CAT = NAME_PREFIX + "config-category.gif";
+ public static final ImageDescriptor DESC_BUILD_CAT = createManaged(T_BUILD, IMG_BUILD_CAT);
+
+
+ private static ImageDescriptor createManaged(String prefix, String name) {
+ return createManaged(imageRegistry, prefix, name);
+ }
+
+ private static ImageDescriptor createManaged(ImageRegistry registry, String prefix, String name) {
+ ImageDescriptor result= ImageDescriptor.createFromURL(makeIconFileURL(prefix, name.substring(NAME_PREFIX_LENGTH)));
+ registry.put(name, result);
+ return result;
+ }
+
+ public static Image get(String key) {
+ return imageRegistry.get(key);
+ }
+
+ private static ImageDescriptor create(String prefix, String name) {
+ return ImageDescriptor.createFromURL(makeIconFileURL(prefix, name));
+ }
+
+ private static URL makeIconFileURL(String prefix, String name) {
+ StringBuffer buffer= new StringBuffer(prefix);
+ buffer.append(name);
+ try {
+ return new URL(fgIconBaseURL, buffer.toString());
+ } catch (MalformedURLException e) {
+ CUIPlugin.getDefault().log(e);
+ return null;
+ }
+ }
+
+ /**
+ * Sets all available image descriptors for the given action.
+ */
+ public static void setImageDescriptors(IAction action, String type, String relPath) {
+ relPath= relPath.substring(NAME_PREFIX_LENGTH);
+ action.setDisabledImageDescriptor(create(T + "d" + type, relPath));
+ action.setHoverImageDescriptor(create(T + "c" + type, relPath));
+ action.setImageDescriptor(create(T + "e" + type, relPath));
+ }
+
+ /**
+ * Helper method to access the image registry from the JavaPlugin class.
+ */
+ static ImageRegistry getImageRegistry() {
+ return imageRegistry;
+ }
+}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIPlugin.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIPlugin.java
new file mode 100644
index 0000000000..69b6aa2302
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedBuilderUIPlugin.java
@@ -0,0 +1,79 @@
+package org.eclipse.cdt.managedbuilder.internal.ui;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * IBM Rational Software - Initial API and implementation
+ * **********************************************************************/
+
+import java.text.MessageFormat;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+import org.eclipse.core.runtime.IPluginDescriptor;
+import org.eclipse.core.runtime.Plugin;
+
+
+public class ManagedBuilderUIPlugin extends Plugin {
+ //The shared instance.
+ private static ManagedBuilderUIPlugin plugin;
+ //Resource bundle.
+ private static ResourceBundle resourceBundle;
+
+ /**
+ * @param descriptor
+ */
+ public ManagedBuilderUIPlugin(IPluginDescriptor descriptor) {
+ super(descriptor);
+ plugin = this;
+ try {
+ resourceBundle = ResourceBundle.getBundle("org.eclipse.cdt.managedbuilder.internal.ui.PluginResources"); //$NON-NLS-1$
+ } catch (MissingResourceException x) {
+ resourceBundle = null;
+ }
+ }
+
+ /**
+ * Returns the shared instance.
+ */
+ public static ManagedBuilderUIPlugin getDefault() {
+ return plugin;
+ }
+
+ public static String getResourceString(String key) {
+ try {
+ return resourceBundle.getString(key);
+ } catch (MissingResourceException e) {
+ return "!" + key + "!";
+ } catch (NullPointerException e) {
+ return "#" + key + "#";
+ }
+ }
+
+ public static String getFormattedString(String key, String arg) {
+ return MessageFormat.format(getResourceString(key), new String[] { arg });
+ }
+
+ public static String getFormattedString(String key, String[] args) {
+ return MessageFormat.format(getResourceString(key), args);
+ }
+
+ /**
+ * Convenience method which returns the unique identifier of this plugin.
+ */
+ public static String getUniqueIdentifier() {
+ if (getDefault() == null) {
+ // If the default instance is not yet initialized,
+ // return a static identifier. This identifier must
+ // match the plugin id defined in plugin.xml
+ return "org.eclipse.cdt.managedbuilder.ui"; //$NON-NLS-1$
+ }
+ return getDefault().getDescriptor().getUniqueIdentifier();
+ }
+
+}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedProjectOptionBlock.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedProjectOptionBlock.java
new file mode 100644
index 0000000000..ed3feeaccc
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/ManagedProjectOptionBlock.java
@@ -0,0 +1,35 @@
+package org.eclipse.cdt.managedbuilder.internal.ui;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * IBM Rational Software - Initial API and implementation
+ * **********************************************************************/
+
+import org.eclipse.cdt.ui.dialogs.ICOptionContainer;
+import org.eclipse.cdt.ui.dialogs.TabFolderOptionBlock;
+
+public class ManagedProjectOptionBlock extends TabFolderOptionBlock {
+
+ /**
+ * @param parent
+ */
+ public ManagedProjectOptionBlock(ICOptionContainer parent) {
+ super(parent);
+ // TODO Auto-generated constructor stub
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.ui.dialogs.TabFolderOptionBlock#addTabs()
+ */
+ protected void addTabs() {
+ // TODO Auto-generated method stub
+
+ }
+
+}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/PluginResources.properties b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/PluginResources.properties
new file mode 100644
index 0000000000..a3c5f17ab4
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/internal/ui/PluginResources.properties
@@ -0,0 +1,57 @@
+#########################################
+# (c) Copyright IBM Corp. 2000, 2001.
+# All Rights Reserved.
+#########################################
+
+# ------- NewProjectCreationPluginPage-------
+
+MngMakeProjectWizard.op_error=Managed Make Error
+MngMakeProjectWizard.title=Managed Make Project
+MngMakeProjectWizard.description=Create a new Managed Make project.
+#MngMakeProjectWizardSettings.title=Managed Make Settings
+#MngMakeProjectWizardSettings.description=Define the Managed Make build settings.
+MngMakeProjectWizard.message.add_nature=Adding Managed Nature
+MngMakeProjectWizard.message.add_builder=Adding Makefile Generator
+MngMakeProjectWizard.message.save=Saving new build options
+
+MngCWizard.title=Managed Make C Project
+MngCWizard.description=Create a new Managed Make C project.
+MngCWizardSettings.title=Managed Make C Settings
+MngCWizardSettings.description=Define the Managed Make C build settings.
+
+MngCCWizard.title=Managed Make C++ Project
+MngCCWizard.description=Create a new Managed Make C++ Project.
+MngCCWizard.message.creating=Creating a new C++ Project with a makefile generator
+MngCCWizardSettings.title=Managed Make C++ Settings
+MngCCWizardSettings.description=Define the Managed Make C++ build settings.
+
+# -- Strings for the platform selection page --
+MngMakeProjectWizard.config.title=Select a Target
+MngMakeProjectWizard.config.desc=Select the platform and configurations you wish to deploy on
+PlatformBlock.label.platform=Platform:
+PlatformBlock.label.configs=Configurations:
+
+# -- Strings for the additional options tab
+MngMakeProjectWizard.options.title=Additional Project Settings
+MngMakeProjectWizard.options.desc=Defined the binary parser and inter-project dependencies, if any.
+
+# ----------- Configuration Selection Page -----------
+BuildPropertyPage.label.Platform=Platform:
+BuildPropertyPage.label.Configuration=Configuration:
+BuildPropertyPage.label.Active=Active configuration
+BuildPropertyPage.label.Settings=Configuration settings
+BuildPropertyPage.label.AddConfButton=Manage...
+BuildPropertyPage.label.ToolTree=Tools
+BuildPropertyPage.label.ToolOptions=Options
+BuildPropertyPage.tip.platform=Select a platform for the project
+BuildPropertyPage.tip.config=Select the configuration to edit
+BuildPropertyPage.tip.addconf=Add configurations for the platform
+BuildPropertyPage.tip.remconf=Remove configurations for the platform
+BuildPropertyPage.manage.title=Manage Configurations
+
+
+# ----------- New Configuration -----------
+NewConfiguration.label.name=Configuration name:
+NewConfiguration.label.copy=Copy settings from:
+NewConfiguration.error.title=Error
+NewConfiguration.error.duplicateName=A configuration named "{0}" already exists.
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BrowseEntryDialog.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BrowseEntryDialog.java
index ffab7c71d6..5d70b4606f 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BrowseEntryDialog.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BrowseEntryDialog.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -21,7 +21,13 @@ import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.*;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.DirectoryDialog;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.swt.widgets.Text;
public class BrowseEntryDialog extends Dialog {
// String constants
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildOptionComboFieldEditor.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionComboFieldEditor.java
index 8e470efdb5..8288407edd 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildOptionComboFieldEditor.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionComboFieldEditor.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildOptionListFieldEditor.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionListFieldEditor.java
index ef2e289a1c..cc9930521b 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildOptionListFieldEditor.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildOptionListFieldEditor.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildPropertyPage.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java
index ff1472a248..e8b0d53a0c 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildPropertyPage.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildPropertyPage.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -17,12 +17,12 @@ import java.util.List;
import java.util.ListIterator;
import java.util.Map;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IManagedBuildInfo;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
-import org.eclipse.cdt.ui.CUIPlugin;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
import org.eclipse.core.resources.IProject;
import org.eclipse.jface.preference.IPreferencePageContainer;
@@ -162,7 +162,7 @@ public class BuildPropertyPage extends PropertyPage implements IWorkbenchPropert
GridData gd;
// Add a config selection area
- Group configGroup = ControlFactory.createGroup(composite, CUIPlugin.getResourceString(ACTIVE_LABEL), 1);
+ Group configGroup = ControlFactory.createGroup(composite, ManagedBuilderUIPlugin.getResourceString(ACTIVE_LABEL), 1);
gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
gd.grabExcessHorizontalSpace = true;
configGroup.setLayoutData(gd);
@@ -172,24 +172,24 @@ public class BuildPropertyPage extends PropertyPage implements IWorkbenchPropert
form.marginWidth = 5;
configGroup.setLayout(form);
- Label platformLabel = ControlFactory.createLabel(configGroup, CUIPlugin.getResourceString(PLATFORM_LABEL));
+ Label platformLabel = ControlFactory.createLabel(configGroup, ManagedBuilderUIPlugin.getResourceString(PLATFORM_LABEL));
targetSelector = ControlFactory.createSelectCombo(configGroup, getPlatformNames(), null);
targetSelector.addListener(SWT.Selection, new Listener () {
public void handleEvent(Event e) {
handleTargetSelection();
}
});
- targetSelector.setToolTipText(CUIPlugin.getResourceString(PLAT_TIP));
- Label configLabel = ControlFactory.createLabel(configGroup, CUIPlugin.getResourceString(CONFIG_LABEL));
+ targetSelector.setToolTipText(ManagedBuilderUIPlugin.getResourceString(PLAT_TIP));
+ Label configLabel = ControlFactory.createLabel(configGroup, ManagedBuilderUIPlugin.getResourceString(CONFIG_LABEL));
configSelector = new Combo(configGroup, SWT.READ_ONLY|SWT.DROP_DOWN);
configSelector.addListener(SWT.Selection, new Listener () {
public void handleEvent(Event e) {
handleConfigSelection();
}
});
- configSelector.setToolTipText(CUIPlugin.getResourceString(CONF_TIP));
- manageConfigs = ControlFactory.createPushButton(configGroup, CUIPlugin.getResourceString(ADD_CONF));
- manageConfigs.setToolTipText(CUIPlugin.getResourceString(ADD_TIP));
+ configSelector.setToolTipText(ManagedBuilderUIPlugin.getResourceString(CONF_TIP));
+ manageConfigs = ControlFactory.createPushButton(configGroup, ManagedBuilderUIPlugin.getResourceString(ADD_CONF));
+ manageConfigs.setToolTipText(ManagedBuilderUIPlugin.getResourceString(ADD_TIP));
manageConfigs.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
handleManageConfig();
@@ -221,7 +221,7 @@ public class BuildPropertyPage extends PropertyPage implements IWorkbenchPropert
configSelector.setLayoutData(fd);
// Create the sash form
- sashGroup = ControlFactory.createGroup(composite, CUIPlugin.getResourceString(SETTINGS_LABEL), 1);
+ sashGroup = ControlFactory.createGroup(composite, ManagedBuilderUIPlugin.getResourceString(SETTINGS_LABEL), 1);
sashGroup.setLayoutData(new GridData(GridData.FILL_BOTH));
sashForm = new SashForm(sashGroup, SWT.NONE);
sashForm.setOrientation(SWT.HORIZONTAL);
@@ -413,7 +413,7 @@ public class BuildPropertyPage extends PropertyPage implements IWorkbenchPropert
// Event handler for the manage configuration button event
private void handleManageConfig () {
- ManageConfigDialog manageDialog = new ManageConfigDialog(getShell(), CUIPlugin.getResourceString(MANAGE_TITLE), selectedTarget);
+ ManageConfigDialog manageDialog = new ManageConfigDialog(getShell(), ManagedBuilderUIPlugin.getResourceString(MANAGE_TITLE), selectedTarget);
if (manageDialog.open() == ManageConfigDialog.OK) {
// Check to see if any configurations have to be deleted
ArrayList deleteMe = manageDialog.getDeletedConfigs();
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildToolSettingsPage.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolSettingsPage.java
index 4e500b1edb..c4d4e41b84 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildToolSettingsPage.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolSettingsPage.java
@@ -1,10 +1,10 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildToolsSettingsStore.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolsSettingsStore.java
index 3e4551f073..85ad989c53 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/BuildToolsSettingsStore.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/BuildToolsSettingsStore.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -16,15 +16,15 @@ import java.util.HashMap;
import java.util.Map;
import java.util.StringTokenizer;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITool;
-import org.eclipse.jface.util.ListenerList;
-import org.eclipse.jface.util.PropertyChangeEvent;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.IPropertyChangeListener;
+import org.eclipse.jface.util.ListenerList;
+import org.eclipse.jface.util.PropertyChangeEvent;
public class BuildToolsSettingsStore implements IPreferenceStore {
public static final String DEFAULT_SEPERATOR = ";";
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ManageConfigDialog.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ManageConfigDialog.java
index 412fb529c8..6a9ba104c9 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ManageConfigDialog.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ManageConfigDialog.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -15,9 +15,9 @@ import java.util.ArrayList;
import java.util.SortedMap;
import java.util.TreeMap;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
import org.eclipse.core.resources.IProject;
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/NewConfigurationDialog.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/NewConfigurationDialog.java
index 6fcb6b5e85..8765e7ce57 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/NewConfigurationDialog.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/NewConfigurationDialog.java
@@ -1,8 +1,8 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.ui.CUIPlugin;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.dialogs.IDialogConstants;
@@ -109,7 +109,7 @@ public class NewConfigurationDialog extends Dialog {
GridData gd;
// Add a label and a text widget
- Label nameLabel = ControlFactory.createLabel(composite, CUIPlugin.getResourceString(NAME));
+ Label nameLabel = ControlFactory.createLabel(composite, ManagedBuilderUIPlugin.getResourceString(NAME));
gd = new GridData();
gd.horizontalSpan = 1;
nameLabel.setLayoutData(gd);
@@ -124,7 +124,7 @@ public class NewConfigurationDialog extends Dialog {
});
// Add a label and combo box to select the base config
- Label configLabel = ControlFactory.createLabel(composite, CUIPlugin.getResourceString(COPY));
+ Label configLabel = ControlFactory.createLabel(composite, ManagedBuilderUIPlugin.getResourceString(COPY));
gd = new GridData();
gd.horizontalSpan = 1;
configLabel.setLayoutData(gd);
@@ -198,8 +198,8 @@ public class NewConfigurationDialog extends Dialog {
// Make sure the name is not a duplicate
if (isDuplicateName(currentName)) {
MessageDialog.openError(getShell(),
- CUIPlugin.getResourceString(TITLE),
- CUIPlugin.getFormattedString(DUPLICATE, currentName)); //$NON-NLS-1$
+ ManagedBuilderUIPlugin.getResourceString(TITLE),
+ ManagedBuilderUIPlugin.getFormattedString(DUPLICATE, currentName)); //$NON-NLS-1$
return false;
}
// TODO make sure there are no invalid chars in name
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/SummaryFieldEditor.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/SummaryFieldEditor.java
index aa6e6bcded..ad2ed4c10c 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/SummaryFieldEditor.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/SummaryFieldEditor.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -11,7 +11,7 @@ package org.eclipse.cdt.ui.build.properties;
* IBM Rational Software - Initial API and implementation
***********************************************************************/
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.jface.preference.FieldEditor;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ToolListContentProvider.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolListContentProvider.java
index d2f04f63c7..2114a8f88c 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ToolListContentProvider.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolListContentProvider.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -12,9 +12,9 @@ package org.eclipse.cdt.ui.build.properties;
* IBM Rational Software
* *********************************************************************/
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITool;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.Viewer;
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ToolListLabelProvider.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolListLabelProvider.java
index b1d6397f0c..f1b1d7311c 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/properties/ToolListLabelProvider.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/ToolListLabelProvider.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.properties;
+package org.eclipse.cdt.managedbuilder.ui.properties;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -11,14 +11,14 @@ package org.eclipse.cdt.ui.build.properties;
* IBM Rational Software - Initial API and implementation
* **********************************************************************/
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.internal.ui.CPluginImages;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIImages;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
class ToolListLabelProvider extends LabelProvider {
- private final Image IMG_TOOL = CPluginImages.get(CPluginImages.IMG_BUILD_TOOL);
- private final Image IMG_CAT = CPluginImages.get(CPluginImages.IMG_BUILD_CAT);
+ private final Image IMG_TOOL = ManagedBuilderUIImages.get(ManagedBuilderUIImages.IMG_BUILD_TOOL);
+ private final Image IMG_CAT = ManagedBuilderUIImages.get(ManagedBuilderUIImages.IMG_BUILD_CAT);
private static final String TREE_LABEL = "BuildPropertyPage.label.ToolTree"; //$NON-NLS-1$
public Image getImage(Object element) {
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/CProjectPlatformPage.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CProjectPlatformPage.java
index 9a1f3f8a0d..edb4066ae7 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/CProjectPlatformPage.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/CProjectPlatformPage.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.wizards;
+package org.eclipse.cdt.managedbuilder.ui.wizards;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -15,11 +15,10 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.ListIterator;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
-import org.eclipse.cdt.ui.CUIPlugin;
-import org.eclipse.cdt.ui.wizards.CProjectWizard;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
import org.eclipse.cdt.utils.ui.controls.ControlFactory;
import org.eclipse.jface.viewers.CheckboxTableViewer;
import org.eclipse.jface.viewers.ISelectionChangedListener;
@@ -39,7 +38,7 @@ public class CProjectPlatformPage extends WizardPage {
/*
* Bookeeping variables
*/
- private CProjectWizard wizard;
+// private CProjectWizard wizard;
private ArrayList selectedConfigurations;
protected ITarget selectedTarget;
protected String[] targetNames;
@@ -62,10 +61,10 @@ public class CProjectPlatformPage extends WizardPage {
* @param wizard
* @param pageName
*/
- public CProjectPlatformPage(CProjectWizard wizard, String pageName) {
+ public CProjectPlatformPage(/*CProjectWizard wizard,*/ String pageName) {
super(pageName);
setPageComplete(false);
- this.wizard = wizard;
+// this.wizard = wizard;
populateTargets();
selectedTarget = null;
selectedConfigurations = new ArrayList(0);
@@ -86,11 +85,11 @@ public class CProjectPlatformPage extends WizardPage {
Composite composite = ControlFactory.createComposite(parent, 6);
// Create the platform selection label and combo widgets
- Label platformLabel = ControlFactory.createLabel(composite, CUIPlugin.getResourceString(PLATFORM_LABEL));
+ Label platformLabel = ControlFactory.createLabel(composite, ManagedBuilderUIPlugin.getResourceString(PLATFORM_LABEL));
platformLabel.setLayoutData(new GridData());
platformSelection = ControlFactory.createSelectCombo(composite, targetNames, null);
- platformSelection.setToolTipText(CUIPlugin.getResourceString(PLATFORM_TIP));
+ platformSelection.setToolTipText(ManagedBuilderUIPlugin.getResourceString(PLATFORM_TIP));
platformSelection.addListener(SWT.Selection, new Listener() {
public void handleEvent(Event e) {
handleTargetSelection();
@@ -101,7 +100,7 @@ public class CProjectPlatformPage extends WizardPage {
platformSelection.setLayoutData(gd);
// Create a check box table of valid configurations
- Label configLabel = ControlFactory.createLabel(composite, CUIPlugin.getResourceString(CONFIG_LABEL));
+ Label configLabel = ControlFactory.createLabel(composite, ManagedBuilderUIPlugin.getResourceString(CONFIG_LABEL));
configLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
Table table = new Table(composite, SWT.CHECK | SWT.BORDER | SWT.MULTI
| SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL);
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationContentProvider.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/ConfigurationContentProvider.java
index ab4a6f6e67..27db61034b 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationContentProvider.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/ConfigurationContentProvider.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.wizards;
+package org.eclipse.cdt.managedbuilder.ui.wizards;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -11,8 +11,8 @@ package org.eclipse.cdt.ui.build.wizards;
* IBM Rational Software - Initial API and implementation
***********************************************************************/
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.ITarget;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationLabelProvider.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/ConfigurationLabelProvider.java
index 9d727ee6c8..229c1bfbc7 100644
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationLabelProvider.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/ConfigurationLabelProvider.java
@@ -1,4 +1,4 @@
-package org.eclipse.cdt.ui.build.wizards;
+package org.eclipse.cdt.managedbuilder.ui.wizards;
/**********************************************************************
* Copyright (c) 2002,2003 Rational Software Corporation and others.
@@ -11,15 +11,15 @@ package org.eclipse.cdt.ui.build.wizards;
* IBM Rational Software - Initial API and implementation
***********************************************************************/
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.internal.ui.CPluginImages;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIImages;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
public class ConfigurationLabelProvider extends LabelProvider implements ITableLabelProvider {
private final Image IMG_CFG =
- CPluginImages.get(CPluginImages.IMG_BUILD_CONFIG);
+ ManagedBuilderUIImages.get(ManagedBuilderUIImages.IMG_BUILD_CONFIG);
//
public String getColumnText(Object obj, int index) {
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedCCProjectWizard.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedCCProjectWizard.java
new file mode 100644
index 0000000000..f03be1dab4
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedCCProjectWizard.java
@@ -0,0 +1,54 @@
+package org.eclipse.cdt.managedbuilder.ui.wizards;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * IBM Rational Software - Initial API and implementation
+ * **********************************************************************/
+
+import org.eclipse.cdt.core.CCorePlugin;
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.SubProgressMonitor;
+
+public class NewManagedCCProjectWizard extends NewManagedProjectWizard {
+ private static final String WZ_TITLE = "MngCCWizard.title"; //$NON-NLS-1$
+ private static final String WZ_DESC = "MngCCWizard.description"; //$NON-NLS-1$
+ private static final String SETTINGS_TITLE = "MngCCWizardSettings.title"; //$NON-NLS-1$
+ private static final String SETTINGS_DESC = "MngCCWizardSettings.description"; //$NON-NLS-1$
+ private static final String MSG_CREATE = "MngCCWizard.message.creating"; //$NON-NLS-1$
+
+ public NewManagedCCProjectWizard() {
+ this(ManagedBuilderUIPlugin.getResourceString(WZ_TITLE), ManagedBuilderUIPlugin.getResourceString(WZ_DESC));
+ }
+
+ public NewManagedCCProjectWizard(String title, String desc) {
+ super(title, desc);
+ }
+
+ public void addPages() {
+ // Add the default page for all new managed projects
+ super.addPages();
+ }
+
+ protected void doRun(IProgressMonitor monitor) throws CoreException {
+ if (monitor == null) {
+ monitor = new NullProgressMonitor();
+ }
+ monitor.beginTask(ManagedBuilderUIPlugin.getResourceString(MSG_CREATE), 8); //$NON-NLS-1$
+ super.doRun(new SubProgressMonitor(monitor, 7));
+ // Add C++ Nature.
+ if (newProject != null) {
+ // Add C++ Nature to the newly created project.
+ CCorePlugin.getDefault().convertProjectFromCtoCC(newProject, new SubProgressMonitor(monitor, 1));
+ }
+ monitor.done();
+ }
+}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedCProjectWizard.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedCProjectWizard.java
new file mode 100644
index 0000000000..d935a187ba
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedCProjectWizard.java
@@ -0,0 +1,36 @@
+package org.eclipse.cdt.managedbuilder.ui.wizards;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * IBM Rational Software - Initial API and implementation
+ * **********************************************************************/
+
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
+
+public class NewManagedCProjectWizard extends NewManagedProjectWizard {
+ // String constants
+ private static final String WZ_TITLE = "MngCWizard.title";
+ private static final String WZ_DESC = "MngCWizard.description";
+ private static final String SETTINGS_TITLE= "MngCWizardSettings.title"; //$NON-NLS-1$
+ private static final String SETTINGS_DESC= "MngCWizardSettings.description"; //$NON-NLS-1$
+
+ public NewManagedCProjectWizard() {
+ this(ManagedBuilderUIPlugin.getResourceString(WZ_TITLE), ManagedBuilderUIPlugin.getResourceString(WZ_DESC));
+ }
+
+ public NewManagedCProjectWizard(String title, String description) {
+ super(title, description);
+ }
+
+ public void addPages() {
+ // Add the default page for all new managed projects
+ super.addPages();
+ }
+
+}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectOptionPage.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectOptionPage.java
new file mode 100644
index 0000000000..55de97afb5
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectOptionPage.java
@@ -0,0 +1,59 @@
+package org.eclipse.cdt.managedbuilder.ui.wizards;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * IBM Rational Software - Initial API and implementation
+ * **********************************************************************/
+
+import org.eclipse.cdt.managedbuilder.core.ManagedBuilderCorePlugin;
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedProjectOptionBlock;
+import org.eclipse.cdt.ui.dialogs.BinaryParserBlock;
+import org.eclipse.cdt.ui.dialogs.ICOptionContainer;
+import org.eclipse.cdt.ui.dialogs.ReferenceBlock;
+import org.eclipse.cdt.ui.dialogs.TabFolderOptionBlock;
+import org.eclipse.cdt.ui.wizards.NewCProjectWizard;
+import org.eclipse.cdt.ui.wizards.NewCProjectWizardOptionPage;
+import org.eclipse.core.resources.IProject;
+
+public class NewManagedProjectOptionPage extends NewCProjectWizardOptionPage {
+
+ public class ManagedWizardOptionBlock extends ManagedProjectOptionBlock {
+
+ public ManagedWizardOptionBlock(ICOptionContainer parent) {
+ super(parent);
+ }
+
+ protected void addTabs() {
+ addTab(new ReferenceBlock());
+ addTab(new BinaryParserBlock(ManagedBuilderCorePlugin.getDefault().getPluginPreferences()));
+ }
+ }
+
+ /**
+ * @param pageName
+ */
+ public NewManagedProjectOptionPage(String pageName) {
+ super(pageName);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.ui.wizards.NewCProjectWizardOptionPage#createOptionBlock()
+ */
+ protected TabFolderOptionBlock createOptionBlock() {
+ return new ManagedWizardOptionBlock(this);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.ui.dialogs.ICOptionContainer#getProject()
+ */
+ public IProject getProject() {
+ return ((NewCProjectWizard)getWizard()).getNewProject();
+ }
+
+}
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java
new file mode 100644
index 0000000000..9e185d22bd
--- /dev/null
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/wizards/NewManagedProjectWizard.java
@@ -0,0 +1,168 @@
+package org.eclipse.cdt.managedbuilder.ui.wizards;
+
+/**********************************************************************
+ * Copyright (c) 2002,2003 Rational Software Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v0.5
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v05.html
+ *
+ * Contributors:
+ * IBM Rational Software - Initial API and implementation
+ * **********************************************************************/
+
+import org.eclipse.cdt.core.CCorePlugin;
+import org.eclipse.cdt.core.ICDescriptor;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.core.ManagedCProjectNature;
+import org.eclipse.cdt.managedbuilder.internal.ui.ManagedBuilderUIPlugin;
+import org.eclipse.cdt.ui.wizards.NewCProjectWizard;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.SubProgressMonitor;
+
+
+public class NewManagedProjectWizard extends NewCProjectWizard {
+
+ /* (non-Javadoc)
+ * String constants
+ */
+ protected static final String PREFIX = "MngMakeProjectWizard"; //$NON-NLS-1$
+ protected static final String OP_ERROR = PREFIX + ".op_error"; //$NON-NLS-1$
+ protected static final String WZ_TITLE = PREFIX + ".title"; //$NON-NLS-1$
+ protected static final String WZ_DESC = PREFIX + ".description"; //$NON-NLS-1$
+ protected static final String CONF_TITLE = PREFIX + ".config.title"; //$NON-NLS-1$
+ protected static final String CONF_DESC = PREFIX + ".config.desc"; //$NON-NLS-1$
+ protected static final String OPTIONS_TITLE = PREFIX + ".options.title"; //$NON-NLS-1$
+ protected static final String OPTIONS_DESC = PREFIX + ".options.desc"; //$NON-NLS-1$
+ protected static final String MSG_ADD_NATURE = PREFIX + ".message.add_nature"; //$NON-NLS-1$
+ protected static final String MSG_ADD_BUILDER = PREFIX + ".message.add_builder"; //$NON-NLS-1$
+ protected static final String MSG_SAVE = PREFIX + ".message.save"; //$NON-NLS-1$
+ protected static final String SETTINGS_TITLE = "MngMakeWizardSettings.title"; //$NON-NLS-1$
+ protected static final String SETTINGS_DESC = "MngMakeWizardSettings.description"; //$NON-NLS-1$
+
+ // Wizard pages
+ protected CProjectPlatformPage targetConfigurationPage;
+ protected NewManagedProjectOptionPage optionPage;
+
+ public NewManagedProjectWizard() {
+ this(ManagedBuilderUIPlugin.getResourceString(WZ_TITLE), ManagedBuilderUIPlugin.getResourceString(WZ_DESC));
+ }
+
+ public NewManagedProjectWizard(String title, String description) {
+ super(title, description);
+ }
+
+ public void addPages() {
+ // Add the default page for all new projects
+ super.addPages();
+
+ // Add the configuration selection page
+ targetConfigurationPage = new CProjectPlatformPage(PREFIX);
+ targetConfigurationPage.setTitle(ManagedBuilderUIPlugin.getResourceString(CONF_TITLE));
+ targetConfigurationPage.setDescription(ManagedBuilderUIPlugin.getResourceString(CONF_DESC));
+ addPage(targetConfigurationPage);
+
+ // Add the options (tabbed) page
+ optionPage = new NewManagedProjectOptionPage(PREFIX);
+ optionPage.setTitle(ManagedBuilderUIPlugin.getResourceString(OPTIONS_TITLE));
+ optionPage.setDescription(ManagedBuilderUIPlugin.getResourceString(OPTIONS_DESC));
+ addPage(optionPage);
+ }
+
+ protected void doRun(IProgressMonitor monitor) throws CoreException {
+ if (monitor == null) {
+ monitor = new NullProgressMonitor();
+ }
+
+ // super.doRun() just creates the project and does not assign a builder to it.
+ super.doRun(new SubProgressMonitor(monitor, 5));
+
+ // Add the managed build nature
+ try {
+ monitor.subTask(ManagedBuilderUIPlugin.getResourceString(MSG_ADD_NATURE));
+ ManagedCProjectNature.addManagedNature(newProject, new SubProgressMonitor(monitor, 1));
+ } catch (CoreException e) {
+ // Bail out of the project creation
+ }
+ // Add the builder
+ try {
+ monitor.subTask(ManagedBuilderUIPlugin.getResourceString(MSG_ADD_BUILDER));
+ ManagedCProjectNature.addManagedBuilder(newProject, new SubProgressMonitor(monitor, 1));
+ } catch (CoreException e) {
+ // Bail out of the project creation
+ }
+
+ // Modify the project settings
+ if (newProject != null) {
+ optionPage.performApply(new SubProgressMonitor(monitor, 2));
+ }
+
+ // Add the target to the project
+ try {
+ ITarget parent = targetConfigurationPage.getSelectedTarget();
+ ITarget newTarget = ManagedBuildManager.createTarget(newProject, parent);
+ if (newTarget != null) {
+ // TODO add name entry field to project
+ String artifactName = newProject.getName();
+ artifactName += parent.getDefaultExtension().length() == 0 ? "" : "." + parent.getDefaultExtension();
+ newTarget.setBuildArtifact(artifactName);
+ IConfiguration [] selectedConfigs = targetConfigurationPage.getSelectedConfigurations();
+ for (int i = 0; i < selectedConfigs.length; i++) {
+ IConfiguration config = selectedConfigs[i];
+ newTarget.createConfiguration(config, config.getId() + "." + i);
+ }
+ // Now add the first config in the list as the default
+ IConfiguration[] newConfigs = newTarget.getConfigurations();
+ if (newConfigs.length > 0) {
+ ManagedBuildManager.setDefaultConfiguration(newProject, newConfigs[0]);
+ }
+ }
+ } catch (BuildException e) {
+ // TODO Flag the error to the user
+ }
+
+ // Associate the project with the managed builder so the clients can get proper information
+ try {
+ ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(newProject);
+ desc.remove(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID);
+ desc.create(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID, ManagedBuildManager.INTERFACE_IDENTITY);
+ } catch (CoreException e) {
+ // TODO Flag the error to the user
+ }
+
+ // Save the build options
+ monitor.subTask(ManagedBuilderUIPlugin.getResourceString(MSG_SAVE));
+ ManagedBuildManager.saveBuildInfo(newProject);
+ monitor.done();
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.ui.wizards.NewCProjectWizard#doRunPrologue(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ protected void doRunPrologue(IProgressMonitor monitor) {
+ // Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.ui.wizards.NewCProjectWizard#doRunEpilogue(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ protected void doRunEpilogue(IProgressMonitor monitor) {
+ // Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.cdt.ui.wizards.NewCProjectWizard#getProjectID()
+ */
+ public String getProjectID() {
+ return "org.eclipse.cdt.make.core.make";
+// return ManagedBuilderCorePlugin.getUniqueIdentifier() + ".make"; //$NON-NLS-1$
+ }
+
+}
diff --git a/core/org.eclipse.cdt.core.tests/.classpath b/core/org.eclipse.cdt.core.tests/.classpath
index d495f08f7d..71f8c51ecd 100644
--- a/core/org.eclipse.cdt.core.tests/.classpath
+++ b/core/org.eclipse.cdt.core.tests/.classpath
@@ -12,11 +12,16 @@
<classpathentry kind="src" path="/org.eclipse.core.resources"/>
<classpathentry kind="src" path="/org.eclipse.core.runtime"/>
<classpathentry kind="src" path="/org.eclipse.cdt.core"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.linux"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.qnx"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.solaris"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.core.win32"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.ui"/>
<classpathentry kind="src" path="/org.eclipse.swt"/>
<classpathentry kind="src" path="/org.eclipse.ui"/>
<classpathentry kind="src" path="/org.junit"/>
<classpathentry kind="src" path="/org.eclipse.core.boot"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="src" path="/org.eclipse.cdt.ui"/>
+ <classpathentry kind="src" path="/org.eclipse.cdt.managedbuilder.core"/>
<classpathentry kind="output" path="bin"/>
</classpath>
diff --git a/core/org.eclipse.cdt.core.tests/.project b/core/org.eclipse.cdt.core.tests/.project
index a0121139f3..23c267fe88 100644
--- a/core/org.eclipse.cdt.core.tests/.project
+++ b/core/org.eclipse.cdt.core.tests/.project
@@ -5,6 +5,11 @@
<projects>
<project>org.apache.xerces</project>
<project>org.eclipse.cdt.core</project>
+ <project>org.eclipse.cdt.core.linux</project>
+ <project>org.eclipse.cdt.core.qnx</project>
+ <project>org.eclipse.cdt.core.solaris</project>
+ <project>org.eclipse.cdt.core.win32</project>
+ <project>org.eclipse.cdt.managedbuilder.core</project>
<project>org.eclipse.cdt.ui</project>
<project>org.eclipse.core.boot</project>
<project>org.eclipse.core.resources</project>
diff --git a/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java b/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
index 320a4b72bf..b9a63e004a 100644
--- a/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
+++ b/core/org.eclipse.cdt.core.tests/build/org/eclipse/cdt/core/build/managed/tests/ManagedBuildTests.java
@@ -20,19 +20,19 @@ import junit.framework.TestSuite;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.ICDescriptor;
-import org.eclipse.cdt.core.ManagedCProjectNature;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.IManagedBuildInfo;
-import org.eclipse.cdt.core.build.managed.IOption;
-import org.eclipse.cdt.core.build.managed.IOptionCategory;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ITool;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
import org.eclipse.cdt.core.parser.IScannerInfo;
import org.eclipse.cdt.core.parser.IScannerInfoChangeListener;
import org.eclipse.cdt.core.parser.IScannerInfoProvider;
-import org.eclipse.cdt.internal.core.build.managed.ToolReference;
+import org.eclipse.cdt.managedbuilder.core.BuildException;
+import org.eclipse.cdt.managedbuilder.core.IConfiguration;
+import org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo;
+import org.eclipse.cdt.managedbuilder.core.IOption;
+import org.eclipse.cdt.managedbuilder.core.IOptionCategory;
+import org.eclipse.cdt.managedbuilder.core.ITarget;
+import org.eclipse.cdt.managedbuilder.core.ITool;
+import org.eclipse.cdt.managedbuilder.core.ManagedBuildManager;
+import org.eclipse.cdt.managedbuilder.core.ManagedCProjectNature;
+import org.eclipse.cdt.managedbuilder.internal.core.ToolReference;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
import org.eclipse.core.resources.IResource;
diff --git a/core/org.eclipse.cdt.core.tests/plugin.xml b/core/org.eclipse.cdt.core.tests/plugin.xml
index 8fcef957f9..e2c6ad2cc0 100644
--- a/core/org.eclipse.cdt.core.tests/plugin.xml
+++ b/core/org.eclipse.cdt.core.tests/plugin.xml
@@ -19,13 +19,14 @@
<import plugin="org.eclipse.swt"/>
<import plugin="org.eclipse.ui"/>
<import plugin="org.junit"/>
+ <import plugin="org.eclipse.cdt.managedbuilder.core"/>
</requires>
<extension
id="buildTest"
name="Tools for Build Test"
- point="org.eclipse.cdt.core.ManagedBuildInfo">
+ point="org.eclipse.cdt.managedbuilder.core.ManagedBuildInfo">
<target
makeFlags="-k"
isTest="true"
diff --git a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/BuildException.java b/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/BuildException.java
deleted file mode 100644
index 4ba6c708d7..0000000000
--- a/core/org.eclipse.cdt.core/build/org/eclipse/cdt/core/build/managed/BuildException.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/*
- * Created on Apr 9, 2003
- *
- * To change the template for this generated file go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.cdt.core.build.managed;
-
-/**
- * @author dschaefe
- *
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public class BuildException extends Exception {
-
- public BuildException(String msg) {
- super(msg);
- }
-
-}
diff --git a/core/org.eclipse.cdt.core/plugin.properties b/core/org.eclipse.cdt.core/plugin.properties
index b94cb646bd..8f28b993ab 100644
--- a/core/org.eclipse.cdt.core/plugin.properties
+++ b/core/org.eclipse.cdt.core/plugin.properties
@@ -16,8 +16,4 @@ makeproject.name=Make Project
genericmake.name=Generic Make
makebuildmodel.name=Make Builder
-ManagedBuildNature.name=Managed C/C++ Build Nature
-
-GeneratedMakefileCBuilder.name=Generated Makefile C/C++ Builder
-
CTaskName=C/C++ Task
diff --git a/core/org.eclipse.cdt.core/plugin.xml b/core/org.eclipse.cdt.core/plugin.xml
index f1231d9b2c..6812cf1a2a 100644
--- a/core/org.eclipse.cdt.core/plugin.xml
+++ b/core/org.eclipse.cdt.core/plugin.xml
@@ -69,7 +69,6 @@
<extension-point id="CTool" name="C/C++ Tool" schema="schema/CTool.exsd"/>
<extension-point id="CBuildVariable" name="C/C++ Build Variable" schema="schema/CBuildVariable.exsd"/>
<extension-point id="CToolType" name="C/C++ Tool Type" schema="schema/CToolType.exsd"/>
- <extension-point id="ManagedBuildInfo" name="Managed Build Tools" schema="schema/ManagedBuildTools.exsd"/>
<extension-point id="ScannerInfoProvider" name="Scanner Information Provider"/>
@@ -220,22 +219,6 @@
</extension>
<!-- =================================================================================== -->
-<!-- Extension Point: ???????????????? -->
-<!-- =================================================================================== -->
-
- <extension
- id="genmakebuilder"
- name="%GeneratedMakefileCBuilder.name"
- point="org.eclipse.core.resources.builders">
- <builder
- hasNature="true">
- <run
- class="org.eclipse.cdt.internal.core.GeneratedMakefileBuilder">
- </run>
- </builder>
- </extension>
-
-<!-- =================================================================================== -->
<!-- CDT customized problem markers: C Problem markers -->
<!-- =================================================================================== -->
@@ -281,26 +264,6 @@
</runtime>
</extension>
-<!-- =================================================================================== -->
-<!-- Extension Point: ???????????????? -->
-<!-- =================================================================================== -->
-
- <extension
- id="managedBuildNature"
- name="%ManagedBuildNature.name"
- point="org.eclipse.core.resources.natures">
- <requires-nature
- id="org.eclipse.cdt.core.cnature">
- </requires-nature>
- <runtime>
- <run
- class="org.eclipse.cdt.core.ManagedCProjectNature">
- </run>
- </runtime>
- <builder
- id="org.eclipse.cdt.core.genmakebuilder">
- </builder>
- </extension>
<!-- =================================================================================== -->
<!-- Deprecated Make default command, will be removed. -->
@@ -432,20 +395,6 @@
</extension>
<!-- =================================================================================== -->
-<!-- Extension Point(Note:Temporary): IScannerInfoProvider for the managed Builder -->
-<!-- =================================================================================== -->
-
- <extension
- id="ManagedBuildManager"
- point="org.eclipse.cdt.core.ScannerInfoProvider">
- <cextension>
- <run
- class="org.eclipse.cdt.core.build.managed.ManagedBuildManager">
- </run>
- </cextension>
- </extension>
-
-<!-- =================================================================================== -->
<!-- Extension Point(Note:Temporary): IScannerInfoProvider for the standard Builder -->
<!-- =================================================================================== -->
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePluginResources.properties b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePluginResources.properties
index f565469674..b74630d25c 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePluginResources.properties
+++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/core/CCorePluginResources.properties
@@ -5,17 +5,3 @@
#
################################################
CBuilder.build_error= Build Error
-
-# Generated makefile builder messages
-MakeBuilder.message.starting = Starting the build for project {0}
-MakeBuilder.message.rebuild = Regenerating makefiles for project {0}
-MakeBuilder.message.incremental = Updating makefiles for project {0}
-MakeBuilder.message.make = Calling {0} for project {1}
-MakeBuilder.message.error = Build error
-MakeBuilder.message.finished = Build complete for project {0}
-MakeBuilder.comment.module.list = # Every subdirectory with source files must be described here
-MakeBuilder.comment.source.list = # Each subdirectory must contribute its source files here
-MakeBuilder.comment.build.rule = # Each subdirectory must supply rules for building sources it contributes
-MakeBuilder.comment.module.make.includes = # Include the makefiles for each source subdirectory
-MakeBuilder.comment.module.dep.includes = # Include automatically-generated dependency list:
-MakeBuilder.comment.autodeps = # Automatically-generated dependency list:
diff --git a/core/org.eclipse.cdt.ui/.classpath b/core/org.eclipse.cdt.ui/.classpath
index 9aecda4f3a..0bcc542d2a 100644
--- a/core/org.eclipse.cdt.ui/.classpath
+++ b/core/org.eclipse.cdt.ui/.classpath
@@ -2,7 +2,6 @@
<classpath>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="src" path="utils.ui/"/>
- <classpathentry kind="src" path="build"/>
<classpathentry kind="src" path="/org.eclipse.ui"/>
<classpathentry kind="src" path="/org.eclipse.core.resources"/>
<classpathentry kind="src" path="/org.apache.xerces"/>
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationBlock.java b/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationBlock.java
deleted file mode 100644
index 48a3910caf..0000000000
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ConfigurationBlock.java
+++ /dev/null
@@ -1,181 +0,0 @@
-package org.eclipse.cdt.ui.build.wizards;
-
-/**********************************************************************
- * Copyright (c) 2002,2003 Rational Software Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v0.5
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
- *
- * Contributors:
- * Rational Software - Initial API and implementation
-***********************************************************************/
-
-import org.eclipse.cdt.core.CProjectNature;
-import org.eclipse.cdt.ui.CUIPlugin;
-import org.eclipse.cdt.ui.wizards.IWizardTab;
-import org.eclipse.cdt.utils.ui.controls.ControlFactory;
-import org.eclipse.cdt.utils.ui.controls.RadioButtonsArea;
-import org.eclipse.cdt.utils.ui.swt.IValidation;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-public class ConfigurationBlock implements IWizardTab {
- /* (non-Javadoc)
- * String constants
- */
- private static final String PREFIX = "ConfigurationBlock"; //$NON-NLS-1$
- private static final String TYPE = PREFIX + ".type"; //$NON-NLS-1$
- private static final String LABEL = PREFIX + ".label"; //$NON-NLS-1$
- private static final String APP = TYPE + ".app"; //$NON-NLS-1$
- private static final String DLL = TYPE + ".shared"; //$NON-NLS-1$
- private static final String LIB = TYPE + ".static"; //$NON-NLS-1$
- private static final String BUILD = PREFIX + ".build"; //$NON-NLS-1$
- private static final String BUILD_LABEL = BUILD + ".label"; //$NON-NLS-1$
- private static final String CONT = BUILD + ".continue"; //$NON-NLS-1$
- private static final String STOP = BUILD + ".stop"; //$NON-NLS-1$
-
- /* (non-Javadoc)
- * Bookeeping variables
- */
- private IValidation page;
- private ManagedProjectWizard fWizard;
-
- /* (non-Javadoc)
- * Widgets used on the tab
- */
- protected Composite composite;
- protected GridData gd;
- protected RadioButtonsArea typeRadioButtons;
- private String [][] types;
- private static final String APP_ARG = "exe"; //$NON-NLS-1$
- private static final String DLL_ARG = "dll"; //$NON-NLS-1$
- private static final String LIB_ARG = "lib"; //$NON-NLS-1$
- protected RadioButtonsArea optRadioButtons;
- private String [][] opts;
- private static final String CONT_ARG = "cont"; //$NON-NLS-1$
- private static final String STOP_ARG = "stop"; //$NON-NLS-1$
-
- public ConfigurationBlock(IValidation valid, ManagedProjectWizard wizard) {
- page = valid;
- fWizard = wizard;
- }
-
- /**
- * @see org.eclipse.cdt.ui.wizards.IWizardTab#getLabel()
- */
- public String getLabel() {
- return CUIPlugin.getResourceString(LABEL);
- }
-
- /**
- * @see org.eclipse.cdt.ui.wizards.IWizardTab#getImage()
- */
- public Image getImage() {
-// return CPluginImages.get(CPluginImages.IMG_BUILD_CONFIG);
- return null;
- }
-
- /**
- * @see org.eclipse.cdt.ui.wizards.IWizardTab#getControl(org.eclipse.swt.widgets.Composite)
- */
- public Composite getControl(Composite parent) {
- // Create the composite control for the tab
- composite = ControlFactory.createComposite(parent, 2);
-
- // Create the application type selection area and select the application option
- types = new String [][] {
- {CUIPlugin.getResourceString(APP), APP_ARG},
- {CUIPlugin.getResourceString(DLL), DLL_ARG},
- {CUIPlugin.getResourceString(LIB), LIB_ARG}
- };
- typeRadioButtons = new RadioButtonsArea(composite, CUIPlugin.getResourceString(TYPE), 1, types);
- typeRadioButtons.addListener(SWT.Selection, new Listener () {
- public void handleEvent(Event e) {
- page.setComplete(isValid());
- }
- });
-
- gd = new GridData();
- gd.horizontalSpan = 2;
- gd.horizontalAlignment = GridData.FILL;
- gd.grabExcessHorizontalSpace = true;
- typeRadioButtons.setLayoutData(gd);
-
- // Create the build option buttons
- opts = new String [][] {
- {CUIPlugin.getResourceString(CONT), CONT_ARG},
- {CUIPlugin.getResourceString(STOP), STOP_ARG}
- };
- optRadioButtons = new RadioButtonsArea(composite, CUIPlugin.getResourceString(BUILD_LABEL), 1, opts);
- gd = new GridData();
- gd.horizontalSpan = 2;
- gd.horizontalAlignment = GridData.FILL;
- gd.grabExcessHorizontalSpace = true;
- optRadioButtons.setLayoutData(gd);
-
- // Return the widget
- return composite;
- }
-
- /**
- * @see org.eclipse.cdt.ui.wizards.IWizardTab#isValid()
- */
- public boolean isValid() {
- return true;
- }
-
- /**
- * @see org.eclipse.cdt.ui.wizards.IWizardTab#setVisible(boolean)
- */
- public void setVisible(boolean visible) {
-
- // Set the executable radio button by default
- typeRadioButtons.setSelectedButton(0);
-
- // Set the build option radio button based on the platform default
- optRadioButtons.setSelectedButton(0);
- }
-
- /**
- * @see org.eclipse.cdt.ui.wizards.IWizardTab#doRun(org.eclipse.core.resources.IProject, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void doRun(IProject project, IProgressMonitor monitor) {
- try {
- if (monitor == null) {
- monitor = new NullProgressMonitor();
- }
- monitor.beginTask("Configuration", 1);
-
- // Get the project nature;
- CProjectNature nature = (CProjectNature) project.getNature(CProjectNature.C_NATURE_ID);
-
- // Set the build options on the project nature
- if (nature != null) {
- nature.setStopOnError(isStopOnError());
- }
- }
- catch (CoreException e) {
- }
- }
-
- /**
- * Method isStopOnError.
- * @return boolean
- */
- private boolean isStopOnError() {
- if (optRadioButtons != null) {
- return (optRadioButtons.getSelectedValue() == STOP_ARG);
- }
- return false;
- }
-
-}
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedCCWizard.java b/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedCCWizard.java
deleted file mode 100644
index 76b9e27c41..0000000000
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedCCWizard.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.eclipse.cdt.ui.build.wizards;
-
-/**********************************************************************
- * Copyright (c) 2002,2003 Rational Software Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v0.5
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
- *
- * Contributors:
- * Rational Software - Initial API and implementation
-***********************************************************************/
-
-import org.eclipse.cdt.core.CCorePlugin;
-import org.eclipse.cdt.ui.CUIPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.swt.widgets.TabFolder;
-
-/**
- * Wizard that creates a new C++ project that uses the managed make system
- */
-public class ManagedCCWizard extends ManagedProjectWizard {
-
- private static final String WZ_TITLE = "MngCCWizard.title";
- private static final String WZ_DESC = "MngCCWizard.description";
- private static final String SETTINGS_TITLE= "MngCCWizardSettings.title"; //$NON-NLS-1$
- private static final String SETTINGS_DESC= "MngCCWizardSettings.description"; //$NON-NLS-1$
-
- public ManagedCCWizard() {
- this(CUIPlugin.getResourceString(WZ_TITLE), CUIPlugin.getResourceString(WZ_DESC));
- }
-
- public ManagedCCWizard(String title, String desc) {
- super(title, desc);
- }
-
- public void addTabItems(TabFolder folder) {
- super.addTabItems(folder);
- fTabFolderPage.setTitle(CUIPlugin.getResourceString(SETTINGS_TITLE));
- fTabFolderPage.setDescription(CUIPlugin.getResourceString(SETTINGS_DESC));
- }
-
- protected void doRun(IProgressMonitor monitor) throws CoreException {
- monitor.beginTask("Creating Generated C++ Make Project", 4);
- super.doRun(monitor);
- // Add C++ and managed build natures
- if (newProject != null) {
- if (monitor == null) {
- monitor = new NullProgressMonitor();
- }
- // Add C++ Nature to the newly created project.
- monitor.subTask("Adding C++ Nature");
- CCorePlugin.getDefault().convertProjectFromCtoCC(newProject, monitor);
- monitor.worked(1);
-
- // Add the managed build nature to the project
- monitor.subTask("Adding makefile generator");
- addManagedBuildNature(newProject, monitor);
- monitor.worked(1);
-
- monitor.done();
- }
- }
-}
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedCWizard.java b/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedCWizard.java
deleted file mode 100644
index 550c9585a0..0000000000
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedCWizard.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package org.eclipse.cdt.ui.build.wizards;
-
-/**********************************************************************
- * Copyright (c) 2002,2003 Rational Software Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v0.5
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
- *
- * Contributors:
- * Rational Software - Initial API and implementation
-***********************************************************************/
-
-
-import org.eclipse.cdt.ui.CUIPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.swt.widgets.TabFolder;
-
-/**
- * Wizard to create a new C project that uses the managed make system.
- */
-public class ManagedCWizard extends ManagedProjectWizard {
-
- private static final String WZ_TITLE = "MngCWizard.title";
- private static final String WZ_DESC = "MngCWizard.description";
- private static final String SETTINGS_TITLE= "MngCWizardSettings.title"; //$NON-NLS-1$
- private static final String SETTINGS_DESC= "MngCWizardSettings.description"; //$NON-NLS-1$
-
- public ManagedCWizard() {
- this(CUIPlugin.getResourceString(WZ_TITLE), CUIPlugin.getResourceString(WZ_DESC));
- }
-
- public ManagedCWizard(String title, String desc) {
- super(title, desc);
- }
-
- public void addTabItems(TabFolder folder) {
- super.addTabItems(folder);
- fTabFolderPage.setTitle(CUIPlugin.getResourceString(SETTINGS_TITLE));
- fTabFolderPage.setDescription(CUIPlugin.getResourceString(SETTINGS_DESC));
- }
-
- protected void doRun(IProgressMonitor monitor) throws CoreException {
- // Let the super class create and populate the standard project
- super.doRun(monitor);
- // Add the managed build nature
- if (newProject != null) {
- if (monitor == null) {
- monitor = new NullProgressMonitor();
- }
- monitor.beginTask("Creating Generated C Make Project", 3);
-
- // Add the managed build nature to the project
- addManagedBuildNature(newProject, monitor);
-
- monitor.done();
- }
- }
-}
diff --git a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedProjectWizard.java b/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedProjectWizard.java
deleted file mode 100644
index f543524abc..0000000000
--- a/core/org.eclipse.cdt.ui/build/org/eclipse/cdt/ui/build/wizards/ManagedProjectWizard.java
+++ /dev/null
@@ -1,214 +0,0 @@
-package org.eclipse.cdt.ui.build.wizards;
-
-/**********************************************************************
- * Copyright (c) 2002,2003 Rational Software Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Common Public License v0.5
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
- *
- * Contributors:
- * Rational Software - Initial API and implementation
-***********************************************************************/
-
-import org.eclipse.cdt.core.CCorePlugin;
-import org.eclipse.cdt.core.ICDescriptor;
-import org.eclipse.cdt.core.ManagedCProjectNature;
-import org.eclipse.cdt.core.build.managed.BuildException;
-import org.eclipse.cdt.core.build.managed.IConfiguration;
-import org.eclipse.cdt.core.build.managed.ITarget;
-import org.eclipse.cdt.core.build.managed.ManagedBuildManager;
-import org.eclipse.cdt.ui.CUIPlugin;
-import org.eclipse.cdt.ui.wizards.BinaryParserBlock;
-import org.eclipse.cdt.ui.wizards.CProjectWizard;
-import org.eclipse.cdt.ui.wizards.CProjectWizardPage;
-import org.eclipse.cdt.ui.wizards.ReferenceBlock;
-import org.eclipse.cdt.ui.wizards.TabFolderPage;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.core.runtime.SubProgressMonitor;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.swt.widgets.TabFolder;
-import org.eclipse.swt.widgets.TabItem;
-
-public abstract class ManagedProjectWizard extends CProjectWizard {
-
- /* (non-Javadoc)
- * String constants
- */
- protected static final String PREFIX = "MngMakeProjectWizard"; //$NON-NLS-1$
- protected static final String OP_ERROR= PREFIX + ".op_error"; //$NON-NLS-1$
- protected static final String WZ_TITLE= PREFIX + ".title"; //$NON-NLS-1$
- protected static final String WZ_DESC= PREFIX + ".description"; //$NON-NLS-1$
- protected static final String SETTINGS_TITLE= "MngMakeWizardSettings.title"; //$NON-NLS-1$
- protected static final String SETTINGS_DESC= "MngMakeWizardSettings.description"; //$NON-NLS-1$
-
- /* (non-Javadoc)
- * Wizard has a page inherited from super class for setting project
- * location, one for choosing the platform and a tabbed page to set
- * configuration options
- */
- protected CProjectPlatformPage targetConfigurationPage;
- protected ConfigurationBlock configBlock;
- protected ReferenceBlock referenceBlock;
- protected BinaryParserBlock binaryParserBlock;
-
- /**
- * Default Constructor
- */
- public ManagedProjectWizard() {
- this(CUIPlugin.getResourceString(WZ_TITLE), CUIPlugin.getResourceString(WZ_DESC));
- }
-
- /**
- * @see org.eclipse.cdt.ui.wizards.CProjectWizard#CProjectWizard(java.lang.String, java.lang.String)
- */
- public ManagedProjectWizard(String title, String desc) {
- super(title,desc);
- }
-
- public void addManagedBuildNature (IProject project, IProgressMonitor monitor) {
- // Add the managed build nature
- try {
- monitor.subTask("Adding Managed Nature");
- ManagedCProjectNature.addManagedNature(project, monitor);
- monitor.worked(1);
- } catch (CoreException e) {
- e.printStackTrace();
- }
- // Add the builder
- try {
- monitor.subTask("Adding Makefile Generator");
- ManagedCProjectNature.addManagedBuilder(project, monitor);
- monitor.worked(1);
- } catch (CoreException e) {
- // TODO: handle exception
- }
-
- // Add the target to the project
- try {
- ITarget parent = targetConfigurationPage.getSelectedTarget();
- ITarget newTarget = ManagedBuildManager.createTarget(project, parent);
- if (newTarget != null) {
- // TODO add name entry field to project
- String artifactName = project.getName();
- artifactName += parent.getDefaultExtension().length() == 0 ? "" : "." + parent.getDefaultExtension();
- newTarget.setBuildArtifact(artifactName);
- IConfiguration [] selectedConfigs = targetConfigurationPage.getSelectedConfigurations();
- for (int i = 0; i < selectedConfigs.length; i++) {
- IConfiguration config = selectedConfigs[i];
- newTarget.createConfiguration(config, config.getId() + "." + i);
- }
- // Now add the first config in the list as the default
- IConfiguration[] newConfigs = newTarget.getConfigurations();
- if (newConfigs.length > 0) {
- ManagedBuildManager.setDefaultConfiguration(project, newConfigs[0]);
- }
- }
- } catch (BuildException e) {
- e.printStackTrace();
- }
-
- // Associate the project with the managed builder so the clients can get proper information
- try {
- ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(project);
- desc.remove(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID);
- desc.create(CCorePlugin.BUILD_SCANNER_INFO_UNIQ_ID, ManagedBuildManager.INTERFACE_IDENTITY);
- } catch (CoreException e) {
- // TODO Flag the error to the user
- }
-
- // Save the build options
- monitor.subTask("Saving new build options.");
- ManagedBuildManager.saveBuildInfo(project);
- monitor.worked(1);
- }
-
- /**
- * @see Wizard#createPages
- */
- public void addPages() {
- // Add the page to name the project and set the location
- fMainPage= new CProjectWizardPage(this, new String());
- fMainPage.setTitle(CUIPlugin.getResourceString(WZ_TITLE));
- fMainPage.setDescription(CUIPlugin.getResourceString(WZ_DESC));
- addPage(fMainPage);
-
- // Add a page to chose the build platform
- targetConfigurationPage = new CProjectPlatformPage(this, new String());
- targetConfigurationPage.setTitle(CUIPlugin.getResourceString(WZ_TITLE));
- targetConfigurationPage.setDescription(CUIPlugin.getResourceString(WZ_DESC));
- addPage(targetConfigurationPage);
-
- // Add the tab container
- fTabFolderPage = new TabFolderPage(this);
- addPage(fTabFolderPage);
- }
-
- /**
- * @see org.eclipse.cdt.ui.wizards.CProjectWizard#addTabItems(org.eclipse.swt.widgets.TabFolder)
- */
- public void addTabItems(TabFolder folder) {
- fTabFolderPage.setTitle(CUIPlugin.getResourceString(SETTINGS_TITLE));
- fTabFolderPage.setDescription(CUIPlugin.getResourceString(SETTINGS_DESC));
-
- // Add the tab to set the project dependencies
- referenceBlock = new ReferenceBlock(getValidation());
- TabItem item2 = new TabItem(folder, SWT.NONE);
- item2.setText(referenceBlock.getLabel());
- Image img2 = referenceBlock.getImage();
- if (img2 != null)
- item2.setImage(img2);
- item2.setData(referenceBlock);
- item2.setControl(referenceBlock.getControl(folder));
- addTabItem(referenceBlock);
-
- // add the tab to select which parser to use for binaries
- binaryParserBlock = new BinaryParserBlock(getValidation());
- TabItem item3 = new TabItem(folder, SWT.NONE);
- item3.setText(binaryParserBlock.getLabel());
- Image img3 = binaryParserBlock.getImage();
- if (img3 != null)
- item3.setImage(img3);
- item3.setData(binaryParserBlock);
- item3.setControl(binaryParserBlock.getControl(folder));
- addTabItem(binaryParserBlock);
- }
-
- protected void doRunPrologue(IProgressMonitor monitor) {
- }
-
- protected void doRunEpilogue(IProgressMonitor monitor) {
- }
-
- protected void doRun(IProgressMonitor monitor) throws CoreException {
- // super.doRun() just creates the project and does not assign a builder to it.
- super.doRun(monitor);
-
- // Modify the project based on what the user has selected
- if (newProject != null) {
- if (monitor == null) {
- monitor = new NullProgressMonitor();
- }
- // Update the referenced project if provided.
- monitor.subTask("Adding project references");
- if (referenceBlock != null) {
- referenceBlock.doRun(newProject, new SubProgressMonitor(monitor, 1));
- }
- monitor.worked(1);
- // Update the binary parser
- monitor.subTask("Setting binary parser");
- if (binaryParserBlock != null) {
- binaryParserBlock.doRun(newProject, new SubProgressMonitor(monitor, 1));
- }
- monitor.worked(1);
- }
- }
-
- public String getProjectID() {
- return CCorePlugin.PLUGIN_ID + ".make";
- }
-}
diff --git a/core/org.eclipse.cdt.ui/plugin.properties b/core/org.eclipse.cdt.ui/plugin.properties
index 49a295c7c7..dba8b386d7 100644
--- a/core/org.eclipse.cdt.ui/plugin.properties
+++ b/core/org.eclipse.cdt.ui/plugin.properties
@@ -18,15 +18,11 @@ MakeView.name=Make Targets
newCWizardsCategory.name=C
StdCWizard.name=Standard Make C Project
StdCWizard.description=Create a new C project and let me create and manage the makefile
-MngCWizard.name=Managed Make C Project
-MngCWizard.description=Create a new C project and let Eclipse create and manage the makefile
# C++
newCCWizardsCategory.name=C++
StdCCWizard.name=Standard Make C++ Project
StdCCWizard.description=Create a new C++ project and let me create and manage the makefile
-MngCCWizard.name=Managed Make C++ Project
-MngCCWizard.description=Create a new C++ project and let Eclipse create and manage the makefile
#Project Conversion
ConversionWizard.name=Convert a project's nature
@@ -87,22 +83,6 @@ CFolderActionSet.description=C Folder Action Set
# Task Action
DeleteTaskAction.label=Delete C/C++ Markers
-# Build Model Names
-ConfigName.Rel=Release
-ConfigName.Dbg=Debug
-ToolName.preprocessor = Preprocessor
-ToolName.compiler = Compiler
-ToolName.archiver = Archiver
-ToolName.linker = Linker
-OptionCategory.Preproc = Preprocessor
-OptionCategory.Dirs = Directories
-OptionCategory.General = General
-OptionCategory.Optimize=Optimization
-OptionCategory.Debug=Debugging
-OptionCategory.Warn=Warnings
-OptionCategory.Misc=Miscellaneous
-OptionCategory.Libs=Libraries
-
# C/C++ Search
CSearchPage.label= C/C++ Search
openCSearchPageAction.label= &C/C++...
diff --git a/core/org.eclipse.cdt.ui/plugin.xml b/core/org.eclipse.cdt.ui/plugin.xml
index dba2459117..029258626f 100644
--- a/core/org.eclipse.cdt.ui/plugin.xml
+++ b/core/org.eclipse.cdt.ui/plugin.xml
@@ -227,31 +227,6 @@
class="org.eclipse.core.resources.IResource">
</selection>
</wizard>
-<!-- Managed Make Builder Projects -->
- <wizard
- name="%MngCCWizard.name"
- icon="icons/full/wizban/newmngcc_app.gif"
- category="org.eclipse.cdt.ui.newCCWizards"
- class="org.eclipse.cdt.ui.build.wizards.ManagedCCWizard"
- project="true"
- finalPerspective="org.eclipse.cdt.ui.CPerspective"
- id="org.eclipse.cdt.ui.wizards.StdCCWizard">
- <description>
- %MngCCWizard.description
- </description>
- </wizard>
- <wizard
- name="%MngCWizard.name"
- icon="icons/full/wizban/newmngcc_app.gif"
- category="org.eclipse.cdt.ui.newCWizards"
- class="org.eclipse.cdt.ui.build.wizards.ManagedCWizard"
- project="true"
- finalPerspective="org.eclipse.cdt.ui.CPerspective"
- id="org.eclipse.cdt.ui.wizards.StdCWizard">
- <description>
- %MngCWizard.description
- </description>
- </wizard>
<wizard
name="%NewWizards.class"
icon="icons/full/ctool16/newclass_wiz.gif"
@@ -339,16 +314,6 @@
</page>
<page
objectClass="org.eclipse.core.resources.IProject"
- name="C/C++ Build"
- class="org.eclipse.cdt.ui.build.properties.BuildPropertyPage"
- id="org.eclipse.cdt.ui.build.properties">
- <filter
- name="nature"
- value="org.eclipse.cdt.core.managedBuildNature">
- </filter>
- </page>
- <page
- objectClass="org.eclipse.core.resources.IProject"
name="%todoPageName"
class="org.eclipse.cdt.internal.ui.preferences.TodoTaskPropertyPage"
id="org.eclipse.cdt.ui.propertyPages.TodoTaskPropertyPage">
@@ -617,1474 +582,7 @@
</toolTabGroup>
</extension>
-->
- <extension
- id="cdt.managed.build.info"
- name="Managed Build Tools Description"
- point="org.eclipse.cdt.core.ManagedBuildInfo">
- <target
- makeFlags="-k"
- isTest="false"
- cleanCommand="rm -rf"
- name="Cygwin"
- isAbstract="true"
- makeCommand="make"
- id="cygwin">
- <tool
- sources="c,cc,cpp,cxx,C"
- name="%ToolName.compiler"
- outputFlag="-o"
- outputs="o"
- command="g++"
- id="org.eclipse.cdt.build.tool.cygwin.compiler">
- <optionCategory
- owner="org.eclipse.cdt.build.tool.cygwin.compiler"
- name="%OptionCategory.Preproc"
- id="cygwin.compiler.category.preprocessor">
- </optionCategory>
- <option
- defaultValue="false"
- name="Do not search system directories (-nostdinc)"
- category="cygwin.compiler.category.preprocessor"
- command="-nostdinc"
- valueType="boolean"
- id="cygwin.gnu.compiler.preprocessor.nostdinc">
- </option>
- <option
- defaultValue="false"
- name="Preprocess only (-E)"
- category="cygwin.compiler.category.preprocessor"
- command="-E"
- valueType="boolean"
- id="cygwin.gnu.compiler.preprocessor.preprocess">
- </option>
- <option
- name="Answers (-A)"
- category="cygwin.compiler.category.preprocessor"
- command="-A"
- valueType="stringList"
- id="cygwin.gnu.preprocessor.answers">
- </option>
- <optionCategory
- owner="org.eclipse.cdt.build.tool.cygwin.compiler"
- name="Symbols"
- id="cygwin.gnu.compiler.category.symbols">
- </optionCategory>
- <option
- name="Defined symbols (-D)"
- category="cygwin.gnu.compiler.category.symbols"
- command="-D"
- valueType="definedSymbols"
- id="cygwin.preprocessor.def.symbols">
- <listOptionValue
- value="_X86_=1"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__OPTIMIZE__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__STDC_HOSTED__=1"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="i386"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__i386"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__i386__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__tune_i686__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__tune_pentiumpro__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__tune_pentium2__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__tune_pentium3__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__stdcall=__attribute__((__stdcall__))"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__fastcall=__attribute__((__fastcall__))"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__cdecl=__attribute__((__cdecl__))"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="_stdcall=__attribute__((__stdcall__))"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="_fastcall=__attribute__((__fastcall__))"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="_cdecl=__attribute__((__cdecl__))"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__declspec(x)=__attribute__((x))"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__CYGWIN32__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__CYGWIN__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="unix"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__unix__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__unix"
- builtIn="true">
- </listOptionValue>
- </option>
- <option
- name="Undefined symbols (-U)"
- category="cygwin.gnu.compiler.category.symbols"
- command="-U"
- valueType="stringList"
- id="cygwin.preprocessor.undef.symbol">
- </option>
- <optionCategory
- owner="org.eclipse.cdt.build.tool.cygwin.compiler"
- name="%OptionCategory.General"
- id="cygwin.compiler.category.general">
- </optionCategory>
- <option
- defaultValue="-c"
- name="Compiler Flags"
- category="cygwin.compiler.category.general"
- valueType="string"
- id="cygwin.compiler.general.ccflags">
- </option>
- <option
- name="Optimization Level"
- category="cygwin.compiler.category.general"
- valueType="enumerated"
- id="cygwin.compiler.general.optimization.level">
- <enumeratedOptionValue
- name="None (-O0)"
- command="-O0"
- id="cygwin.optimization.level.none">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize (-O1)"
- command="-O1"
- id="cygwin.optimization.level.optimize">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize more (-O2)"
- isDefault="true"
- command="-O2"
- id="cygwin.optimization.level.more">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize most (-O3)"
- command="-O3"
- id="cygwin.optimization.level.most">
- </enumeratedOptionValue>
- </option>
- <option
- name="Debug Level"
- category="cygwin.compiler.category.general"
- valueType="enumerated"
- id="cygwin.compiler.debugging.level">
- <enumeratedOptionValue
- name="None"
- isDefault="false"
- id="cygwin.debugging.level.none">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Minimal (-g1)"
- command="-g1"
- id="cygwin.debugging.level.minimal">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Default (-g)"
- isDefault="true"
- command="-g"
- id="cygwin.debugging.level.default">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Maximum (-g3)"
- isDefault="false"
- command="-g3"
- id="cygwin.debugging.level.max">
- </enumeratedOptionValue>
- </option>
- <option
- name="Include Paths"
- category="cygwin.compiler.category.general"
- command="-I"
- valueType="includePath"
- id="cygwin.compiler.general.include.paths">
- <listOptionValue
- value="C:\cygwin\usr\include\w32api"
- builtIn="true">
- </listOptionValue>
- </option>
- <option
- defaultValue="false"
- name="Verbose"
- category="cygwin.compiler.category.general"
- command="-v"
- valueType="boolean"
- id="cygwin.compiler.general.verbose">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Cygwin Executable"
- parent="cygwin"
- defaultExtension="exe"
- isAbstract="false"
- id="cygwin.exec">
- <configuration
- name="%ConfigName.Rel"
- id="cygwin.exec.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="cygwin.exec.debug">
- </configuration>
- <tool
- name="%ToolName.linker"
- outputFlag="-o"
- outputs="exe"
- command="g++"
- id="org.eclipse.cdt.build.tool.cygwin.link">
- <optionCategory
- owner="org.eclipse.cdt.build.tool.cygwin.link"
- name="%OptionCategory.General"
- id="cygwin.linker.category.general">
- </optionCategory>
- <option
- name="Linker Flags"
- category="cygwin.linker.category.general"
- valueType="string"
- id="cygwin.link.ld.flags">
- </option>
- <option
- name="Library Paths"
- category="cygwin.linker.category.general"
- command="-L"
- valueType="stringList"
- id="cygwin.link.ld.paths">
- </option>
- <option
- name="Libraries"
- category="cygwin.linker.category.general"
- command="-l"
- valueType="libs"
- id="cygwin.link.libs">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Cygwin Shared Library"
- parent="cygwin"
- defaultExtension="dll"
- isAbstract="false"
- id="cygwin.so">
- <configuration
- name="%ConfigName.Rel"
- id="cygwin.so.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="cygwin.so.debug">
- </configuration>
- <tool
- name="%ToolName.linker"
- outputFlag="-o"
- outputs="dll"
- outputPrefix="lib"
- command="g++ -shared"
- id="org.eclipse.cdt.build.tool.cygwin.solink">
- <optionCategory
- owner="org.eclipse.cdt.build.tool.cygwin.solink"
- name="%OptionCategory.General"
- id="cygwin.solink.category.general">
- </optionCategory>
- <option
- defaultValue=""
- name="Linker Flags"
- category="cygwin.solink.category.general"
- valueType="string"
- id="cygwin.solink.ld.flags">
- </option>
- <option
- name="Library Paths"
- category="cygwin.solink.category.general"
- command="-L"
- valueType="stringList"
- id="cygwin.solink.ld.paths">
- </option>
- <option
- name="Libraries"
- category="cygwin.solink.category.general"
- command="-l"
- valueType="libs"
- id="cygwin.solink.libs">
- </option>
- </tool>
- </target>
- <target
- isTest="true"
- name="Cygwin Export Library (DLL)"
- parent="cygwin"
- defaultExtension="dll.a"
- isAbstract="false"
- id="cygwin.exp">
- <configuration
- name="%ConfigName.Rel"
- id="cygwin.exp.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="cygwin.exp.debug">
- </configuration>
- <tool
- name="%ToolName.linker"
- outputFlag="-o"
- outputs="dll"
- outputPrefix="cyg"
- command="g++ -shared"
- id="org.eclipse.cdt.build.tool.cygwin.explink">
- <optionCategory
- owner="org.eclipse.cdt.build.tool.cygwin.explink"
- name="%OptionCategory.General"
- id="cygwin.explink.category.general">
- </optionCategory>
- <option
- defaultValue="-Wl,--export-all-symbols -Wl,--enable-auto-import"
- name="Linker Flags"
- category="cygwin.explink.category.general"
- valueType="string"
- id="cygwin.explink.ld.flags">
- </option>
- <option
- name="Library Paths"
- category="cygwin.explink.category.general"
- command="-L"
- valueType="stringList"
- id="cygwin.explink.ld.paths">
- </option>
- <option
- name="Libraries"
- category="cygwin.explink.category.general"
- command="-l"
- valueType="libs"
- id="cygwin.explink.libs">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Cygwin Static Library"
- parent="cygwin"
- defaultExtension="a"
- isAbstract="false"
- id="cygwin.lib">
- <configuration
- name="%ConfigName.Rel"
- id="cygwin.lib.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="cygwin.lib.debug">
- </configuration>
- <tool
- name="%ToolName.archiver"
- outputs="a"
- outputPrefix="lib"
- command="ar"
- id="org.eclipse.cdt.build.tool.cygwin.ar">
- <optionCategory
- owner="org.eclipse.cdt.build.tool.cygwin.ar"
- name="%OptionCategory.General"
- id="cygwin.ar.category.general">
- </optionCategory>
- <option
- defaultValue="-r"
- name="Archiver Flags"
- category="cygwin.ar.category.general"
- valueType="string"
- id="cygwin.ar.flags">
- </option>
- </tool>
- </target>
- <target
- makeFlags="-k"
- isTest="false"
- cleanCommand="rm -rf"
- name="Linux"
- isAbstract="true"
- makeCommand="make"
- id="linux.gnu">
- <tool
- sources="c,C,cc,cxx,cpp"
- name="%ToolName.compiler"
- outputFlag="-o"
- outputs="o"
- command="g++"
- id="cdt.build.tool.linux.gnu.compiler">
- <optionCategory
- owner="cdt.build.tool.linux.gnu.compiler"
- name="%OptionCategory.Preproc"
- id="linux.gnu.compiler.category.preprocessor">
- </optionCategory>
- <option
- defaultValue="false"
- name="Do not search system directories (-nostdinc)"
- category="linux.gnu.compiler.category.preprocessor"
- command="-nostdinc"
- valueType="boolean"
- id="linux.gnu.compiler.preprocessor.nostdinc">
- </option>
- <option
- defaultValue="false"
- name="Preprocess only (-E)"
- category="linux.gnu.compiler.category.preprocessor"
- command="-E"
- valueType="boolean"
- id="linux.gnu.compiler.preprocessor.preprocess">
- </option>
- <option
- name="Defined Symbols (-D)"
- category="linux.gnu.compiler.category.preprocessor"
- command="-D"
- valueType="definedSymbols"
- id="linux.gnu.compiler.preprocessor.def">
- <listOptionValue
- value="__ELF__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="unix"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__gnu_linux__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="linux"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__unix__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__linux__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__unix"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__linux"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__OPTIMIZE__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__STDC_HOSTED__=1"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="_GNU_SOURCE"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="i386"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__i386"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__i386__"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="__tune_i386__"
- builtIn="true">
- </listOptionValue>
- </option>
- <optionCategory
- owner="cdt.build.tool.linux.gnu.compiler"
- name="%OptionCategory.Dirs"
- id="linux.gnu.compiler.category.dirs">
- </optionCategory>
- <option
- name="Include search paths (-I)"
- category="linux.gnu.compiler.category.dirs"
- command="-I"
- valueType="includePath"
- id="linux.gnu.compiler.dirs.incpaths">
- <listOptionValue
- value="/usr/local/include"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- value="/usr/include"
- builtIn="true">
- </listOptionValue>
- </option>
- <optionCategory
- owner="cdt.build.tool.linux.gnu.compiler"
- name="%OptionCategory.Optimize"
- id="linux.gnu.compiler.category.optimization">
- </optionCategory>
- <option
- name="Optimization Level"
- category="linux.gnu.compiler.category.optimization"
- value="-O"
- valueType="enumerated"
- id="linux.gnu.compiler.optimization.level">
- <enumeratedOptionValue
- name="None (-O0)"
- command="-O0"
- id="linux.gnu.compiler.optimization.level.none">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize (-O1)"
- command="-O1"
- id="linux.gnu.compiler.optimization.level.optimize">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize more (-O2)"
- isDefault="true"
- command="-O2"
- id="linux.gnu.compiler.optimization.level.more">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize most (-O3)"
- command="-O3"
- id="linux.gnu.compiler.optimization.level.most">
- </enumeratedOptionValue>
- </option>
- <option
- name="Other optimization flags"
- category="linux.gnu.compiler.category.optimization"
- valueType="string"
- id="linux.compiler.optimization.flags">
- </option>
- <optionCategory
- owner="cdt.build.tool.linux.gnu.compiler"
- name="%OptionCategory.Debug"
- id="linux.gnu.compiler.category.debug">
- </optionCategory>
- <option
- name="Debug Level"
- category="linux.gnu.compiler.category.debug"
- valueType="enumerated"
- id="linux.gnu.compiler.debugging.level">
- <enumeratedOptionValue
- name="None"
- isDefault="false"
- id="linux.gnu.compiler.debugging.level.none">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Minimal (-g1)"
- command="-g1"
- id="linux.gnu.compiler.debugging.level.minimal">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Default (-g)"
- isDefault="true"
- command="-g"
- id="linux.gnu.compiler.debugging.level.default">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Maximum (-g3)"
- isDefault="false"
- command="-g3"
- id="linux.gnu.compiler.debugging.level.max">
- </enumeratedOptionValue>
- </option>
- <option
- name="Other debugging flags"
- category="linux.gnu.compiler.category.debug"
- valueType="string"
- id="linux.gnu.compiler.debugging.other">
- </option>
- <option
- defaultValue="false"
- name="Generate prof information (-p)"
- category="linux.gnu.compiler.category.debug"
- command="-p"
- valueType="boolean"
- id="linux.gnu.compiler.debugging.prof">
- </option>
- <option
- defaultValue="false"
- name="Generate gprof information (-pg)"
- category="linux.gnu.compiler.category.debug"
- command="-pg"
- valueType="boolean"
- id="linux.gnu.compiler.debugging.gprof">
- </option>
- <optionCategory
- owner="cdt.build.tool.linux.gnu.compiler"
- name="%OptionCategory.Warn"
- id="linux.gnu.compiler.category.warnings">
- </optionCategory>
- <option
- defaultValue="false"
- name="Check syntax only (-fsyntax-only)"
- category="linux.gnu.compiler.category.warnings"
- command="-fsyntax-only"
- valueType="boolean"
- id="linux.gnu.compiler.warnings.syntax">
- </option>
- <option
- defaultValue="false"
- name="Pedantic (-pedantic)"
- category="linux.gnu.compiler.category.warnings"
- command="-pedantic"
- valueType="boolean"
- id="linux.gnu.compiler.warnings.pedantic">
- </option>
- <option
- defaultValue="false"
- name="Pedantic warnings as errors (-pedantic-errors)"
- category="linux.gnu.compiler.category.warnings"
- command="-pedantic-errors"
- valueType="boolean"
- id="linux.gnu.compiler.warnings.pedantic.error">
- </option>
- <option
- defaultValue="false"
- name="Inhibit all warnings (-w)"
- category="linux.gnu.compiler.category.warnings"
- command="-w"
- valueType="boolean"
- id="linux.gnu.compiler.warnings.nowarn">
- </option>
- <option
- defaultValue="true"
- name="All warnings (-Wall)"
- category="linux.gnu.compiler.category.warnings"
- command="-Wall"
- valueType="boolean"
- id="linux.gnu.compiler.warnings.allwarn">
- </option>
- <option
- defaultValue="false"
- name="Warnings as errors (-werror)"
- category="linux.gnu.compiler.category.warnings"
- command="-werror"
- valueType="boolean"
- id="linux.gnu.compiler.warnings.toerrors">
- </option>
- <optionCategory
- owner="cdt.build.tool.linux.gnu.compiler"
- name="%OptionCategory.Misc"
- id="linux.gnu.compiler.category.other">
- </optionCategory>
- <option
- defaultValue="false"
- name="Verbose (-v)"
- category="linux.gnu.compiler.category.other"
- command="-v"
- valueType="boolean"
- id="linux.gnu.compiler.other.verbose">
- </option>
- <option
- defaultValue="-c"
- name="Other flags"
- category="linux.gnu.compiler.category.other"
- valueType="string"
- id="linux.gnu.compiler.other.other">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Linux Executable"
- parent="linux.gnu"
- isAbstract="false"
- id="linux.gnu.exec">
- <configuration
- name="%ConfigName.Rel"
- id="linux.gnu.exec.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="linux.gnu.exec.debug">
- </configuration>
- <tool
- sources="o"
- name="%ToolName.linker"
- outputFlag="-o"
- command="g++"
- id="cdt.build.tool.linux.gnu.link">
- <optionCategory
- owner="cdt.build.tool.linux.gnu.link"
- name="%OptionCategory.General"
- id="linux.gnu.linker.category.options">
- </optionCategory>
- <option
- defaultValue="false"
- name="Do not use standard start files (-nostartfiles)"
- category="linux.gnu.linker.category.options"
- command="-nostartfiles"
- valueType="boolean"
- id="linux.gnu.linker.options.nostart">
- </option>
- <option
- defaultValue="false"
- name="Do not use default libraries (-nodefaultlibs)"
- category="linux.gnu.linker.category.options"
- command="-nodefaultlibs"
- valueType="boolean"
- id="linux.gnu.linker.options.nodeflibs">
- </option>
- <option
- defaultValue="false"
- name="No startup or default libs (-nostdlib)"
- category="linux.gnu.linker.category.options"
- command="-nostdlib"
- valueType="boolean"
- id="linux.gnu.linker.options.nostdlibs">
- </option>
- <option
- defaultValue="false"
- name="Remove symbol table (-s)"
- category="linux.gnu.linker.category.options"
- command="-s"
- valueType="boolean"
- id="linux.gnu.linker.options.strip">
- </option>
- <option
- defaultValue="false"
- name="No shared libraries (-static)"
- category="linux.gnu.linker.category.options"
- command="-static"
- valueType="boolean"
- id="linux.gnu.linker.options.noshared">
- </option>
- <option
- name="Other options (-Xlinker [option])"
- category="linux.gnu.linker.category.options"
- command="-Xlinker"
- valueType="stringList"
- id="linux.gnu.linker.options.other">
- </option>
- <optionCategory
- owner="cdt.build.tool.linux.gnu.link"
- name="%OptionCategory.Libs"
- id="linux.gnu.linker.category.libs">
- </optionCategory>
- <option
- name="Libraries"
- category="linux.gnu.linker.category.libs"
- command="-l"
- valueType="libs"
- id="linux.gnu.linker.libs.libs">
- </option>
- <option
- name="Library search path"
- category="linux.gnu.linker.category.libs"
- command="-L"
- valueType="stringList"
- id="linux.gnu.linker.libs.paths">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Linux Shared Library"
- parent="linux.gnu"
- defaultExtension="so"
- isAbstract="false"
- id="linux.gnu.so">
- <configuration
- name="%ConfigName.Rel"
- id="linux.gnu.so.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="linux.gnu.so.debug">
- </configuration>
- <tool
- sources="o"
- name="%ToolName.linker"
- outputFlag="-o"
- outputs="so"
- outputPrefix="lib"
- command="g++ -shared"
- id="cdt.build.tool.linux.gnu.solink">
- <optionCategory
- owner="cdt.build.tool.linux.gnu.solink"
- name="%OptionCategory.General"
- id="linux.gnu.solink.category.options">
- </optionCategory>
- <option
- defaultValue="false"
- name="Do not use standard start files (-nostartfiles)"
- category="linux.gnu.solink.category.options"
- command="-nostartfiles"
- valueType="boolean"
- id="linux.gnu.solink.options.nostart">
- </option>
- <option
- defaultValue="false"
- name="Do not use default libraries (-nodefaultlibs)"
- category="linux.gnu.solink.category.options"
- command="-nodefaultlibs"
- valueType="boolean"
- id="linux.gnu.solink.options.nodeflibs">
- </option>
- <option
- defaultValue="false"
- name="No startup or default libs (-nostdlib)"
- category="linux.gnu.solink.category.options"
- command="-nostdlib"
- valueType="boolean"
- id="linux.gnu.solink.options.nostdlibs">
- </option>
- <option
- defaultValue="false"
- name="Remove symbol table (-s)"
- category="linux.gnu.solink.category.options"
- command="-s"
- valueType="boolean"
- id="linux.gnu.solink.options.strip">
- </option>
- <option
- defaultValue="false"
- name="No shared libraries (-static)"
- category="linux.gnu.solink.category.options"
- command="-static"
- valueType="boolean"
- id="linux.gnu.solink.options.noshared">
- </option>
- <option
- defaultValue="false"
- name="Bind global symbol references (-symbolic)"
- category="linux.gnu.solink.category.options"
- command="-symbolic"
- valueType="boolean"
- id="linux.gnu.solink.options.symbolic">
- </option>
- <option
- name="Other options (-Xlinker [option])"
- category="linux.gnu.solink.category.options"
- command="-Xlinker"
- valueType="stringList"
- id="linux.gnu.solink.options.other">
- </option>
- <optionCategory
- owner="cdt.build.tool.linux.gnu.solink"
- name="%OptionCategory.Libs"
- id="linux.gnu.solink.category.libs">
- </optionCategory>
- <option
- name="Libraries"
- category="linux.gnu.solink.category.libs"
- command="-l"
- valueType="libs"
- id="linux.gnu.solink.libs.libs">
- </option>
- <option
- name="Library search path"
- category="linux.gnu.solink.category.libs"
- command="-L"
- valueType="stringList"
- id="linux.gnu.solink.libs.paths">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Linux Static Library"
- parent="linux.gnu"
- defaultExtension="a"
- isAbstract="false"
- id="linux.gnu.lib">
- <configuration
- name="%ConfigName.Rel"
- id="linux.gnu.lib.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="linux.gnu.lib.debug">
- </configuration>
- <tool
- sources="o"
- name="%ToolName.archiver"
- outputs="a"
- outputPrefix="lib"
- command="ar"
- id="cdt.build.tool.linux.gnu.lib">
- <optionCategory
- owner="cdt.build.tool.linux.gnu.lib"
- name="%OptionCategory.General"
- id="linux.gnu.lib.category.general">
- </optionCategory>
- <option
- defaultValue="-r"
- name="Archiver Flags"
- category="linux.gnu.lib.category.general"
- valueType="string"
- id="linux.gnu.lib.flags">
- </option>
- </tool>
- </target>
- <target
- makeFlags="-k"
- isTest="false"
- cleanCommand="rm -rf"
- name="Solaris"
- isAbstract="true"
- makeCommand="make"
- id="solaris.gnu">
- <tool
- sources="c,C,cc,cxx,cpp"
- name="%ToolName.compiler"
- outputFlag="-o"
- outputs="o"
- command="g++"
- id="cdt.build.tool.solaris.gnu.compiler">
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.compiler"
- name="%OptionCategory.Preproc"
- id="solaris.gnu.compiler.category.preprocessor">
- </optionCategory>
- <option
- defaultValue="false"
- name="Do not search system directories (-nostdinc)"
- category="solaris.gnu.compiler.category.preprocessor"
- command="-nostdinc"
- valueType="boolean"
- id="solaris.gnu.compiler.preprocessor.nostdinc">
- </option>
- <option
- defaultValue="false"
- name="Preprocess only (-E)"
- category="solaris.gnu.compiler.category.preprocessor"
- command="-E"
- valueType="boolean"
- id="solaris.gnu.compiler.preprocessor.preprocess">
- </option>
- <option
- name="Defined Symbols (-D)"
- category="solaris.gnu.compiler.category.preprocessor"
- command="-D"
- valueType="definedSymbols"
- id="solaris.gnu.compiler.preprocessor.def">
- <listOptionValue
- builtIn="true"
- value="sun">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="sparc">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="unix">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__svr4__">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__SVR4">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__GCC_NEW_VARARGS__">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__sun__">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__sparc__">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__unix__">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__sun">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__sparc">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__unix">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="__OPTIMIZE__">
- </listOptionValue>
- </option>
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.compiler"
- name="%OptionCategory.Dirs"
- id="solaris.gnu.compiler.category.dirs">
- </optionCategory>
- <option
- name="Include search paths (-I)"
- category="solaris.gnu.compiler.category.dirs"
- command="-I"
- valueType="includePath"
- id="solaris.gnu.compiler.dirs.incpaths">
- <listOptionValue
- value="/usr/local/include"
- builtIn="true">
- </listOptionValue>
- <listOptionValue
- builtIn="true"
- value="/usr/include">
- </listOptionValue>
- </option>
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.compiler"
- name="%OptionCategory.Optimize"
- id="solaris.gnu.compiler.category.optimization">
- </optionCategory>
- <option
- name="Optimization Level"
- category="solaris.gnu.compiler.category.optimization"
- value="-O"
- valueType="enumerated"
- id="solaris.gnu.compiler.optimization.level">
- <enumeratedOptionValue
- name="None (-O0)"
- command="-O0"
- id="solaris.gnu.compiler.optimization.level.none">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize (-O1)"
- command="-O1"
- id="solaris.gnu.compiler.optimization.level.optimize">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize more (-O2)"
- isDefault="true"
- command="-O2"
- id="solaris.gnu.compiler.optimization.level.more">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Optimize most (-O3)"
- command="-O3"
- id="solaris.gnu.compiler.optimization.level.most">
- </enumeratedOptionValue>
- </option>
- <option
- name="Other optimization flags"
- category="solaris.gnu.compiler.category.optimization"
- valueType="string"
- id="solaris.compiler.optimization.flags">
- </option>
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.compiler"
- name="%OptionCategory.Debug"
- id="solaris.gnu.compiler.category.debug">
- </optionCategory>
- <option
- name="Debug Level"
- category="solaris.gnu.compiler.category.debug"
- valueType="enumerated"
- id="solaris.gnu.compiler.debugging.level">
- <enumeratedOptionValue
- name="None"
- isDefault="false"
- id="solaris.gnu.compiler.debugging.level.none">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Minimal (-g1)"
- command="-g1"
- id="solaris.gnu.compiler.debugging.level.minimal">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Default (-g)"
- isDefault="true"
- command="-g"
- id="solaris.gnu.compiler.debugging.level.default">
- </enumeratedOptionValue>
- <enumeratedOptionValue
- name="Maximum (-g3)"
- isDefault="false"
- command="-g3"
- id="solaris.gnu.compiler.debugging.level.max">
- </enumeratedOptionValue>
- </option>
- <option
- name="Other debugging flags"
- category="solaris.gnu.compiler.category.debug"
- valueType="string"
- id="solaris.gnu.compiler.debugging.other">
- </option>
- <option
- defaultValue="false"
- name="Generate prof information (-p)"
- category="solaris.gnu.compiler.category.debug"
- command="-p"
- valueType="boolean"
- id="solaris.gnu.compiler.debugging.prof">
- </option>
- <option
- defaultValue="false"
- name="Generate gprof information (-pg)"
- category="solaris.gnu.compiler.category.debug"
- command="-pg"
- valueType="boolean"
- id="solaris.gnu.compiler.debugging.gprof">
- </option>
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.compiler"
- name="%OptionCategory.Warn"
- id="solaris.gnu.compiler.category.warnings">
- </optionCategory>
- <option
- defaultValue="false"
- name="Check syntax only (-fsyntax-only)"
- category="solaris.gnu.compiler.category.warnings"
- command="-fsyntax-only"
- valueType="boolean"
- id="solaris.gnu.compiler.warnings.syntax">
- </option>
- <option
- defaultValue="false"
- name="Pedantic (-pedantic)"
- category="solaris.gnu.compiler.category.warnings"
- command="-pedantic"
- valueType="boolean"
- id="solaris.gnu.compiler.warnings.pedantic">
- </option>
- <option
- defaultValue="false"
- name="Pedantic warnings as errors (-pedantic-errors)"
- category="solaris.gnu.compiler.category.warnings"
- command="-pedantic-errors"
- valueType="boolean"
- id="solaris.gnu.compiler.warnings.pedantic.error">
- </option>
- <option
- defaultValue="false"
- name="Inhibit all warnings (-w)"
- category="solaris.gnu.compiler.category.warnings"
- command="-w"
- valueType="boolean"
- id="solaris.gnu.compiler.warnings.nowarn">
- </option>
- <option
- defaultValue="true"
- name="All warnings (-Wall)"
- category="solaris.gnu.compiler.category.warnings"
- command="-Wall"
- valueType="boolean"
- id="solaris.gnu.compiler.warnings.allwarn">
- </option>
- <option
- defaultValue="false"
- name="Warnings as errors (-werror)"
- category="solaris.gnu.compiler.category.warnings"
- command="-werror"
- valueType="boolean"
- id="solaris.gnu.compiler.warnings.toerrors">
- </option>
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.compiler"
- name="%OptionCategory.Misc"
- id="solaris.gnu.compiler.category.other">
- </optionCategory>
- <option
- defaultValue="false"
- name="Verbose (-v)"
- category="solaris.gnu.compiler.category.other"
- command="-v"
- valueType="boolean"
- id="solaris.gnu.compiler.other.verbose">
- </option>
- <option
- defaultValue="-c"
- name="Other flags"
- category="solaris.gnu.compiler.category.other"
- valueType="string"
- id="solaris.gnu.compiler.other.other">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Solaris Executable"
- parent="solaris.gnu"
- isAbstract="false"
- id="solaris.gnu.exec">
- <configuration
- name="%ConfigName.Rel"
- id="solaris.gnu.exec.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="solaris.gnu.exec.debug">
- </configuration>
- <tool
- sources="o"
- name="%ToolName.linker"
- outputFlag="-o"
- command="g++"
- id="cdt.build.tool.solaris.gnu.link">
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.link"
- name="%OptionCategory.General"
- id="solaris.gnu.linker.category.options">
- </optionCategory>
- <option
- defaultValue="false"
- name="Do not use standard start files (-nostartfiles)"
- category="solaris.gnu.linker.category.options"
- command="-nostartfiles"
- valueType="boolean"
- id="solaris.gnu.linker.options.nostart">
- </option>
- <option
- defaultValue="false"
- name="Do not use default libraries (-nodefaultlibs)"
- category="solaris.gnu.linker.category.options"
- command="-nodefaultlibs"
- valueType="boolean"
- id="solaris.gnu.linker.options.nodeflibs">
- </option>
- <option
- defaultValue="false"
- name="No startup or default libs (-nostdlib)"
- category="solaris.gnu.linker.category.options"
- command="-nostdlib"
- valueType="boolean"
- id="solaris.gnu.linker.options.nostdlibs">
- </option>
- <option
- defaultValue="false"
- name="Remove symbol table (-s)"
- category="solaris.gnu.linker.category.options"
- command="-s"
- valueType="boolean"
- id="solaris.gnu.linker.options.strip">
- </option>
- <option
- defaultValue="false"
- name="No shared libraries (-static)"
- category="solaris.gnu.linker.category.options"
- command="-static"
- valueType="boolean"
- id="solaris.gnu.linker.options.noshared">
- </option>
- <option
- name="Other options (-Xlinker [option])"
- category="solaris.gnu.linker.category.options"
- command="-Xlinker"
- valueType="stringList"
- id="solaris.gnu.linker.options.other">
- </option>
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.link"
- name="%OptionCategory.Libs"
- id="solaris.gnu.linker.category.libs">
- </optionCategory>
- <option
- name="Libraries"
- category="solaris.gnu.linker.category.libs"
- command="-l"
- valueType="libs"
- id="solaris.gnu.linker.libs.libs">
- </option>
- <option
- name="Library search path"
- category="solaris.gnu.linker.category.libs"
- command="-L"
- valueType="stringList"
- id="solaris.gnu.linker.libs.paths">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Solaris Shared Library"
- parent="solaris.gnu"
- defaultExtension="so"
- isAbstract="false"
- id="solaris.gnu.so">
- <configuration
- name="%ConfigName.Rel"
- id="solaris.gnu.so.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="solaris.gnu.so.debug">
- </configuration>
- <tool
- sources="o"
- name="%ToolName.linker"
- outputFlag="-o"
- outputs="so"
- outputPrefix="lib"
- command="g++ -shared"
- id="cdt.build.tool.solaris.gnu.solink">
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.solink"
- name="%OptionCategory.General"
- id="solaris.gnu.solink.category.options">
- </optionCategory>
- <option
- defaultValue="false"
- name="Do not use standard start files (-nostartfiles)"
- category="solaris.gnu.solink.category.options"
- command="-nostartfiles"
- valueType="boolean"
- id="solaris.gnu.solink.options.nostart">
- </option>
- <option
- defaultValue="false"
- name="Do not use default libraries (-nodefaultlibs)"
- category="solaris.gnu.solink.category.options"
- command="-nodefaultlibs"
- valueType="boolean"
- id="solaris.gnu.solink.options.nodeflibs">
- </option>
- <option
- defaultValue="false"
- name="No startup or default libs (-nostdlib)"
- category="solaris.gnu.solink.category.options"
- command="-nostdlib"
- valueType="boolean"
- id="solaris.gnu.solink.options.nostdlibs">
- </option>
- <option
- defaultValue="false"
- name="Remove symbol table (-s)"
- category="solaris.gnu.solink.category.options"
- command="-s"
- valueType="boolean"
- id="solaris.gnu.solink.options.strip">
- </option>
- <option
- defaultValue="false"
- name="No shared libraries (-static)"
- category="solaris.gnu.solink.category.options"
- command="-static"
- valueType="boolean"
- id="solaris.gnu.solink.options.noshared">
- </option>
- <option
- defaultValue="false"
- name="Bind global symbol references (-symbolic)"
- category="solaris.gnu.solink.category.options"
- command="-symbolic"
- valueType="boolean"
- id="solaris.gnu.solink.options.symbolic">
- </option>
- <option
- name="Other options (-Xlinker [option])"
- category="solaris.gnu.solink.category.options"
- command="-Xlinker"
- valueType="stringList"
- id="solaris.gnu.solink.options.other">
- </option>
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.solink"
- name="%OptionCategory.Libs"
- id="solaris.gnu.solink.category.libs">
- </optionCategory>
- <option
- name="Libraries"
- category="solaris.gnu.solink.category.libs"
- command="-l"
- valueType="libs"
- id="solaris.gnu.solink.libs.libs">
- </option>
- <option
- name="Library search path"
- category="solaris.gnu.solink.category.libs"
- command="-L"
- valueType="stringList"
- id="solaris.gnu.solink.libs.paths">
- </option>
- </tool>
- </target>
- <target
- isTest="false"
- name="Solaris Static Library"
- parent="solaris.gnu"
- defaultExtension="a"
- isAbstract="false"
- id="solaris.gnu.lib">
- <configuration
- name="%ConfigName.Rel"
- id="solaris.gnu.lib.release">
- </configuration>
- <configuration
- name="%ConfigName.Dbg"
- id="solaris.gnu.lib.debug">
- </configuration>
- <tool
- sources="o"
- name="%ToolName.archiver"
- outputs="a"
- outputPrefix="lib"
- command="ar"
- id="cdt.build.tool.solaris.gnu.lib">
- <optionCategory
- owner="cdt.build.tool.solaris.gnu.lib"
- name="%OptionCategory.General"
- id="solaris.gnu.lib.category.general">
- </optionCategory>
- <option
- defaultValue="-r"
- name="Archiver Flags"
- category="solaris.gnu.lib.category.general"
- valueType="string"
- id="solaris.gnu.lib.flags">
- </option>
- </tool>
- </target>
- </extension>
+
<extension
id="org.eclipse.cdt.ui.CSearchPage"
name="CSearchPage"
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java
index 87751e72bb..211fb9e52a 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginImages.java
@@ -35,7 +35,6 @@ public class CPluginImages {
private static final int NAME_PREFIX_LENGTH= NAME_PREFIX.length();
private static final String T= "full/";
- public static final String T_BUILD= T + "build16/";
public static final String T_OBJ= T + "obj16/";
public static final String T_WIZBAN= T + "wizban/";
public static final String T_LCL= "lcl16/";
@@ -148,24 +147,6 @@ public class CPluginImages {
public static final String IMG_OBJS_BUILD= NAME_PREFIX + "build_menu.gif";
public static final ImageDescriptor DESC_BUILD_MENU = createManaged(T_OBJ, IMG_OBJS_BUILD);
- // For the managed build images
- public static final String IMG_BUILD_CONFIG = NAME_PREFIX + "build_configs.gif";
- public static final ImageDescriptor DESC_BUILD_CONFIG = createManaged(T_BUILD, IMG_BUILD_CONFIG);
- public static final String IMG_BUILD_COMPILER = NAME_PREFIX + "config-compiler.gif";
- public static final ImageDescriptor DESC_BUILD_COMPILER = createManaged(T_BUILD, IMG_BUILD_COMPILER);
- public static final String IMG_BUILD_LINKER = NAME_PREFIX + "config-linker.gif";
- public static final ImageDescriptor DESC_BUILD_LINKER = createManaged(T_BUILD, IMG_BUILD_LINKER);
- public static final String IMG_BUILD_LIBRARIAN = NAME_PREFIX + "config-librarian.gif";
- public static final ImageDescriptor DESC_BUILD_LIBRARIAN = createManaged(T_BUILD, IMG_BUILD_LIBRARIAN);
- public static final String IMG_BUILD_COMMAND = NAME_PREFIX + "config-command.gif";
- public static final ImageDescriptor DESC_BUILD_COMMAND = createManaged(T_BUILD, IMG_BUILD_COMMAND);
- public static final String IMG_BUILD_PREPROCESSOR = NAME_PREFIX + "config-preprocessor.gif";
- public static final ImageDescriptor DESC_BUILD_PREPROCESSOR = createManaged(T_BUILD, IMG_BUILD_PREPROCESSOR);
- public static final String IMG_BUILD_TOOL = NAME_PREFIX + "config-tool.gif";
- public static final ImageDescriptor DESC_BUILD_TOOL = createManaged(T_BUILD, IMG_BUILD_TOOL);
- public static final String IMG_BUILD_CAT = NAME_PREFIX + "config-category.gif";
- public static final ImageDescriptor DESC_BUILD_CAT = createManaged(T_BUILD, IMG_BUILD_CAT);
-
//for search
public static final String IMG_OBJS_SEARCH_REF = NAME_PREFIX + "search_ref_obj.gif";
public static final String IMG_OBJS_SEARCH_DECL = NAME_PREFIX + "search_decl_obj.gif";
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginResources.properties b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginResources.properties
index be79568480..8e46d13357 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginResources.properties
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginResources.properties
@@ -329,20 +329,6 @@ CreateFolderAction.text = F&older
# ------- Drag and Drop Message Text -----------
CViewDragNDrop.txt = already exists. Would you like to overwrite it?
-# ----------- Build Property Page -----------
-BuildPropertyPage.label.Platform=Platform:
-BuildPropertyPage.label.Configuration=Configuration:
-BuildPropertyPage.label.Active=Active configuration
-BuildPropertyPage.label.Settings=Configuration settings
-BuildPropertyPage.label.AddConfButton=Manage...
-BuildPropertyPage.label.ToolTree=Tools
-BuildPropertyPage.label.ToolOptions=Options
-BuildPropertyPage.tip.platform=Select a platform for the project
-BuildPropertyPage.tip.config=Select the configuration to edit
-BuildPropertyPage.tip.addconf=Add configurations for the platform
-BuildPropertyPage.tip.remconf=Remove configurations for the platform
-BuildPropertyPage.manage.title=Manage Configurations
-
# ----------- Build Property Common -----------
BuildPropertyCommon.label.title=Enter Value
BuildPropertyCommon.label.new=New...
@@ -353,10 +339,4 @@ BuildPropertyCommon.label.editVar=Edit
BuildPropertyCommon.label.addVar=Add
BuildPropertyCommon.label.message=Value:
BuildPropertyCommon.label.browse=Browse...
-BuildPropertyCommon.label.configs=Defined configurations:
-
-# ----------- New Configuration -----------
-NewConfiguration.label.name=Configuration name:
-NewConfiguration.label.copy=Copy settings from:
-NewConfiguration.error.title=Error
-NewConfiguration.error.duplicateName=A configuration named "{0}" already exists.
+BuildPropertyCommon.label.configs=Defined configurations: \ No newline at end of file

Back to the top