Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Main menu disappear(menu disappear after re run the product)
Main menu disappear [message #1795231] Tue, 18 September 2018 20:38
Esteban Avila is currently offline Esteban AvilaFriend
Messages: 44
Registered: June 2012
Member
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
Previous Topic:two windows single workspace
Next Topic:Reset Perspective in E4 Application
Goto Forum:
  


Current Time: Wed Dec 11 20:31:02 GMT 2019

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

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

Back to the top