Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Adding a new project type
Adding a new project type [message #277547] Mon, 13 December 2004 11:14 Go to next message
Eclipse UserFriend
Originally posted by: yves.monier.temis-group.com

Hello,

I'd like to develop a studio-like application for our corporate tools, on
top of Eclipse (3.0).
This starts by supporting a new project type.
I found two articles related to that in newsgroup archives:
- one suggests to use org.eclipse.jdt.internal.core.JavaProject as a
starting point
( http://dev.eclipse.org/newslists/news.eclipse.platform/msg06 304.html)
- another suggests to start from
org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWi zard
( http://dev.eclipse.org/newslists/news.eclipse.platform/msg15 932.html)

My questions are:
- is one of these two suggestions enough?
- do I need both (i.e. develop a specific set of Project classes + develop
the associated wizard classes)?
- once I have developed the relevant classes (project and/or wizard), how do
I configure Eclipse to take them into account and display the new project in
the "New project" dialog?
- do you know tutorials about developing a custom IDE on top of Eclipse
(i.e. from the project definition to the different views and editors)

Thanks a lot for your help,

Yves
Re: Adding a new project type [message #277568 is a reply to message #277547] Mon, 13 December 2004 13:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: barlock.usx.ibmx.com

> I'd like to develop a studio-like application for our corporate tools, on
> top of Eclipse (3.0).
> This starts by supporting a new project type.
> I found two articles related to that in newsgroup archives:
> - one suggests to use org.eclipse.jdt.internal.core.JavaProject as a
> starting point
> ( http://dev.eclipse.org/newslists/news.eclipse.platform/msg06 304.html)
> - another suggests to start from
> org.eclipse.ui.wizards.newresource.BasicNewProjectResourceWi zard
> ( http://dev.eclipse.org/newslists/news.eclipse.platform/msg15 932.html)
>
> My questions are:
> - is one of these two suggestions enough?
> - do I need both (i.e. develop a specific set of Project classes + develop
> the associated wizard classes)?
> - once I have developed the relevant classes (project and/or wizard), how
do
> I configure Eclipse to take them into account and display the new project
in
> the "New project" dialog?
> - do you know tutorials about developing a custom IDE on top of Eclipse
> (i.e. from the project definition to the different views and editors)

We used BasicNewProjectResourceWizard, but I'd guess that if your project
was "Java-like," the Java project wizard might do much of what you
want...You will need to develop the wizards and write a little code (maybe a
utility method) to create the project with, for example, the nature(s) you
need. To configure Eclipse to know about the project type, you need to add
an extension in your plugin.xml -- extend the org.eclipse.ui.newWizards
point.

Chris
Re: Adding a new project type [message #277590 is a reply to message #277568] Mon, 13 December 2004 19:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

Chris Barlock wrote:
>> ... supporting a new project type ...

Very powerful (and still *very easy*) is the following combination:
- BasicNewProjectResourceWizard creates simple project
- Ant build populates project content from template

Please have a look at our site.
Do not hesitate to ask any questions in person.

--
10x,
Sam Mesh
Re: Adding a new project type [message #277625 is a reply to message #277568] Tue, 14 December 2004 10:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yves.monier.temis-group.com

Thanks for the answer!

BasicNewProjectResourceWizard works fine. I also did a try by using my own
wizard (extends Wizard, implements INewWizard), which works fine too and
enables me to add other pages to the wizard if needed.

Best,

Yves

"Chris Barlock" <barlock@usx.ibmx.com> a
Re: Adding a new project type [message #277629 is a reply to message #277590] Tue, 14 December 2004 10:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yves.monier.temis-group.com

Thanks for the answer!

That's right, an Ant build can do many, many things on the project.
How do you use the Ant script? If you use BasicNewProjectResourceWizard you
can't actually control project's creation therefore you can't automatically
call the Ant script when appropriate. Maybe using a custom wizard and
calling Ant just after the project has been created?

Best,

Yves

"Sam Mesh" <smesh@openrules.com> a
Re: Adding a new project type [message #278168 is a reply to message #277629] Thu, 23 December 2004 20:12 Go to previous message
Eclipse UserFriend
Originally posted by: smesh.openrules.com

Yves Monier wrote:
> Maybe using a custom wizard and
> calling Ant just after the project has been created?

You have to wrote custom wizard (very simple) and you can reuse
WizardNewProjectCreationPage, not writing your own. :)

--
10x,
Sam Mesh
Previous Topic:why is PropertySheetViewer not exposed?
Next Topic:How to use JProgressBar in JTable
Goto Forum:
  


Current Time: Wed May 14 23:30:13 EDT 2025

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

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

Back to the top