Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have found that it is very hard to take existing wizards like the jsp wizard, disect it, understand it and then modify it because most of these wizards are not designed to be extended and you will waste time trying to figure out detailed internals of the wizard. What I would suggest, is following the approach outlined here. <a href="http://www.eclipse-tips.com/how-to-guides/10-creating-new-file-wizard" rel="nofollow">Creating New File wizard</a></p> <p>If your your new jsp file is a template and does not change based on wizard in put you can follow the same approach outlined in the link to create a text file in your bundle/plugin and load/copy it to the new resources. This wizard lets you define a constraint on file extension (in your case .jsp) and it provides pages for letting the user select the location of the file. If the initial jsp page creation is dynamic based on user input it will require some additional code on your part but going with a basic new file wizard in eclipse that is designed to be extended and then setting the file extension and setting initial file contents is the approach I would suggest instead of trying to disect and waste time in a complex wizard. In this case all you would need to do is customize the performFinish() method on the wizard to add the initial file contents. Then if you want this to show up as a wizard in file -> you use the org.eclipse.ui.wizards extension to contribute to that. If you want to have the wizard selection in its own folder you use the same extension point to create a category with an id and label and then assign the wizard to be the id of the category you created. </p> <p>Hope that helps! - Duncan </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload