protected void openDialog( final String title, final String message, final int dialogType ) { final Dialog dialog = new SimpleMessageDialog( shell, title, message, dialogType ); dialog.open(); }
protected void ok() { if ( Utils.isEmpty( wName.getText() ) ) { final Dialog dialog = new SimpleMessageDialog( shell, BaseMessages.getString( PKG, "System.StepJobEntryNameMissing.Title" ), BaseMessages.getString( PKG, "System.JobEntryNameMissing.Msg" ), MessageDialog.ERROR ); dialog.open(); return; } jobEntry.setName( wName.getText() ); try { getInfo( jobEntry ); } catch ( KettleException e ) { // suppress exceptions at this time - we will let the runtime report on any errors } jobEntry.setChanged(); dispose(); } }
protected void handleOk( final int samples ) { if ( samples >= 0 ) { String message = parentDialog.loadFields( parentDialog.getPopulatedMeta(), samples, reloadAllFields ); if ( wCheckbox != null && wCheckbox.getSelection() ) { if ( StringUtils.isNotBlank( message ) ) { final EnterTextDialog etd = new EnterTextDialog( parentDialog.getShell(), BaseMessages.getString( PKG, "System.GetFields.ScanResults.DialogTitle" ), BaseMessages.getString( PKG, "System.GetFields.ScanResults.DialogMessage" ), message, true ); etd.setReadOnly(); etd.setModal(); etd.open(); } else { final Dialog errorDlg = new SimpleMessageDialog( parentDialog.getShell(), BaseMessages.getString( PKG, "System.Dialog.Error.Title" ), BaseMessages.getString( PKG, "System.GetFields.ScanResults.Error.Message" ), MessageDialog.ERROR ); errorDlg.open(); } } } } }
MessageDialog.ERROR, BaseMessages.getString( PKG, "System.Button.Close" ), MISSING_RECENT_DLG_WIDTH, SimpleMessageDialog.BUTTON_WIDTH ); dlg.open(); return;
BaseMessages.getString( PKG, "System.Button.Close" ), MISSING_RECENT_DLG_WIDTH, SimpleMessageDialog.BUTTON_WIDTH ); dlg.open();
public void perform(IServer server) { Dialog dialog = PreferencesUtil.createPropertyDialogOn(shell, server, "org.eclipse.wst.server.ui.properties", null, null); dialog.open(); } }
@Override public int open() { applyDialogFont(panel); return super.open(); }
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
/** * @param status the status to show * @return <code>true</code> iff the operation should be cancelled */ private boolean showStatusDialog(RefactoringStatus status) { Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, fParent, fRefactoring.getName(), false); return dialog.open() == IDialogConstants.CANCEL_ID; } }
@Override public void widgetSelected(SelectionEvent e) { Dialog dialog= new WhitespaceCharacterPainterOptionsDialog(Display.getDefault().getActiveShell(), fOverlayStore); dialog.open(); } });
public Object execute(final ExecutionEvent event) throws ExecutionException { Repository repository = getRepository(true, event); if (repository != null) SimpleConfigurePushDialog.getDialog(getShell(event), repository) .open(); return null; }
public Object execute(final ExecutionEvent event) throws ExecutionException { Repository repository = getRepository(true, event); if (repository != null) SimpleConfigureFetchDialog.getDialog(getShell(event), repository) .open(); return null; }
/** * Prompts for a project to add. * * @see IAction#run() */ public void run() { Dialog dialog = new RuntimeClasspathAdvancedDialog(getShell(), fActions, getViewer()); dialog.open(); }
public void run() { Dialog dlg = SimpleConfigureFetchDialog.getDialog( PlatformUI.getWorkbench().getDisplay() .getActiveShell(), localDb); dlg.open(); } });
/** * @see org.eclipse.jface.window.Window#open() */ public int open() { if ( workingAttributeHierarchy.getAttribute().getValueSize() == 0 ) { workingAttributeHierarchy.getAttribute().addEmptyValue(); } return super.open(); }
public void run() { Dialog dlg = SimpleConfigurePushDialog.getDialog(PlatformUI .getWorkbench().getDisplay().getActiveShell(), localDb); dlg.open(); } });
private int showStatus(RefactoringStatus status) { if (!status.hasError()) return Window.OK; Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, shell, "", false); //$NON-NLS-1$ return dialog.open(); }
private int showStatus(RefactoringStatus status) { if (!status.hasError()) return Window.OK; Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, shell, "", false); //$NON-NLS-1$ return dialog.open(); }
private int showStatus(RefactoringStatus status) { if (!status.hasError()) return Window.OK; Shell shell= PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); Dialog dialog= RefactoringUI.createRefactoringStatusDialog(status, shell, "", false); //$NON-NLS-1$ return dialog.open(); }