Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to handle the default menu of an RCP-GMF app
How to handle the default menu of an RCP-GMF app [message #175447] Tue, 04 March 2008 11:37 Go to next message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

Hello,

I have moved form the old GMF to the new GMF Base Platform 2.0.1 and I
discovered a little, but annoying problem. In my old RCP application
everything was just fine. Into the File menu I had the "Open..." voice
(handled with org.eclipse.ui.commands, org.eclipse.bindings and
org.eclipse.ui.actionSets extension points of the plugin.xml). I was happy
:-)

But, when I passed to the 2.0.1 I noticed that always comes up a new voice
menu: "Open file..." which I don't want. Plus, it's not working (if I try to
open one of my models it gives me a NullPointerException). The "original"
"Open..." handled by me (like in the previous version) is still there and is
working fine.

So, my questions are:

1. why is this "Open file..." voice menu appears (I mention that there is
not from the org.eclipse.ui.commands extension point of the plugin.xml)
2. how can I get it out of there?

Thanks,


Floppy
Re: How to handle the default menu of an RCP-GMF app [message #176360 is a reply to message #175447] Fri, 07 March 2008 08:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

Anybody? Any idea?


"Florin Banica" <fbanica@soluta.net> wrote in message
news:fqjcaq$mn5$1@build.eclipse.org...
> Hello,
>
> I have moved form the old GMF to the new GMF Base Platform 2.0.1 and I
> discovered a little, but annoying problem. In my old RCP application
> everything was just fine. Into the File menu I had the "Open..." voice
> (handled with org.eclipse.ui.commands, org.eclipse.bindings and
> org.eclipse.ui.actionSets extension points of the plugin.xml). I was happy
> :-)
>
> But, when I passed to the 2.0.1 I noticed that always comes up a new voice
> menu: "Open file..." which I don't want. Plus, it's not working (if I try
> to open one of my models it gives me a NullPointerException). The
> "original" "Open..." handled by me (like in the previous version) is still
> there and is working fine.
>
> So, my questions are:
>
> 1. why is this "Open file..." voice menu appears (I mention that there is
> not from the org.eclipse.ui.commands extension point of the plugin.xml)
> 2. how can I get it out of there?
>
> Thanks,
>
>
> Floppy
>
Re: How to handle the default menu of an RCP-GMF app [message #176384 is a reply to message #176360] Fri, 07 March 2008 10:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fbanica.soluta.net

It seems to me that it's the same "Open File..." voice menu from the Eclipse
itself (File/Open File). The problem is that I don't want to see it in my
RCP application. In the previous versions of Eclipse/GMF this didn't happen.

Still nobody has any idea?


"Florin Banica" <fbanica@soluta.net> wrote in message
news:fqqtg0$fge$2@build.eclipse.org...
> Anybody? Any idea?
>
>
> "Florin Banica" <fbanica@soluta.net> wrote in message
> news:fqjcaq$mn5$1@build.eclipse.org...
>> Hello,
>>
>> I have moved form the old GMF to the new GMF Base Platform 2.0.1 and I
>> discovered a little, but annoying problem. In my old RCP application
>> everything was just fine. Into the File menu I had the "Open..." voice
>> (handled with org.eclipse.ui.commands, org.eclipse.bindings and
>> org.eclipse.ui.actionSets extension points of the plugin.xml). I was
>> happy :-)
>>
>> But, when I passed to the 2.0.1 I noticed that always comes up a new
>> voice menu: "Open file..." which I don't want. Plus, it's not working (if
>> I try to open one of my models it gives me a NullPointerException). The
>> "original" "Open..." handled by me (like in the previous version) is
>> still there and is working fine.
>>
>> So, my questions are:
>>
>> 1. why is this "Open file..." voice menu appears (I mention that there is
>> not from the org.eclipse.ui.commands extension point of the plugin.xml)
>> 2. how can I get it out of there?
>>
>> Thanks,
>>
>>
>> Floppy
>>
>
>
Re: How to handle the default menu of an RCP-GMF app [message #176948 is a reply to message #176384] Wed, 12 March 2008 18:17 Go to previous message
Eclipse UserFriend
Originally posted by: jan.koehnlein.web.de

I doubt that you can generate that from the models. Have a look at

http://www.vogella.de/articles/RichClientPlatform/article.ht ml

Usually, these menu actions are created in the ActionBarAdvisor.

Regards
Jan

Florin Banica wrote:
> It seems to me that it's the same "Open File..." voice menu from the Eclipse
> itself (File/Open File). The problem is that I don't want to see it in my
> RCP application. In the previous versions of Eclipse/GMF this didn't happen.
>
> Still nobody has any idea?
>
>
> "Florin Banica" <fbanica@soluta.net> wrote in message
> news:fqqtg0$fge$2@build.eclipse.org...
>> Anybody? Any idea?
>>
>>
>> "Florin Banica" <fbanica@soluta.net> wrote in message
>> news:fqjcaq$mn5$1@build.eclipse.org...
>>> Hello,
>>>
>>> I have moved form the old GMF to the new GMF Base Platform 2.0.1 and I
>>> discovered a little, but annoying problem. In my old RCP application
>>> everything was just fine. Into the File menu I had the "Open..." voice
>>> (handled with org.eclipse.ui.commands, org.eclipse.bindings and
>>> org.eclipse.ui.actionSets extension points of the plugin.xml). I was
>>> happy :-)
>>>
>>> But, when I passed to the 2.0.1 I noticed that always comes up a new
>>> voice menu: "Open file..." which I don't want. Plus, it's not working (if
>>> I try to open one of my models it gives me a NullPointerException). The
>>> "original" "Open..." handled by me (like in the previous version) is
>>> still there and is working fine.
>>>
>>> So, my questions are:
>>>
>>> 1. why is this "Open file..." voice menu appears (I mention that there is
>>> not from the org.eclipse.ui.commands extension point of the plugin.xml)
>>> 2. how can I get it out of there?
>>>
>>> Thanks,
>>>
>>>
>>> Floppy
>>>
>>
>
>
Previous Topic:Code architecture
Next Topic:Setting name of EditorPart
Goto Forum:
  


Current Time: Fri Mar 29 06:11:02 GMT 2024

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

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

Back to the top