Default menues for an RCP [message #328341] |
Thu, 22 May 2008 09:04 |
Eclipse User |
|
|
|
Originally posted by: fbanica.soluta.net
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
|
|
|
Re: Default menues for an RCP [message #328361 is a reply to message #328341] |
Fri, 23 May 2008 08:37 |
Eclipse User |
|
|
|
Originally posted by: fbanica.soluta.net
Nobody? No help?
"Florin Banica" <fbanica@soluta.net> wrote in message
news:g13cvu$epv$1@build.eclipse.org...
> 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
>
>
|
|
|
Re: Default menues for an RCP [message #328365 is a reply to message #328361] |
Fri, 23 May 2008 11:11 |
|
On Fri, 23 May 2008 11:37:17 +0300, "Florin Banica"
<fbanica@soluta.net> wrote:
>Nobody? No help?
>
>"Florin Banica" <fbanica@soluta.net> wrote in message
>news:g13cvu$epv$1@build.eclipse.org...
>> 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
>>
>>
>
The menu contributions come from the related plug-ins. Once you get
rid of the plug-ins, i.e. don't include them in your RCP, the menu
items should go away.
To find your implementation you should look for a plug-in called
Plug-In Spy (available in 3.4 by default). Using Shift-Alt-F1 while
hovering over your GUI components you will see a lot of information
about them. So open your dialog and Shift-Alt-F1.
And I think you can start looking at org.eclipse.update. Be aware that
there is a lot of code in the update packages. Modifying this code
will probably need at least a few weeks (we did this once for a
customer and worked for about half a year on the code, but there where
requirements with no solutions available in update manager).
Achim
--
Achim Lörke
Eclipse-Stammtisch in the Braunschweig, Germany area:
http://www.bredex.de/de/career/eclipse.html
Achim Lörke
|
|
|
Re: Default menues for an RCP [message #328385 is a reply to message #328341] |
Fri, 23 May 2008 15:44 |
Eclipse User |
|
|
|
Originally posted by: Didier.Bolf.nospam.com
hello Florin
you could use activities, see
http://help.eclipse.org/help33/topic/org.eclipse.platform.do c.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\..*PreferenceP age ">
</activityPatternBinding>
<activityPatternBinding
activityId="com.yourcompany.eclipseIdePrefs"
pattern=" org\.eclipse\.ui\.ide/org\.eclipse\.ui\.preferencePages\.Wor kbench ">
</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@soluta.net> wrote in message
news:g13cvu$epv$1@build.eclipse.org...
> 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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03102 seconds