[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] Objective-C project wizard + properties
|
Hello,
To be able to have bugzilla 11094 implemented, I started writing some
code for the functionality I would first use when creating an
Objective-C project: the new project wizard. Can this patch be applied?
I also sent this patch to the cdt-core-dev mailing list. I must have
overlooked this list. It is the same patch and should only be applied
once. :-)
Ringo
Index: plugin.properties
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/plugin.properties,v
retrieving revision 1.18
diff -u -r1.18 plugin.properties
--- plugin.properties 27 May 2003 21:33:02 -0000 1.18
+++ plugin.properties 2 Jun 2003 21:47:42 -0000
@@ -24,6 +24,11 @@
StdCCWizard.name=Standard Make C++ Project
StdCCWizard.description=Create a new C++ project
+# Objective-C
+newObjCWizardsCategory.name=Objective-C
+StdObjCWizard.name=Standard Make Objective-C project
+StdObjCWizard.description=Create a new Objective-C project
+
#Project Conversion
ConversionWizard.name=Convert a project's nature
ConversionWizard.description=Convert a project's nature
Index: plugin.xml
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/plugin.xml,v
retrieving revision 1.26
diff -u -r1.26 plugin.xml
--- plugin.xml 27 May 2003 21:33:02 -0000 1.26
+++ plugin.xml 2 Jun 2003 21:47:43 -0000
@@ -200,6 +200,23 @@
%StdMakeConversionWizard.description
</description>
</wizard>
+<!-- For Objective-C Wizard -->
+ <category
+ name="%newObjCWizardsCategory.name"
+ id="org.eclipse.cdt.ui.newObjCWizards">
+ </category>
+ <wizard
+ name="%StdObjCWizard.name"
+ icon="icons/full/ctool16/newc_app.gif"
+ category="org.eclipse.cdt.ui.newObjCWizards"
+ class="org.eclipse.cdt.ui.wizards.StdObjCWizard"
+ project="true"
+ finalPerspective="org.eclipse.cdt.ui.CPerspective"
+ id="org.eclipse.cdt.ui.wizards.StdObjCWizard">
+ <description>
+ %StdObjCWizard.description
+ </description>
+ </wizard>
<!-- File and Folder Wizards -->
<wizard
name="%NewWizards.folder"
Index: src/org/eclipse/cdt/internal/ui/CPluginResources.properties
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/CPluginResources.properties,v
retrieving revision 1.12
diff -u -r1.12 CPluginResources.properties
--- src/org/eclipse/cdt/internal/ui/CPluginResources.properties 27 May 2003 21:33:02 -0000 1.12
+++ src/org/eclipse/cdt/internal/ui/CPluginResources.properties 2 Jun 2003 21:47:45 -0000
@@ -80,6 +80,11 @@
StdCCWizardSettings.title=Standard Make C++ Settings
StdCCWizardSettings.description=Define the Standard Make C++ build settings.
+StdObjCWizard.title=Standard Make Objective-C Project
+StdObjCWizard.description=Create a new Standard Objective-C Project.
+StdObjCWizardSettings.title=Standard Make Objective-C Settings
+StdObjCWizardSettings.description=Define the Standard Make Objective-C build settings.
+
NewClassWizard.title=New Class
NewClassWizard.description=Create a new C++ Class.
NewClassWizard.page.title=Class
Index: src/org/eclipse/cdt/ui/wizards/StdObjCWizard.java
===================================================================
RCS file: src/org/eclipse/cdt/ui/wizards/StdObjCWizard.java
diff -N src/org/eclipse/cdt/ui/wizards/StdObjCWizard.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/org/eclipse/cdt/ui/wizards/StdObjCWizard.java 2 Jun 2003 21:47:48 -0000
@@ -0,0 +1,30 @@
+package org.eclipse.cdt.ui.wizards;
+
+import org.eclipse.cdt.ui.CUIPlugin;
+import org.eclipse.swt.widgets.TabFolder;
+
+/**
+ * @author Ringo De Smet
+ */
+public class StdObjCWizard extends StdMakeProjectWizard {
+
+ private static final String WZ_TITLE = "StdObjCWizard.title";
+ private static final String WZ_DESC = "StdObjCWizard.description";
+ private static final String SETTINGS_TITLE= "StdObjCWizardSettings.title"; //$NON-NLS-1$
+ private static final String SETTINGS_DESC= "StdObjCWizardSettings.description"; //$NON-NLS-1$
+
+ public StdObjCWizard() {
+ this(CUIPlugin.getResourceString(WZ_TITLE), CUIPlugin.getResourceString(WZ_DESC));
+ }
+
+ public StdObjCWizard(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));
+ }
+
+}