Java Code Examples for org.eclipse.jface.dialogs.IDialogConstants#BACK_ID
The following examples show how to use
org.eclipse.jface.dialogs.IDialogConstants#BACK_ID .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RuleConfigurationEditDialog.java From eclipse-cs with GNU Lesser General Public License v2.1 | 6 votes |
/** * @see org.eclipse.jface.dialogs.Dialog#buttonPressed(int) */ @Override protected void buttonPressed(int buttonId) { if (IDialogConstants.BACK_ID == buttonId) { if (MessageDialog.openConfirm(getShell(), Messages.RuleConfigurationEditDialog_titleRestoreDefault, Messages.RuleConfigurationEditDialog_msgRestoreDefault)) { if (mRule.getMetaData().hasSeverity()) { mSeverityCombo.setSelection( new StructuredSelection(mRule.getMetaData().getDefaultSeverityLevel())); mCommentText.setText(new String()); } // restore the default value for the properties int size = mConfigPropertyWidgets != null ? mConfigPropertyWidgets.length : 0; for (int i = 0; i < size; i++) { mConfigPropertyWidgets[i].restorePropertyDefault(); } } } else { super.buttonPressed(buttonId); } }
Example 2
Source File: ImportFromFileAction.java From ermasterr with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public void execute(final Event event) throws Exception { final DBObjectSet dbObjectSet = preImport(); if (dbObjectSet != null) { final AbstractSelectImportedObjectDialog importDialog = createSelectImportedObjectDialog(dbObjectSet); final int result = importDialog.open(); if (result == IDialogConstants.OK_ID) { loadData(importDialog.getSelectedDbObjects(), importDialog.isUseCommentAsLogicalName(), importDialog.isMergeWord(), importDialog.isMergeGroup()); showData(); } else if (result == IDialogConstants.BACK_ID) { this.execute(event); } } }
Example 3
Source File: ImportFromFileAction.java From erflute with Apache License 2.0 | 6 votes |
@Override public void execute(Event event) throws Exception { final DBObjectSet dbObjectSet = preImport(); if (dbObjectSet != null) { final AbstractSelectImportedObjectDialog importDialog = createSelectImportedObjectDialog(dbObjectSet); final int result = importDialog.open(); if (result == IDialogConstants.OK_ID) { loadData(importDialog.getSelectedDbObjects(), importDialog.isUseCommentAsLogicalName(), importDialog.isMergeWord(), importDialog.isMergeGroup()); showData(); } else if (result == IDialogConstants.BACK_ID) { execute(event); } } }
Example 4
Source File: TSWizardDialog.java From translationstudio8 with GNU General Public License v2.0 | 6 votes |
protected void buttonPressed(int buttonId) { switch (buttonId) { case IDialogConstants.HELP_ID: { helpPressed(); break; } case IDialogConstants.BACK_ID: { backPressed(); break; } case IDialogConstants.NEXT_ID: { nextPressed(); break; } case IDialogConstants.FINISH_ID: { finishPressed(); break; } // The Cancel button has a listener which calls cancelPressed // directly } }
Example 5
Source File: TSWizardDialog.java From tmxeditor8 with GNU General Public License v2.0 | 6 votes |
protected void buttonPressed(int buttonId) { switch (buttonId) { case IDialogConstants.HELP_ID: { helpPressed(); break; } case IDialogConstants.BACK_ID: { backPressed(); break; } case IDialogConstants.NEXT_ID: { nextPressed(); break; } case IDialogConstants.FINISH_ID: { finishPressed(); break; } // The Cancel button has a listener which calls cancelPressed // directly } }
Example 6
Source File: ImportFromFileAction.java From ermaster-b with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ @Override public void execute(Event event) throws Exception { DBObjectSet dbObjectSet = this.preImport(); if (dbObjectSet != null) { AbstractSelectImportedObjectDialog importDialog = this .createSelectImportedObjectDialog(dbObjectSet); int result = importDialog.open(); if (result == IDialogConstants.OK_ID) { this.loadData(importDialog.getSelectedDbObjects(), importDialog .isUseCommentAsLogicalName(), importDialog .isMergeWord(), importDialog.isMergeGroup()); this.showData(); } else if (result == IDialogConstants.BACK_ID) { this.execute(event); } } }
Example 7
Source File: MultiElementListSelectionDialog.java From n4js with Eclipse Public License 1.0 | 5 votes |
@Override protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.BACK_ID) { turnPage(false); } else if (buttonId == IDialogConstants.NEXT_ID) { turnPage(true); } else { super.buttonPressed(buttonId); } }
Example 8
Source File: MinimizableWizardDialog.java From APICloud-Studio with GNU General Public License v3.0 | 5 votes |
/** * Updates the next and previous buttons since finish was already clicked */ public void disableButtonsOnFinish() { int[] ids = new int[] { IDialogConstants.NEXT_ID, IDialogConstants.BACK_ID }; for (int id : ids) { Button button = getButton(id); if (!SWTUtils.isControlDisposed(button)) { button.setEnabled(false); } } }
Example 9
Source File: MultiElementListSelectionDialog.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
@Override protected void buttonPressed(int buttonId) { if (buttonId == IDialogConstants.BACK_ID) { turnPage(false); } else if (buttonId == IDialogConstants.NEXT_ID) { turnPage(true); } else { super.buttonPressed(buttonId); } }
Example 10
Source File: WizardBaseDialog.java From birt with Eclipse Public License 1.0 | 5 votes |
protected void buttonPressed( int buttonId ) { if ( IDialogConstants.FINISH_ID == buttonId ) { okPressed( ); } else if ( IDialogConstants.CANCEL_ID == buttonId ) { cancelPressed( ); } else if ( IDialogConstants.BACK_ID == buttonId ) { backPressed( ); } else if ( IDialogConstants.NEXT_ID == buttonId ) { nextPressed( ); } for ( int i = 0; i < this.wizardBase.buttonList.size( ); i++ ) { IButtonHandler buttonHandler = this.wizardBase.buttonList.get( i ); if ( buttonId == buttonHandler.getId( ) ) { buttonHandler.run( ); break; } } }