WizardNewFileCreationPage file missing [message #257615] |
Tue, 03 June 2008 20:02  |
Eclipse User |
|
|
|
Originally posted by: tchurch+eclipse.nullring.com
I am trying to develop an Eclipse Plug-In and the documentation says to
extend the org.eclipse.ui.dialogs.WizardNewFileCreationPage class.
However, this class does not exist.
I downloaded the Eclipse for RCP/Plug-In Developers version 3.3.2. I have
also checked in the another location that was suggested in previous
newsgroup listings - org.eclipse.ui.ide.WizardNewFileCreationPage. This
file does not exist in either of these locations.
Any idea where I can find it?
|
|
|
|
|
|
|
Re: WizardNewFileCreationPage file missing [message #257672 is a reply to message #257668] |
Wed, 04 June 2008 12:16   |
Eclipse User |
|
|
|
There are some important fundamental concepts that you need to get a
handle on.
First, the build path is used only for building. In a plain old Java
project, the build path is also used as the runtime classpath (assuming
you don't override it). As a general rule, you should almost never need
to change the Java Build path when you're building plug-ins.
In the Eclipse runtime (Equinox), you have to explicitly specify
dependencies between plug-ins (also known as "bundles"). So, if you want
to use the WizardNewFileCreationPage in your plug-in, you have to have
the plug-in that defines WizardNewFileCreationPage as one of your
plug-ins dependencies.
To set this up, double-click on either the manifest.mf or plugin.xml
file for your plug-in and navigate to the "Dependencies" page. In the
"Required Plug-ins" area, click "Add" and add the plug-in that defines
WizardNewFileCreationPage (org.eclipse.ui.ide).
You should then be able to access it from classes in your plug-in.
I recommend that you find a decent tutorial on plug-in basics before you
try to get too far...
Try this one:
http://www.ibm.com/developerworks/library/os-eclipse-plugind ev1/index.html?ca=dgr-eclipse-1
HTH,
Wayne
On Wed, 2008-06-04 at 15:45 +0000, Tim Church wrote:
> Well, I was able to find the file using the method you suggested. Thanks!
>
> However, when I try to import
> org.eclipse.ui.dialogs.WizardNewFileCreationPage, I am getting an error
> that says the import cannot be resolved. From looking in the newsgroup,
> it seems that this may be due to the build path for the project. I added
> the 'Plug-In Dependencies' library to the build path, but it did not
> resolve the problem. Any suggestions?
>
>
> I am actually going through the eclipse help, not a tutorial.
> http://help.eclipse.org/help33/index.jsp
> Platform Plugin Developer Guide -> Dialogs and Wizards -> Workbench Wizard
> Extension Points -> org.eclipse.ui.newWizards
>
> Is there a better tutorial for creating a plug-in (preferably with a new
> wizard)?
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.53302 seconds