List of usage examples for org.eclipse.jface.dialogs IDialogConstants CLOSE_LABEL
String CLOSE_LABEL
To view the source code for org.eclipse.jface.dialogs IDialogConstants CLOSE_LABEL.
Click Source Link
From source file:fr.imag.adele.cadse.si.workspace.uiplatform.swt.ui.DetailWizardDialog.java
License:Apache License
@Override protected void createButtonsForButtonBar(Composite parent) { finishButtonOverWrite = createButton(parent, IDialogConstants.FINISH_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:fr.inria.linuxtools.internal.tmf.ui.dialogs.ManageCustomParsersDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:hydrograph.ui.expression.editor.evaluate.EvaluateDialog.java
License:Apache License
/** * Create contents of the button bar./* w w w . j a va2s . c o m*/ * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { evaluateButton = createButton(parent, IDialogConstants.NO_ID, "Evaluate", false); evaluateButton.setFocus(); addListenerToEvaluateButton(); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:hydrograph.ui.help.aboutDialog.HydrographInstallationDialog.java
License:Apache License
private void tabSelected(CTabItem item) { if (item.getData() instanceof IConfigurationElement) { final IConfigurationElement element = (IConfigurationElement) item.getData(); Composite pageComposite = (Composite) item.getControl(); try {//from w w w .j av a2 s. co m final InstallationPage page = (InstallationPage) element .createExecutableExtension(IWorkbenchRegistryConstants.ATT_CLASS); page.createControl(pageComposite); // new controls created since the dialog font was applied, so // apply again. Dialog.applyDialogFont(pageComposite); page.setPageContainer(this); // Must be done before creating the buttons because the control // button creation methods // use this map. pageToId.put(page, element.getAttribute(IWorkbenchRegistryConstants.ATT_ID)); createButtons(page); item.setData(page); item.addDisposeListener(new DisposeListener() { @Override public void widgetDisposed(DisposeEvent e) { page.dispose(); } }); pageComposite.layout(true, true); } catch (CoreException e1) { Label label = new Label(pageComposite, SWT.NONE); label.setText(e1.getMessage()); item.setData(null); } } String id = (String) item.getData(ID); rememberSelectedTab(id); buttonManager.update(id); Button button = createButton(buttonManager.getParent(), IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); GridData gd = (GridData) button.getLayoutData(); gd.horizontalAlignment = SWT.BEGINNING; gd.horizontalIndent = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH) / 2; // Layout the button bar's parent and all of its children. We must // cascade through all children because the buttons have changed and // because tray dialog inserts an extra composite in the button bar // hierarchy. getButtonBar().getParent().layout(true, true); }
From source file:hydrograph.ui.propertywindow.transform.viewdata.TransformViewDataDialog.java
License:Apache License
/** * Create contents of the button bar./*from www . j a v a 2s. com*/ * @param parent */ @Override protected void createButtonsForButtonBar(Composite parent) { Button cancelButton = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:jbt.tools.bteditor.util.DetailsDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); this.detailsButton = createButton(parent, IDialogConstants.DETAILS_ID, IDialogConstants.SHOW_DETAILS_LABEL, false);//from w w w .j av a 2 s . co m }
From source file:net.refractions.udig.internal.ui.TipDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.NEXT_ID, IDialogConstants.NEXT_LABEL, false); createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, true); }
From source file:net.zehrer.no2.ui.dialogs.AbstractEMFDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CLOSE_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:nexcore.alm.common.ui.dialog.ContentsManagementDialog.java
License:Open Source License
/** * ? ? ? 'Close' ?.//w w w . j a va 2 s. co m * * @see org.eclipse.ui.dialogs.SelectionDialog#createButtonsForButtonBar(org.eclipse.swt.widgets.Composite) */ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.CLOSE_LABEL, false); }
From source file:org.apache.directory.studio.connection.ui.dialogs.CertificateInfoDialog.java
License:Apache License
/** * {@inheritDoc}// w w w . j a v a2 s . c om */ @Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CLOSE_LABEL, false); }