@Override public int open() { addHandlerAndKeyBindingSupport(); return super.open(); }
public int open() { prefListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { handlePreferenceChange(event); } }; prefs.addPropertyChangeListener(prefListener); return super.open(); }
public int open() { addHandlerAndKeyBindingSupport(); return super.open(); }
@Override public int open() { addHandlerAndKeyBindingSupport(); return super.open(); }
/** * Utility method to displays the original/legacy QuickAccess dialog. * * @param window * the active workbench window * @param command * the command which invokes the open of the dialog */ private static void displayQuickAccessDialog(IWorkbenchWindow window, Command command) { PopupDialog popupDialog = new QuickAccessDialog(window, command); popupDialog.open(); }
popupDialog.open();
popupDialog.open();
popupDialog.open();
@Override public int open() { if (!isOpen) { isOpen = true; int rc = super.open(); if (!shouldOpen()) { close(); } return rc; } return 0; }
popupDialog.open();
perspDescPopupDialog.open();
/** * Opens this ContentProposalPopup. This method is extended in order to * add the control listener when the popup is opened and to invoke the * secondary popup if applicable. * * @return the return code * * @see org.eclipse.jface.window.Window#open() */ @Override public int open() { int value = super.open(); if (popupCloser == null) { popupCloser = new PopupCloserListener(); } popupCloser.installListeners(); IContentProposal p = getSelectedProposal(); if (p != null) { showProposalDescription(); } return value; }
/** * Opens this ContentProposalPopup. This method is extended in order to * add the control listener when the popup is opened and to invoke the * secondary popup if applicable. * * @return the return code * * @see org.eclipse.jface.window.Window#open() */ @Override public int open() { int value = super.open(); if (popupCloser == null) { popupCloser = new PopupCloserListener(); } popupCloser.installListeners(); IContentProposal p = getSelectedProposal(); if (p != null) { showProposalDescription(); } return value; }
/** * Opens this ContentProposalPopup. This method is extended in order to * add the control listener when the popup is opened and to invoke the * secondary popup if applicable. * * @return the return code * * @see org.eclipse.jface.window.Window#open() */ @Override public int open() { int value = super.open(); if (popupCloser == null) { popupCloser = new PopupCloserListener(); } popupCloser.installListeners(); IContentProposal p = getSelectedProposal(); if (p != null) { showProposalDescription(); } // RAP [if] Use CANCEL_KEYS instead of doit = false updateCancelKeys( true, CANCEL_KEYS ); // ENDRAP return value; }
return super.open();
/** * Opens this dialog. This method can be called multiple times on the same dialog. This only * opens the dialog if there is no remembered state; if there is remembered state, then it tries * to open the preference page instead. * * @return The return code from this dialog. */ public int open() { // If the dialog is already open, dispose the shell and recreate it. Shell shell = getShell(); if (shell != null) { close(false, false); return Window.OK; } create(); // Configure the size and location. Point size = configureSize(); configureLocation(size); // Call the super method. return super.open(); }
@Override public int open() { IWorkbench workbench = PlatformUI.getWorkbench(); String commandId = getCommandId(); if (commandId != null) { IHandler fCloseHandler = new AbstractHandler() { @Override public Object execute(ExecutionEvent event) throws ExecutionException { persist(); close(); return null; } }; fHandlerService = workbench.getAdapter(IHandlerService.class); fActivation = fHandlerService.activateHandler(commandId, fCloseHandler); } String infoText = getInfoText(); if (infoText != null) { setInfoText(infoText); } return super.open(); }
return super.open();
/** * Opens this dialog. This method can be called multiple times on the same dialog. This only * opens the dialog if there is no remembered state; if there is remembered state, then it tries * to open the preference page instead. * * @return The return code from this dialog. */ @Override public int open() { // If the dialog is already open, dispose the shell and recreate it. Shell shell = getShell(); if (shell != null) { close(false, false); return Window.OK; } create(); // Bug 412001. Stop ShellActivationListener from creating a context for this. getShell().setData("org.eclipse.e4.ui.ignoreDialog", Boolean.TRUE); //$NON-NLS-1$ // Configure the size and location. Point size = configureSize(); configureLocation(size); // Call the super method. return super.open(); }
/** * {@inheritDoc} * Places the dialog close to a mouse pointer. */ @Override public int open() { open = true; setParentShell(getDisplay().getActiveShell()); if (actionCancelled) { getDisplay().beep(); } getDisplay().timerExec(CLOSE_TIMEOUT, new Runnable() { public void run() { NagPopUp.this.close(); } }); addCloseOnActionListeners(); return super.open(); }