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: 49
Registered: June 2012
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


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) {
		} 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

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: Tue Apr 20 11:46:31 GMT 2021

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

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

Back to the top