Date : March 29 2020, 07:55 AM
wish of those help I need to have total control of the perspective menu. , There are 3 potential options to get rid of Other:
|
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further Once you have both perspectives opened for the first time they should be in the list of perspectives to the upper right so you shouldn't need to use that menu anymore. You could switch with the buttons or the keyboard shortcut (Ctrl-F8 is default) between the perspectives in the list. To customize the list: Menu Window > Customize Perspective, Tab Shortcuts, Dropdown Submenus: Open Perspective.
|
Date : March 29 2020, 07:55 AM
With these it helps Try using the programmatic solution in your ApplicationActionBarAdvisor class as following : public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
private IWorkbenchAction resetPerspectiveAction;
@Override
protected void makeActions(IWorkbenchWindow window) {
// ...
// create and register the actions
resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE.create(window);
register(resetPerspectiveAction);
// ...
}
@Override
protected void fillMenuBar(IMenuManager menuBar) {
// ...
// create and fill the window menu
MenuManager windowMenu = new MenuManager("&Window", WorkbenchActionConstants.M_WINDOW);
menuBar.add(windowMenu);
windowMenu.add(resetPerspectiveAction);
// ...
}
}
|
Tag : java , By : Mistere
Date : March 29 2020, 07:55 AM
may help you . I resolved the issue. Following is the code which hide navigate menu and project menu from my perspective. IWorkbenchWindow window = Workbench.getInstance()
.getActiveWorkbenchWindow();
if (window instanceof WorkbenchWindow) {
MenuManager menuManager = ((WorkbenchWindow) window)
.getMenuManager();
Menu menu = menuManager.getMenu();
System.out.println("Menu : " + menu);
String[] itemIds = { "navigate","Project" };
for (String itemId : itemIds) {
IContributionItem item = menuManager.find(itemId);
if (item != null) {
item.setVisible(false);
menuManager.update();
}
}
}
|
Activate Java perspective from Debug perspective in eclipse
Tag : java , By : PeteFilicetti
Date : March 29 2020, 07:55 AM
|