/** * {@inheritDoc} */ @Override public void displayModule(String workspaceName, Module module) { cancelCurrentActionTimer(); super.displayModule(workspaceName, module); }
/** * {@inheritDoc} */ @Override public boolean stop() { if (super.stop()) { cancelCurrentActionTimer(); timerService.shutdown(); if (controllerFrame != null) { controllerFrame.dispose(); } System.exit(0); return true; } return false; }
final Dimension dimension, final boolean reuseCurrent, final boolean modal, final boolean triggerOnEnter) { cancelCurrentActionTimer(); displayModalDialog(mainView, context, reuseCurrent); SwingUtilities.invokeLater(new Runnable() {
/** * {@inheritDoc} */ @SuppressWarnings("unchecked") @Override public void actionPerformed(ActionEvent e) { if (actionHandler != null) { IValueConnector viewConnector = null; if (view != null) { viewConnector = view.getConnector(); } Map<String, Object> actionContext = createActionContext(actionHandler, view, viewConnector, e.getActionCommand(), (JComponent) e.getSource()); actionContext.put(ActionContextConstants.UI_ACTION, this); actionContext.put(ActionContextConstants.UI_EVENT, e); Map<String, Object> staticContext = (Map<String, Object>) getValue(IAction.STATIC_CONTEXT_KEY); if (staticContext != null) { actionContext.putAll(staticContext); } if (actionHandler instanceof DefaultSwingController) { ((DefaultSwingController) actionHandler).cancelCurrentActionTimer(); } actionHandler.execute(action, actionContext); } } }
protected void displayWorkspace(String workspaceName, boolean bypassModuleBoundaryActions) { if (!ObjectUtils.equals(workspaceName, getSelectedWorkspaceName())) { cancelCurrentActionTimer(); super.displayWorkspace(workspaceName, bypassModuleBoundaryActions); if (workspaceName != null) {