public GroupContainerDescription buildMenuDescription(WorkbenchContext workbenchContext) { WorkbenchContext wrappedContext = buildLocalWorkbenchContext(workbenchContext); RootMenuDescription desc = new RootMenuDescription(); MenuGroupDescription newGroup = new MenuGroupDescription(); newGroup.add(getAddSessionAction(wrappedContext)); newGroup.add(getAddBrokerAction(wrappedContext)); MenuDescription newMenu = new MenuDescription( resourceRepository().getString("NEW_MENU"), resourceRepository().getString("NEW_MENU"), resourceRepository().getMnemonic("NEW_MENU"), EMPTY_ICON); newMenu.add(newGroup); MenuGroupDescription newItemGroup = new MenuGroupDescription(); newItemGroup.add(newMenu); desc.add(newItemGroup); MenuGroupDescription closeGroup = new MenuGroupDescription(); closeGroup.add(getCloseAction(workbenchContext)); desc.add(closeGroup); MenuGroupDescription saveGroup = new MenuGroupDescription(); saveGroup.add(getSaveAction(workbenchContext)); saveGroup.add(getSaveAsAction(workbenchContext)); desc.add(saveGroup); desc.add(buildHelpMenuGroup(wrappedContext)); return desc; }
protected MenuGroupDescription buildDescriptorTypeMenuGroupDescription( WorkbenchContext workbenchContext) { MenuGroupDescription typeDesc = new MenuGroupDescription(); typeDesc.add(this.getEisRootDescriptorAction(workbenchContext)); typeDesc.add(this.getEisCompositeDescriptorAction(workbenchContext)); return typeDesc; }
public GroupContainerDescription buildMenuDescription(WorkbenchContext workbenchContext) { WorkbenchContext localContext = buildLocalWorkbenchContext(workbenchContext); RootMenuDescription menuDesc = new RootMenuDescription(); MenuGroupDescription groupDesc = new MenuGroupDescription(); groupDesc.add(getReimportSchemaAction(localContext)); groupDesc.add(getSchemaPropertiesAction(localContext)); groupDesc.add(getMappingsPlugin().getRemoveAction(localContext)); menuDesc.add(groupDesc); menuDesc.add(buildOracleHelpMenuGroup(localContext)); return menuDesc; }
protected MenuGroupDescription buildOracleHelpMenuGroup(WorkbenchContext context) { MenuGroupDescription helpGroup = new MenuGroupDescription(); helpGroup.add(this.getMappingsPlugin().getHelpAction(context)); return helpGroup; }