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.eclipse.zest.custom.sequence.widgets.internal.ThrownErrorDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:org.fusesource.ide.sap.ui.dialog.TestDestinationDialog.java
License:Open Source License
/** * Create contents of the button bar./*from w w w . j av a2 s .co m*/ * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, TEST_ID, Messages.TestDestinationDialog_Test, false); createButton(parent, CLEAR_ID, Messages.TestDestinationDialog_Clear, false); createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:org.fusesource.ide.sap.ui.dialog.TestDestinationDialog.java
License:Open Source License
@Override protected void buttonPressed(int buttonId) { super.buttonPressed(buttonId); if (buttonId == TEST_ID) { testPressed();/*from ww w . j av a 2 s. com*/ } else if (buttonId == CLEAR_ID) { clearConsole(); } else if (buttonId == IDialogConstants.CLOSE_ID) { closePressed(); } }
From source file:org.fusesource.ide.sap.ui.dialog.TestServerDialog.java
License:Open Source License
/** * Create contents of the button bar.// w w w . j a v a 2 s .c o m * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, START_ID, Messages.TestServerDialog_Start, false); createButton(parent, IDialogConstants.STOP_ID, IDialogConstants.STOP_LABEL, false); createButton(parent, CLEAR_ID, Messages.TestServerDialog_Clear, false); createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:org.fusesource.ide.sap.ui.dialog.TestServerDialog.java
License:Open Source License
@Override protected void buttonPressed(int buttonId) { super.buttonPressed(buttonId); if (buttonId == START_ID) { startServer();//from w ww .j a va2 s. c om } else if (buttonId == IDialogConstants.STOP_ID) { stopServer(); } else if (buttonId == CLEAR_ID) { clearConsole(); } else if (buttonId == IDialogConstants.CLOSE_ID) { closePressed(); } }
From source file:org.jboss.tools.cdi.text.ext.hyperlink.AssignableBeansDialog.java
License:Open Source License
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.CLOSE_ID) { // TitleAreaDialog // cancelPressed(); }//from w ww .j a v a2 s. com }
From source file:org.jetbrains.kotlin.psi.visualization.VisualizationPage.java
License:Apache License
@Override protected void createButtonsForButtonBar(Composite parent) { Button closeButton = createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, false); closeButton.addSelectionListener(new SelectionAdapter() { @Override// w w w. j a v a 2 s . c o m public void widgetSelected(SelectionEvent e) { setReturnCode(OK); close(); } }); }
From source file:org.jkiss.dbeaver.core.application.update.VersionUpdateDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { if (newVersion != null) { boolean hasUpdate = Platform.getBundle(CheckForUpdateAction.P2_PLUGIN_ID) != null; if (hasUpdate) { createButton(parent, IDialogConstants.PROCEED_ID, "Update", true); }//from w ww . ja va 2 s . c om createButton(parent, INFO_ID, CoreMessages.dialog_version_update_button_more_info, !hasUpdate); } createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, newVersion == null); }
From source file:org.jkiss.dbeaver.ui.dialogs.driver.DriverManagerDialog.java
License:Open Source License
@Override protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.CLOSE_ID) { setReturnCode(OK); close(); } }
From source file:org.jkiss.dbeaver.ui.dialogs.sql.SQLScriptStatusDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { Button button = createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); button.setEnabled(false);// w ww. jav a 2 s .c o m }