Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » create new file template
create new file template [message #756485] Sun, 13 November 2011 18:47 Go to next message
peter hannon is currently offline peter hannon
Messages: 2
Registered: November 2011
Junior Member
Hello all,

I want to add an item to the new file wizard to create a javascript file that contains a prepared basic javascript object with the same name as the file, in the same way that a new java class file does. How would i go about doing that? I don't necessarily need a full answer, just a point in the right direction thanks.

Many thanks in advance,

Cheers, pete
Re: create new file template [message #756530 is a reply to message #756485] Mon, 14 November 2011 03:42 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 14.11.2011 00:47, peter hannon wrote:
> Hello all,
> I want to add an item to the new file wizard to create a javascript
> file that contains a prepared basic javascript object with the same
> name as the file, in the same way that a new java class file does. How
> would i go about doing that? I don't necessarily need a full answer,
> just a point in the right direction thanks.
You need to create your own wizard that builds upon the existing one.
For a start take a look at
org.eclipse.ui.wizards.newresource.BasicNewFileResourceWizard.

Dani
>
> Many thanks in advance,
> Cheers, pete
Re: create new file template [message #756741 is a reply to message #756530] Mon, 14 November 2011 16:16 Go to previous message
peter hannon is currently offline peter hannon
Messages: 2
Registered: November 2011
Junior Member
Thanks, looked it up, found a great tutorial and got it sorte.
Previous Topic:Need Help Creating a Project
Next Topic:a feature project including sources
Goto Forum:
  


Current Time: Sat Aug 23 13:21:08 EDT 2014

Powered by FUDForum. Page generated in 0.01683 seconds