Main menu disappear [message #1795231] |
Tue, 18 September 2018 16:38 |
Eclipse User |
|
|
|
Hi to all i am writing a mixed rcp application.
with the following tutorial I am able to open Pydev Perspective using 3.x commands
https://dirksmetric.wordpress.com/2012/08/01/tutorial-eclipse-rcp-e4-with-3-x-views-like-project-explorer-properties-etc/
...
OpenPerspective("org.python.pydev.ui.PythonPerspective");
...
public static void OpenPerspective(String idPerspective) {
IPerspectiveDescriptor[] perspectives = PlatformUI.getWorkbench().getPerspectiveRegistry().getPerspectives();
IPerspectiveDescriptor per = null;
IWorkbenchPage page = getActivePage();
for (IPerspectiveDescriptor descriptor : perspectives) {
if (descriptor.getId().equals(idPerspective)) {
per = descriptor;
}
}
if (page != null) {
page.setPerspective(per);
} else {
}
}
private static IWorkbenchPage getActivePage() {
IWorkbenchPage result = null;
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (window != null) {
result = window.getActivePage();
}
return result;
}
I am having a problem when i add a menu in Application.e4xmi, i ran the product and all is ok. In the second run the main toolbar disappear.
I find that is related with the following bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=388808
but i can't make work the workaround.
Anybody have a good example, step by step how make work the workaround. Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.19377 seconds