[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Default menues for an RCP

hello Florin

you could use activities, see

http://help.eclipse.org/help33/topic/org.eclipse.platform.doc.isv/guide/workbench_advext_activities.htm


for example add an activity com.yourcompany.eclipseIdeActions in your plugin

    <activity
           id="com.yourcompany.eclipseIdeActions"
           name="Editors Actions">
     </activity>

and add an Activity pattern binding :

 <activityPatternBinding
           activityId="com.yourcompany.eclipseIdeActions"
           pattern="org\.eclipse\.ui\.editors/org\.eclipse\.ui\..*">
  </activityPatternBinding>

some other patterns I use :

    <activityPatternBinding
           activityId="com.yourcompany.eclipseUpdatePrefs"
           pattern="org\.eclipse\.update\.ui/org\.eclipse\.update\..*PreferencePage">
     </activityPatternBinding>

   <activityPatternBinding
           activityId="com.yourcompany.eclipseIdePrefs"
           pattern="org\.eclipse\.ui\.ide/org\.eclipse\.ui\.preferencePages\.Workbench">
     </activityPatternBinding>

   <activityPatternBinding
           activityId="com.yourcompany.eclipseIdeActions"
           pattern="org\.eclipse\.ui\.editors/org\.eclipse\.ui\..*">
     </activityPatternBinding>

etc...

then define your own Activity and add a defaultEnablement for it

I use activities to filter preference page and actions

Didier



"Florin Banica" <fbanica@xxxxxxxxxx> wrote in message news:g13cvu$epv$1@xxxxxxxxxxxxxxxxxxxx
Hi all,

I did an RCP app, but I'm not happy with some menu item which appears in my
app. For example, the "Open File..." menu in the "File", which seems to be
"inherited from the Eclipse workbench...


So, my questions are: how to get rid of the "Open
File..." into the "File" menu and how to find the "implementation" of the
"Software updates"
sub-menu in the "Help" menu...


Thanks,



Floppy