public void addSeparator(String separatorText) { add(new Separator(separatorText)); } }
/** Adds a separator to the tail. */ public final void addSeparator() { add(Separator.getInstance()); }
if ((((Separator) child).getText() != null) || (!currentActionList.isEmpty() && !(currentActionList.get(currentActionList.size() - 1) instanceof Separator))) {
final String separatorText = ((Separator) menuItem).getText(); if (separatorText == null) { table.getCellFormatter().setStyleName(i, 0, POPUP_RESOURCES.popup().popupMenuDelimiter());
@Override protected ActionGroup updateActions() { final DefaultActionGroup actionGroup = new DefaultActionGroup(actionManager); Map<String, MachineImpl> machines = appContext.getWorkspace().getRuntime().getMachines(); for (MachineImpl machine : machines.values()) { Separator separ = new Separator(machine.getName() + ":"); actionGroup.add(separ); if (machine.getServerByName(SERVER_TERMINAL_REFERENCE).isPresent()) { NewTerminalMenuAction newTerminalMenuAction = new NewTerminalMenuAction( coreLocalizationConstant, machineResources, machine.getName()); actionGroup.add(newTerminalMenuAction); } if (machine.getServerByName(SERVER_SSH_REFERENCE).isPresent()) { AddSSHMenuAction addSSHMenuAction = new AddSSHMenuAction(machine.getName()); actionGroup.add(addSSHMenuAction); } ShowServersAction showServersAction = new ShowServersAction(machine.getName()); actionGroup.add(showServersAction); ShowMachineOutputAction showMachineOutputAction = new ShowMachineOutputAction(machine.getName()); actionGroup.add(showMachineOutputAction); } return actionGroup; }