List of usage examples for org.eclipse.jface.dialogs IDialogConstants FINISH_ID
int FINISH_ID
To view the source code for org.eclipse.jface.dialogs IDialogConstants FINISH_ID.
Click Source Link
From source file:CustomWizardDialog.java
License:Open Source License
public void createButtonsForButtonBar() { Button button = getButton(IDialogConstants.FINISH_ID); if (button != null) { button.setText(finishLabel); } }
From source file:ca.uvic.cs.tagsea.research.UserIDDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { okay = createButton(parent, IDialogConstants.OK_ID, "Get ID", true); // create OK and Cancel buttons by default finish = createButton(parent, IDialogConstants.FINISH_ID, IDialogConstants.FINISH_LABEL, false); cancel = createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); finish.setEnabled(false);// w w w .j av a2 s . c o m }
From source file:ca.uvic.cs.tagsea.research.UserIDDialog.java
License:Open Source License
@Override protected void buttonPressed(int buttonId) { switch (buttonId) { case IDialogConstants.OK_ID: okPressed();/*from ww w .j a v a 2 s . co m*/ break; case IDialogConstants.CANCEL_ID: cancelPressed(); break; case IDialogConstants.FINISH_ID: finishPressed(); break; } }
From source file:com.aptana.ide.installer.wizard.InstallerWizardDialog.java
License:Open Source License
private Button getFinishButton() { return getButton(IDialogConstants.FINISH_ID); }
From source file:com.aptana.ui.dialogs.MinimizableWizardDialog.java
License:Open Source License
/** * Enables the wizard to hide. When <code>true</code>, the 'Finish' button is replaced with 'Hide' button. On * pressing Hide button, the dialog is hidden and a 'toast' appears at the bottom of the screen. Clicking the toast * will bring back the dialog onto the screen. * /*from w w w.java 2s . c o m*/ * @param enabled */ public void enableHiding(boolean enabled) { if (hideOnFinish != enabled) { hideOnFinish = enabled; updateFinishButton(getButton(IDialogConstants.FINISH_ID)); } }
From source file:com.aptana.ui.dialogs.MinimizableWizardDialog.java
License:Open Source License
@Override protected Button createButton(Composite parent, int id, String label, boolean defaultButton) { Button b = super.createButton(parent, id, label, defaultButton); if (hideOnFinish && id == IDialogConstants.FINISH_ID) { updateFinishButton(b);/*w w w. j av a 2 s .c o m*/ } return b; }
From source file:com.archimatetool.csv.export.CSVExportProvider.java
License:Open Source License
@Override public void export(IArchimateModel model) throws IOException { CSVExporter exporter = new CSVExporter(model); WizardDialog dialog = new ExtendedWizardDialog(Display.getCurrent().getActiveShell(), new ExportAsCSVWizard(exporter), "ExportAsCSVWizard") { //$NON-NLS-1$ @Override/* w w w. j a va 2 s . c o m*/ protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); // Change "Finish" to "Save" Button b = getButton(IDialogConstants.FINISH_ID); b.setText(Messages.CSVExportProvider_0); } }; dialog.open(); }
From source file:com.archimatetool.editor.diagram.actions.ExportAsImageAction.java
License:Open Source License
@Override public void run() { LayerManager layerManager = (LayerManager) fGraphicalViewer.getEditPartRegistry().get(LayerManager.ID); IFigure rootFigure = layerManager.getLayer(LayerConstants.PRINTABLE_LAYERS); WizardDialog dialog = new ExtendedWizardDialog(fGraphicalViewer.getControl().getShell(), new ExportAsImageWizard(rootFigure), "ExportAsImageWizard") { //$NON-NLS-1$ @Override//from www.j a v a 2 s .com protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); // Change "Finish" to "Save" Button b = getButton(IDialogConstants.FINISH_ID); b.setText(Messages.ExportAsImageAction_1); } }; dialog.open(); }
From source file:com.archimatetool.zest.ExportAsImageAction.java
License:Open Source License
@Override public void run() { WizardDialog dialog = new ExtendedWizardDialog(fGraphViewer.getControl().getShell(), new ExportAsImageWizard(fGraphViewer.getGraphControl().getContents()), "ExportZestViewAsImage") { //$NON-NLS-1$ @Override/* w w w . ja v a2s. com*/ protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); // Change "Finish" to "Save" Button b = getButton(IDialogConstants.FINISH_ID); b.setText(Messages.ExportAsImageAction_3); } }; dialog.open(); }
From source file:com.arm.cmsis.pack.ui.wizards.RteWizardDialog.java
License:Open Source License
@Override protected Control createContents(Composite parent) { Control contents = super.createContents(parent); Button finishButton = getButton(IDialogConstants.FINISH_ID); finishButton.setText(IDialogConstants.OK_LABEL); return contents; }