List of usage examples for org.eclipse.jface.dialogs IDialogConstants CANCEL_ID
int CANCEL_ID
To view the source code for org.eclipse.jface.dialogs IDialogConstants CANCEL_ID.
Click Source Link
From source file:com.nokia.tools.s60.wizards.PluginInstallationDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, WizardMessages.Plugin_Installation_Install_Button, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); getButton(IDialogConstants.OK_ID).setEnabled(false); }
From source file:com.nokia.tools.screen.ui.wizards.OpenProjectDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { btnOpen = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OPEN_LABEL, true); btnOpen.setEnabled(false);/*from ww w .j a v a 2 s . c om*/ createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.nokia.tools.screen.ui.wizards.OpenProjectDialog.java
License:Open Source License
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.OK_ID) { setMessage(null);/*from ww w. j a va 2 s . c o m*/ } if (buttonId == IDialogConstants.CANCEL_ID) { setMessage(null); } super.buttonPressed(buttonId); }
From source file:com.nokia.tools.theme.s60.ui.dialogs.MakeKeysDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { btnGenerate = createButton(parent, IDialogConstants.OK_ID, WizardMessages.Make_Keys_btnGenerate_Text, true); btnGenerate.setEnabled(false);//from w w w . jav a2s . c om createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.nokia.tools.theme.s60.ui.dialogs.MakeKeysDialog.java
License:Open Source License
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.OK_ID) { File cerFile = new File(strCerDestination); if (cerFile.exists()) { IBrandingManager branding = BrandingExtensionManager.getBrandingManager(); Image image = null;//from ww w . j a v a 2 s . c om if (branding != null) { image = branding.getIconImageDescriptor().createImage(); } MessageDialog dialog = new MessageDialog(PlatformUI.getWorkbench().getDisplay().getActiveShell(), WizardMessages.Make_Keys_CerFile_Exist_MsgBox_Title, image, WizardMessages.Make_Keys_CerFile_Exist_MsgBox_Message, 3, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0); int ret = dialog.open(); if (image != null) { image.dispose(); } if (ret != Window.OK) { return; } } shell.setEnabled(false); shell.setCursor(new Cursor(shell.getDisplay(), SWT.CURSOR_WAIT)); try { generateKeyPair(); } catch (Exception e) { shell.setEnabled(true); shell.setCursor(new Cursor(shell.getDisplay(), SWT.CURSOR_ARROW)); String message = null; if (e instanceof PackagingException) { message = ((PackagingException) e).getDetails(); if (message != null) { MessageDialogWithTextContent.openError(getShell(), WizardMessages.Key_Pairs_Generate_Error_Title, WizardMessages.Key_Pairs_Generate_Error_Message, message); } } if (message == null) { MessageDialog.openError(getShell(), WizardMessages.Key_Pairs_Generate_Error_Title, e.getMessage()); } return; } shell.setEnabled(true); shell.setCursor(new Cursor(shell.getDisplay(), SWT.CURSOR_ARROW)); } if (buttonId == IDialogConstants.CANCEL_ID) { setMessage(null); this.close(); } super.buttonPressed(buttonId); }
From source file:com.nokia.tools.ui.dialog.ResourceSelectionDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, false); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); refresh();//from ww w. java 2 s . c o m }
From source file:com.persistent.util.SDKInstallationDlg.java
License:Open Source License
@Override protected Control createButtonBar(Composite parent) { Control ctrl = super.createButtonBar(parent); yesBtn = getButton(IDialogConstants.OK_ID); if (yesBtn != null) { yesBtn.setText("Yes"); }/*from w ww . ja va 2 s . c o m*/ noBtn = getButton(IDialogConstants.CANCEL_ID); if (noBtn != null) { noBtn.setText("No"); } return ctrl; }
From source file:com.persistent.winazureroles.CertificateDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { Button btnImport = createButton(parent, 2, Messages.importBtn, false); btnImport.addSelectionListener(new SelectionListener() { @Override//from ww w.j a va2s .co m public void widgetSelected(SelectionEvent arg0) { importBtnListner(); } @Override public void widgetDefaultSelected(SelectionEvent arg0) { } }); Button btnCreate = createButton(parent, 3, Messages.newBtn, false); btnCreate.addSelectionListener(new SelectionListener() { @Override public void widgetSelected(SelectionEvent event) { newBtnListener(); } @Override public void widgetDefaultSelected(SelectionEvent event) { } }); Button btnNo = createButton(parent, 4, Messages.importBtn, false); btnNo.setVisible(false); createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); okButton = getButton(IDialogConstants.OK_ID); okButton.setEnabled(false); }
From source file:com.predic8.plugin.membrane.dialogs.AbstractRuleDialog.java
License:Apache License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, "OK", false); createButton(parent, IDialogConstants.CANCEL_ID, "Cancel", true); }
From source file:com.predic8.plugin.membrane.dialogs.AddHeaderFieldDialog.java
License:Apache License
protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, true); }