Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Creating an Eclipse Project Wizard
Creating an Eclipse Project Wizard [message #987317] Mon, 26 November 2012 02:58 Go to next message
Coraline Kay is currently offline Coraline KayFriend
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31832
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/
Previous Topic:Can't loading ch.ethz.iks.r_osgi.remote
Next Topic:Accidentally deleted files
Goto Forum:
  


Current Time: Wed Apr 14 15:15:17 GMT 2021

Powered by FUDForum. Page generated in 0.03177 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top