Community
Participate
Working Groups
Build ID: M20080911-1700 Steps To Reproduce: Build ID: M20080911-1700 Steps To Reproduce: Hi, I suggest to use a menu extention and the command "org.eclipse.ui.file.exit" for File -> Exit rather then the Exit Action in the "RCP application with a view" template. I believe the changes to the template is trivial, if desired I can try to provide them as a patch (if you point me to CVS repository for the template). More information: I believe this is not the same as https://bugs.eclipse.org/bugs/show_bug.cgi?id=253105
dev.eclipse.org /cvsroot/eclipse pde/ui/org.eclipse.pde.ui.templates How about that?
Created attachment 126228 [details] patchViewRCPTemplate.txt
Created attachment 126229 [details] patchApplicationActionBarAdvisor.txt
Hi Chris, Attached the following patches: - org.eclipse.pde.internal.ui.templates.rcp.ViewRCPTemplate: patchViewRCPTemplate.txt Adds the menu contribution - ApplicationActionBarAdvisor.java from templates_3.3/viewRCP/java patchApplicationActionBarAdvisor.txt - Removes the action I believe it is also necessary to make a copy of templates_3.3 to templates_3.5 and to patch PDETemplateSection method getDirectoryCandidates() to consider the new template directory. This is new first attempt to provide a patch to Eclipse so if you see issues this my patches please let me know. Best regards, Lars
Update: I also believe it would be preferable to use the perspective extension for adding the view. I believe this is also in line with http://rcpquickstart.com/2008/12/11/perspective-layouts-programmatic-vs-declarative/ If you indicate that this change would be desired I can update the patch.
Changing Version tag to something more believable.
Looks like your considering changing the template. Fantastic! Let me know if I should change anything in the patches.
done. > 20090922 Thanks for your contribution!
Verified.