my editor under 'new' context menu

257 views Asked by At

I am creating plugin over Eclipse. I know how to create new project with default folders underneat. Not when a user selects this default folder and right click, the new context menu should show my_editor entry to be create under this folder.

Thanks, Darshna

1

There are 1 answers

3
Tom Seidel On

You cannot place there your editor, what you can do is to create a "New-Wizard", for details see http://wiki.eclipse.org/FAQ_How_do_I_add_my_wizard_to_the_New,_Import,_or_Export_menu_categories%3F.

how to define a new wizard and http://blog.cypal-solutions.com/2008/07/how-to-create-new-file-wizard.html how to create the wizard ui that creates a new file which can be opened with your editor.

And last but not least you need a shortcut to make it available directly under the "New" Entries, see http://blogs.itemis.de/stundzig/archives/759