List of usage examples for org.eclipse.jface.dialogs IDialogConstants OK_ID
int OK_ID
To view the source code for org.eclipse.jface.dialogs IDialogConstants OK_ID.
Click Source Link
From source file:com.agynamix.platform.frontend.dialogs.SimpleInformationViewerDialog.java
License:Open Source License
@Override protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.OK_ID) { // finalContents = text.getText(); }/* www. j a va2 s. c om*/ super.buttonPressed(buttonId); }
From source file:com.agynamix.platform.frontend.preferences.NetworkAddressListFieldEditor.java
License:Open Source License
protected String getNewInputObject() { InputNetworkAddressDialog addrDialog = new InputNetworkAddressDialog(getShell()); String address = null;/*from ww w .j a v a2s.c om*/ if (addrDialog.open() == IDialogConstants.OK_ID) { address = addrDialog.getText(); if (address != null) { address = address.trim(); if (address.length() == 0) { return null; } } } return address; }
From source file:com.aliyun.odps.eclipse.template.ProjectEditorDialog.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, false); }
From source file:com.amalto.workbench.dialogs.AnnotationLangInfoDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true); createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false); }
From source file:com.amalto.workbench.dialogs.AnnotationLangInfoDialog.java
License:Open Source License
protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.OK_ID) { langInfos.clear();//from w ww .ja va 2 s .c o m for (LanguageInfo eachLangInfo : compLangInfo.getLanguageInfos()) langInfos.add(eachLangInfo); } super.buttonPressed(buttonId); }
From source file:com.amalto.workbench.dialogs.AnnotationLanguageLabelsDialog.java
License:Open Source License
protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); if (caller != null) { getButton(IDialogConstants.OK_ID).addSelectionListener(this.caller); getButton(IDialogConstants.CANCEL_ID).addSelectionListener(this.caller); }/*from w w w . jav a 2 s .c om*/ }
From source file:com.amalto.workbench.dialogs.AnnotationLanguageLabelsDialog.java
License:Open Source License
@Override protected void okPressed() { setReturnCode(OK);//from ww w. j a v a 2 s .c o m getButton(IDialogConstants.OK_ID).setData("dialog", AnnotationLanguageLabelsDialog.this);//$NON-NLS-1$ // no close let Action Handler handle it if (caller == null) { close(); } }
From source file:com.amalto.workbench.dialogs.AnnotationOrderedListsDialog.java
License:Open Source License
private void updateOKBtnState(boolean btnEnabled) { if (getButton(IDialogConstants.OK_ID) != null) { getButton(IDialogConstants.OK_ID).setEnabled(btnEnabled); }/* w ww. ja v a 2 s . co m*/ }
From source file:com.amalto.workbench.dialogs.AnnotationOrderedListsDialog.java
License:Open Source License
@Override protected void createButtonsForButtonBar(Composite parent) { super.createButtonsForButtonBar(parent); getButton(IDialogConstants.OK_ID).addSelectionListener(this.caller); getButton(IDialogConstants.CANCEL_ID).addSelectionListener(this.caller); }
From source file:com.amalto.workbench.dialogs.AnnotationOrderedListsDialog.java
License:Open Source License
@Override protected void okPressed() { if (formatEditor != null) { formatFKInfo = formatEditor.getFormatFKInfo(); }//from ww w . j a v a 2 s .c o m setReturnCode(OK); getButton(IDialogConstants.OK_ID).setData("dialog", AnnotationOrderedListsDialog.this);//$NON-NLS-1$ // no close let Action Handler handle it }