Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoda Amer2003-12-09 09:48:09 -0500
committerHoda Amer2003-12-09 09:48:09 -0500
commitd42dfce8c4c860193f939d733567acfc62162326 (patch)
treee9af7aa1526d72ec35f833291041b8a95abb6192
parent61cd51d9b686546d380fedc08198eaf339e386f2 (diff)
downloadorg.eclipse.cdt-d42dfce8c4c860193f939d733567acfc62162326.tar.gz
org.eclipse.cdt-d42dfce8c4c860193f939d733567acfc62162326.tar.xz
org.eclipse.cdt-d42dfce8c4c860193f939d733567acfc62162326.zip
New Class Wizard small API change
-rw-r--r--core/org.eclipse.cdt.ui/ChangeLog3
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizard.java6
2 files changed, 8 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog
index f4e9df8bfda..11e7e12e565 100644
--- a/core/org.eclipse.cdt.ui/ChangeLog
+++ b/core/org.eclipse.cdt.ui/ChangeLog
@@ -1,3 +1,6 @@
+2003-12-09 Hoda Amer
+ Added a method to return the created class element to the class wizard.
+
2003-11-14 David Inglis
Fixed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=46685
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizard.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizard.java
index 08b3cbe756f..95e8e3f6968 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizard.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewClassWizard.java
@@ -2,6 +2,7 @@ package org.eclipse.cdt.ui.wizards;
import java.lang.reflect.InvocationTargetException;
+import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.core.model.ITranslationUnit;
import org.eclipse.cdt.internal.ui.CPluginImages;
import org.eclipse.cdt.internal.ui.actions.WorkbenchRunnableAdapter;
@@ -122,5 +123,8 @@ public class NewClassWizard extends BasicNewResourceWizard implements INewWizard
}
}
}
-
+
+ public ICElement getCreatedClassElement(){
+ return fPage.getCreatedClassElement();
+ }
}

Back to the top