lunedì 17 settembre 2012

Eclipse Wizards

http://stackoverflow.com/questions/3710508/modify-eclipse-new-file-wizard


I would like to modify an already existing wizard in eclipse. My plan is to copy the existing wizard plugin to a new plugin an make the changes there. But how do I enable this modified wizard in eclipse?
I know how to create a local P2 update site but how do I make sure that the original wizard is replaced with the updated version?
share|improve this question

60% accept rate




This isn't an easy question, as Eclipse does not support changing existing wizards (and on global, Eclipse is built for adding features instead of replacing them).
Some ideas you could consider: you can define a new wizard, that can reuse existing pages, and simply add a new wizard, that does your trick, while the original one would stay.
How to install it: if you have a new wizard in a new plug-in, simply use the export wizard (Right click/Export), and there select the Deployable plug-ins and fragments wizard from the Plug-in development category. On the next page select the install into host feature, and the plug-in will be installed.
If you insist on replacing the plug-in (that is not the nice way), you could copy the entire existing plug-in, increase its version number and make your changes, then install this plug-in from an update site (or using the Eclipse wizard). Caveats: if the original plug-in is updated, yours have to be as well, and if both plug-ins have the same version, quite nice conflicts can be seen, that are quite hard to handle.
share|improve this answer
Thanks for the input! Currently I just create a new plugin which adds a new New File Wizard. But it could be nice to modify the "parent" wizard (which shows all the possible New File wizards) to only show selected number of wizards specified in the code - but I guess this gives the same problem. Alternatively I am considering this: wiki.eclipse.org/Steps_to_use_Fragments_to_patch_a_plug-in – u123 Sep 15 '10 at 15:58
Fragments only work, if the original plug-in was developed in a way to support fragments (see the second part where the host's manifest should be modified in the wiki). If you can modify the manifest, you have other ways to make differences in the code. E.g. add an option to the existing wizard to add new pages into it (e.g. using extension point, etc.) – Zoltán Ujhelyi Sep 17 '10 at 7:49


Which plugin is this?

Please forgive such a simple question, I've been away from RCP for about a year:
What shortcut/hot-key combination can I use in Eclipse to discover the plugin that contributed/owns the current view?
I remember it bringing up the plugin.xml of the plugin currently under the mouse.
I should be very grateful for your clues ..
The Plug-in Spy is mapped to Shift+Alt+F1 (Shift+Option+F1 on Mac) by default. It shows information for whatever is currently selected.
share|improve this answer


_________________________________________________________________________________

How do I update this plugin?

L'elenco dei plugin installati e relative versioni dovrebbero essere elencati in artifacts.xml della cartella di installazione di Eclipse.
Il plugin per il wizard del new java project dovrebbe essere:

    <artifact classifier='osgi.bundle' id='org.eclipse.jdt.ui' version='3.8.0.v20120524-1551'>
      <properties size='1'>
        <property name='download.size' value='10329219'/>
      </properties>
    </artifact>
che nella cartella plugin dovrebbe portare a org.eclipse.jdt.ui_3.8.0.v20120524-1551.jar


http://eclipse.dzone.com/news/effective-eclipse-custom-templ


http://bquot.com/wk

Nessun commento: