| path in editor menus [message #336078] | 
Tue, 19 May 2009 21:24   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
In Extension Points Reference Menus for Editor Munus, Toolbars and  
Actions, I find the following description for munu: 
 
<!ELEMENT menu (separator* , groupMarker*)> 
 
<!ATTLIST menu 
 
id    CDATA #REQUIRED 
 
label CDATA #REQUIRED 
 
path  CDATA #IMPLIED> 
 
 
This element is used to defined a new menu. 
 
 
 
id - a unique identifier that can be used to reference this menu.  
label - a translatable name used by the Workbench for this new menu. The  
name should include mnemonic information.  
path - the location of the new menu starting from the root of the menu.  
Each token in the path must refer to an existing menu, except the last  
token which should represent a named group in the last menu in the path.  
If omitted, the new menu will be added to the additions named group of the  
menu.  
 
Can some explain path in details based on the following example: 
 
         <menu 
               label="%_UI_ValidationMenu_label" 
               path="org.eclipse.example.loyaltyMenuID/additions" 
               id="org.eclipse.emf.validationMenuID"> 
            <separator name="additions"/> 
         </menu> 
 
So org.eclipse.example.loyaltyMenuId is an existing menu, where can I find  
it? Thanks. 
Will
 |  
 |  
  | 
 | 
 | 
 | 
 | 
 | 
 | 
 | 
Powered by 
FUDForum. Page generated in 0.04947 seconds