Skip to main content


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 23:47 Go to next message
peter hannon is currently offline peter hannonFriend
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 08:42 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
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 21:16 Go to previous message
peter hannon is currently offline peter hannonFriend
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: Thu Apr 25 15:46:30 GMT 2024

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

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

Back to the top