List of usage examples for org.eclipse.jface.dialogs IDialogConstants CLOSE_ID
int CLOSE_ID
To view the source code for org.eclipse.jface.dialogs IDialogConstants CLOSE_ID.
Click Source Link
From source file:org.xmind.ui.internal.editor.ErrorDialogPane.java
License:Open Source License
protected void escapeKeyPressed() { triggerButton(IDialogConstants.CLOSE_ID); }
From source file:org.xmind.ui.internal.editor.ErrorDialogPane2.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CLOSE_ID, StatusHandlerMessages.RuntimeErrorDialog_CloseButton_Text, true); }
From source file:org.xmind.ui.internal.editor.ErrorDialogPane2.java
License:Open Source License
@Override protected boolean closePressed() { setReturnCode(IDialogConstants.CLOSE_ID); close();//from ww w. j a va 2 s . c o m if (closeCallback != null) { Display.getCurrent().asyncExec(closeCallback); } return true; }
From source file:org.xwiki.eclipse.dialogs.ManageWorkingSetsDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { Button button = createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); button.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { // TODO Auto-generated method stub }/* w ww . ja v a2 s. c o m*/ public void widgetSelected(SelectionEvent e) { close(); } }); }
From source file:zigen.plugin.db.ui.editors.LobViewDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:zigen.plugin.db.ui.editors.LobViewDialog.java
License:Open Source License
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.CLOSE_ID) { setReturnCode(buttonId);/*from w ww. j ava 2 s . c om*/ close(); // // } else if (buttonId == BUTTON_ID_EXP) { // doExport(); // // } else if (buttonId == BUTTON_ID_IMP) { // doImport(); // // } else if (buttonId == BUTTON_ID_DEL) { // doDelete(); } super.buttonPressed(buttonId); }