Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Help adding menu
Help adding menu [message #628859] Fri, 24 September 2010 13:32 Go to next message
123star  is currently offline 123star Friend
Messages: 70
Registered: June 2010
Member
Hi,
I created a new main menu entry with the actionSets plugin:
it works in the Java perspective, but not in Papyrus one.
So I used the plugin perspectiveExtensions to add the menu to Papyrus view but it still not showing.

What can be wrong?

Thanks in advance, 123star
Re: Help adding menu [message #630257 is a reply to message #628859] Fri, 01 October 2010 10:39 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
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 #630448 is a reply to message #630257] Sat, 02 October 2010 16:30 Go to previous messageGo to next message
123star  is currently offline 123star Friend
Messages: 70
Registered: June 2010
Member
Thank you Patrick,

but I can't see how to use this extension point:

1. Do I have to remove the org.eclipse.ui.perspectiveExtensions and replace it with org.eclipse.papyrus.ui.perspectiveconfiguration,
or use both of them?

2.I have created an ActionSet containing a menu with two actions, I want the menu to show in the Main Menubar, I tried to configure the plugin in this way but had no results:

<extension
point="org.eclipse.papyrus.ui.perspectiveconfiguration">
<configuration
perspectiveID="org.eclipse.papyrus.core.perspective">
<menu
menuID="CHESSPlugin.menu">
</menu>
</configuration>

</extension>


CHESSPlugin.menu is the id of the menu in the action set.
I tried to find some documentation, but didn't find anything...

Thanks in advance, 123star






Re: Help adding menu [message #630629 is a reply to message #630448] Mon, 04 October 2010 12:43 Go to previous message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
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
Previous Topic:Download source of official page and extend composite diagrams
Next Topic:Reverse Embedded Software
Goto Forum:
  


Current Time: Thu Apr 25 07:08:34 GMT 2024

Powered by FUDForum. Page generated in 0.03756 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top