Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Popup Menu in Tabfolder
Popup Menu in Tabfolder [message #765049] Tue, 13 December 2011 05:22 Go to next message
jps90 Mising name is currently offline jps90 Mising name
Messages: 11
Registered: December 2011
Junior Member
Hi,
i have an RCP Application with a CTabFolder in it.
When I make a right-click on it a standard context menu appears. How can I disable this function or make the items of the menu in german?
I would prefer to make my own context menu for the TabFolder...
Re: Popup Menu in Tabfolder [message #765105 is a reply to message #765049] Tue, 13 December 2011 07:38 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can't make your own menu, that's provided by the presentation. But you can provide German translations for them (and there should be one already). See how http://www.eclipse.org/babel does it.

PW


Re: Popup Menu in Tabfolder [message #765128 is a reply to message #765105] Tue, 13 December 2011 08:23 Go to previous messageGo to next message
jps90 Mising name is currently offline jps90 Mising name
Messages: 11
Registered: December 2011
Junior Member
Thanks for the reply. The translation worked Smile
But is there a way to remove the context menu form the tabfolder?
Re: Popup Menu in Tabfolder [message #765142 is a reply to message #765128] Tue, 13 December 2011 08:53 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5291
Registered: July 2009
Senior Member
We have written our own presentation which uses our custom menu entries.
Just search in the presentation code for the position where ISystemMenu
is implemented.

Tom

Am 13.12.11 14:23, schrieb jps90:
> Thanks for the reply. The translation worked :)
> But is there a way to remove the context menu form the tabfolder?
Re: Popup Menu in Tabfolder [message #765162 is a reply to message #765142] Tue, 13 December 2011 09:38 Go to previous messageGo to next message
jps90 Mising name is currently offline jps90 Mising name
Messages: 11
Registered: December 2011
Junior Member
I found the class StandardViewSystemMenu which looks like the implementation of the context menu.
But I don't know I have to do to change it...
Thanks for your replies again Smile
Re: Popup Menu in Tabfolder [message #765170 is a reply to message #765162] Tue, 13 December 2011 09:49 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5291
Registered: July 2009
Senior Member
You need to create your own presentation. I googled for it and found
http://book.javanb.com/eclipse-rich-client-platform-designing-coding-and-packaging-java-applications-oct-2005/ch19lev1sec3.html

I'd suggest you start copy WorkbenchPresentationFactoryClassic to your
own package and see what classes you are still missing.

Tom

Am 13.12.11 15:39, schrieb jps90:
> I found the class StandardViewSystemMenu which looks like the
> implementation of the context menu.
> But I don't know I have to do to change it...
> Thanks for your replies again :)
Re: Popup Menu in Tabfolder [message #765314 is a reply to message #765128] Tue, 13 December 2011 15:25 Go to previous messageGo to next message
Catalin Gerea is currently offline Catalin Gerea
Messages: 89
Registered: July 2009
Location: Bucharest, Romania
Member

Hello
A workaround to remove the menu is here: http://www.eclipse.org/forums/index.php/mv/msg/262045/756719/#msg_756719.

But as Tom suggested creating your own presentation is the correct way.


Time is what you make of it.
Re: Popup Menu in Tabfolder [message #765556 is a reply to message #765314] Wed, 14 December 2011 04:45 Go to previous message
jps90 Mising name is currently offline jps90 Mising name
Messages: 11
Registered: December 2011
Junior Member
Hi,
thanks fpr the clue with the presentation. I think that is what I was searching for.
So I tried to create my own presentation. It looks like it is working because I can use it in the org.ui.example.presentation project. But how can I include it into my project?
I made a presentation.ini file with the content: org.eclipse.ui/presentationFactoryId=my.presentation.factory and added it to the Binary Build.

In my plugin.xml I have:
<extension point="org.eclipse.ui.presentationFactories">
   <factory
         class="de.application.PresentationFactory"
         id="my.presentation.factory"
         name="name">
   </factory>
</extension>

and
<property
      name="preferenceCustomization"
      value="presentation.ini">
</property>


I think it should work with this configuration!? But nothing happens Sad


Found the solution. I just made a clear workspace and clear configuration area in the launch configuration.

Thanks a lot for your help Smile

[Updated on: Wed, 14 December 2011 07:37]

Report message to a moderator

Previous Topic:RCP View toolbar automatically shut off the line?
Next Topic:Retrieving of selection
Goto Forum:
  


Current Time: Wed Aug 27 09:06:22 EDT 2014

Powered by FUDForum. Page generated in 0.02624 seconds