Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 22 19:21:12 EDT 2025

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

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

Back to the top