|
Re: Help adding menu [message #630257 is a reply to message #628859] |
Fri, 01 October 2010 10:39 |
|
Hi 123star,
In papyrus, we have added a plugin used to filter actions and menu.
If you want to see this menu, you have to explicitly add in a extension point "org.eclipse.papyrus.ui.perspectiveconfiguration"
an example can be seen in the plugin http://dev.eclipse.org/svnroot/modeling/org.eclipse.mdt.papy rus/branches/0.7.X/plugins/uml/org.eclipse.papyrus.uml.ui.pe rspectiveconfiguration
I paste the plugin.xml of this plugin
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.papyrus.ui.perspectiveconfiguration">
<configuration
perspectiveID="org.eclipse.papyrus.core.perspective">
<menu
menuID="file">
</menu>
<menu
menuID="edit">
</menu>
<menu
menuID="org.eclipse.papyrus.ui.menu">
</menu>
<menu
menuID="window">
</menu>
<menu
menuID="help">
</menu>
<toolbar
toolbarID="org.eclipse.papyrus.diagram.ui.toolbar">
</toolbar>
<preferencePage
preferencepageID="org.eclipse.papyrus.preferences.generalcategory">
</preferencePage>
<category
categoryID="org.eclipse.ui.category.file">
</category>
<category
categoryID="org.eclipse.ui.category.edit">
</category>
<category
categoryID="org.eclipse.ui.category.help">
</category>
<category
categoryID="org.eclipse.papyrus.editor.category">
</category>
</configuration>
</extension>
</plugin>
Patrick
|
|
|
|
Re: Help adding menu [message #630629 is a reply to message #630448] |
Mon, 04 October 2010 12:43 |
|
It filters by id. So I think is is better to use org.eclipse.ui.menus and org.eclipse.ui.commands.
Can you see your menu in the "customize perspective" tool box
(window-> Customizeperspective)
Patrick
|
|
|
Powered by
FUDForum. Page generated in 0.03638 seconds