Creating an Eclipse Project Wizard [message #987317] |
Mon, 26 November 2012 02:58 |
Coraline Kay Messages: 3 Registered: May 2012 |
Junior Member |
|
|
Hi! I hail from the bukkit forums, I make plugins for minecraft bukkit servers. Something ive always thought would be really useful would be to create a "create bukkit project" wizard.
Now, ive done a bit of digging tonight, and ive not really found anything super useful. I may be wrong, but i do believe this should be something reletively simple to do.. But i'd rather not have to dig through the entire eclipse API just to find out how to do this..
So i ask you fine folks... I need to be able to create a wizard that does a few things:
1) creates a new base project with a name, and the default system library (or.. Is it possible to have this wizard run the basic java-project wizard, then return that project to my wizard?)
2) ask for a jar file that will then add it to the project dependencies as an external jar file
3) ask for a main package name, a class name, and then create a new class in that package, with that class name, extending a specific class (from the previous jar file dependency)
4) set up a .yml file with a specific name in the root project folder, with a few questions answerable with text.
So, am i looking at something that will be doable or..?
Thanks for any responses!
|
|
|
Re: Creating an Eclipse Project Wizard [message #987325 is a reply to message #987317] |
Mon, 26 November 2012 06:59 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
You'd use a subclass of org.eclipse.jface.wizard.Wizard and sublcass
org.eclipse.ui.dialogs.WizardNewProjectCreationPage. You could look at
subclasses of those to see how other wizards are developed. Plug-in spy
(Alt-Shift-F1) can be useful for determining how other things in the IDE
are implemented. It can also be useful to use Window->Show
View->Other...->Plug-in Development->Plug-ins View, select all plug-ins
(or an interesting subset) and from the context menu, use Add to Java
Search. Then Ctrl-Shift-T will find all classes that are potentially
available to you if you create dependencies from your plug-ins those
class' plug-ins.
On 26/11/2012 3:58 AM, Coraline Kay wrote:
> Hi! I hail from the bukkit forums, I make plugins for minecraft bukkit
> servers. Something ive always thought would be really useful would be
> to create a "create bukkit project" wizard.
> Now, ive done a bit of digging tonight, and ive not really found
> anything super useful. I may be wrong, but i do believe this should be
> something reletively simple to do.. But i'd rather not have to dig
> through the entire eclipse API just to find out how to do this..
>
> So i ask you fine folks... I need to be able to create a wizard that
> does a few things:
> 1) creates a new base project with a name, and the default system
> library (or.. Is it possible to have this wizard run the basic
> java-project wizard, then return that project to my wizard?)
> 2) ask for a jar file that will then add it to the project
> dependencies as an external jar file
> 3) ask for a main package name, a class name, and then create a new
> class in that package, with that class name, extending a specific
> class (from the previous jar file dependency)
> 4) set up a .yml file with a specific name in the root project folder,
> with a few questions answerable with text.
>
> So, am i looking at something that will be doable or..?
> Thanks for any responses!
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.07871 seconds