ViewPart Menu [message #756567] |
Mon, 14 November 2011 11:18 |
|
Hi guys,
I am developing a RCP applications, and I have been unable to find how can I change Viewpart's tab menu (the one that have Detached, Move, Close... actions). Could anyone help me?
On the other hand, I want to know if there is a way to translate all these commands, I have tried to override org.eclipse.ui.window.maximizePart without success...
Thank you in advance
|
|
|
|
Re: ViewPart Menu [message #756719 is a reply to message #756617] |
Mon, 14 November 2011 19:17 |
|
Here is a code that will allow you to hide that menu; but to change it as Paul is said it is not possible.
BTW, what is your use case for changing that menu?
Display display = PlatformUI.createDisplay();
display.addFilter(SWT.MenuDetect, new Listener() {
@Override
public void handleEvent(Event aEvent) {
if (aEvent.widget != null) {
if (aEvent.widget.getClass() == CTabFolder.class) {
aEvent.type = SWT.None;
}
}
}
});
Time is what you make of it.
|
|
|
Re: ViewPart Menu [message #757090 is a reply to message #756719] |
Wed, 16 November 2011 13:22 |
|
Hi again and thanxs for your responses,
the thing is our application is wrotten in Spanish, so I wanted to have this menu translated in that language.
However I think it is not a bad option to hide, so I will put all needed options in the viewpart menu.
Thanks for your help!
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03954 seconds