private void showError( String message ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( message ); mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) ); mb.open(); }
private void showMessage( String message ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION ); mb.setMessage( message ); mb.setText( BaseMessages.getString( PKG, "ElasticSearchBulkDialog.Test.TestOKTitle" ) ); mb.open(); }
public static int showChangedWarning( Shell shell, String name ) { MessageBox mb = new MessageBox( shell, SWT.YES | SWT.NO | SWT.CANCEL | SWT.ICON_WARNING ); mb.setMessage( BaseMessages.getString( PKG, "JobGraph.Dialog.PromptSave.Message", name ) ); mb.setText( BaseMessages.getString( PKG, "JobGraph.Dialog.PromptSave.Title" ) ); return mb.open(); }
private int showMultipleOutputTablesWarning( boolean includeCancel ) { MessageBox mb = new MessageBox( shell, SWT.OK | ( includeCancel ? SWT.CANCEL : SWT.NONE ) | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "SapInputDialog.MultipleOutputTables.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "SapInputDialog.MultipleOutputTables.DialogTitle" ) ); return mb.open(); }
private static void showSaveTransformationBeforeRunningDialog( Shell shell ) { MessageBox m = new MessageBox( shell, SWT.OK | SWT.ICON_WARNING ); m.setText( BaseMessages.getString( PKG, "TransLog.Dialog.SaveTransformationBeforeRunning.Title" ) ); m.setMessage( BaseMessages.getString( PKG, "TransLog.Dialog.SaveTransformationBeforeRunning.Message" ) ); m.open(); }
public static void showOnlyStartOnceMessage( Shell shell ) { MessageBox mb = new MessageBox( shell, SWT.YES | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "JobGraph.Dialog.OnlyUseStartOnce.Message" ) ); mb.setText( BaseMessages.getString( PKG, "JobGraph.Dialog.OnlyUseStartOnce.Title" ) ); mb.open(); }
private void displayRepositoryAlreadyExistMessage( String name ) { MessageBox box = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK ); box.setMessage( BaseMessages.getString( PKG, "RepositoryDialog.Dialog.ErrorIdExist.Message", name ) ); box.setText( BaseMessages.getString( PKG, "RepositoryDialog.Dialog.Error.Title" ) ); box.open(); } }
void showAlreadyExistsMessage() { MessageBox mb = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK ); mb.setMessage( BaseMessages.getString( PKG, "RepositoryExplorerDialog.Connection.Create.AlreadyExists.Message" ) ); mb.setText( BaseMessages.getString( PKG, "RepositoryExplorerDialog.Connection.Create.AlreadyExists.Title" ) ); mb.open(); }
public void showSaveFileMessage() { MessageBox m = new MessageBox( shell, SWT.OK | SWT.ICON_WARNING ); m.setText( BaseMessages.getString( PKG, "JobLog.Dialog.JobHasChangedSave.Title" ) ); m.setMessage( BaseMessages.getString( PKG, "JobLog.Dialog.JobHasChangedSave.Message" ) ); m.open(); }
private void displayRepositoryAlreadyExistMessage( String name ) { MessageBox box = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK ); box.setMessage( BaseMessages.getString( PKG, "RepositoryDialog.Dialog.ErrorIdExist.Message", name ) ); box.setText( BaseMessages.getString( PKG, "RepositoryDialog.Dialog.Error.Title" ) ); box.open(); } }
private int showDatabaseWarning( boolean includeCancel ) { MessageBox mb = new MessageBox( shell, SWT.OK | ( includeCancel ? SWT.CANCEL : SWT.NONE ) | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "SapInputDialog.InvalidConnection.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "SapInputDialog.InvalidConnection.DialogTitle" ) ); return mb.open(); }
public boolean askContinueOnErrorQuestion( String title, String message ) { MessageBox mb = new MessageBox( shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO ); mb.setMessage( message ); mb.setText( title ); int answer = mb.open(); return answer != SWT.NO; }
public void handleEvent( Event e ) { if ( !findText() ) { MessageBox messageBox = new MessageBox( sShell, SWT.ICON_INFORMATION | SWT.OK ); messageBox.setText( BaseMessages.getString( PKG, "Widget.Styled.CompReplace.FindItem" ) ); messageBox.setMessage( BaseMessages.getString( PKG, "Widget.Styled.CompReplace.ItemNotFound", searchText .getText() ) ); messageBox.open(); } } } );
/** * @param shell * the parent shell. * @return true if we need to retry, false if we need to cancel the operation. */ public static boolean showVersionCommentMandatoryDialog( Shell shell ) { MessageBox box = new MessageBox( shell, SWT.YES | SWT.NO | SWT.ICON_ERROR ); box.setMessage( "Version comments are mandatory for this repository." + Const.CR + "Do you want to enter a comment?" ); box.setText( "Version comments are mandatory!" ); return box.open() == SWT.YES; }
private void modalMessageDialog( String title, String message, int swtFlags ) { MessageBox messageBox = new MessageBox( shell, swtFlags ); messageBox.setMessage( message ); messageBox.setText( title ); messageBox.open(); }
public boolean isDefinedSchemaExist( String[] schemaNames ) { // Before we start, check if there are any partition schemas defined... if ( ( schemaNames == null ) || ( schemaNames.length == 0 ) ) { MessageBox box = new MessageBox( shell, SWT.ICON_ERROR | SWT.OK ); box.setText( "Create a partition schema" ); box.setMessage( "You first need to create one or more partition schemas in " + "the transformation settings dialog before you can select one!" ); box.open(); return false; } return true; }
private void showMessage( Shell shell, int style, String message, String text ) { MessageBox mb = new MessageBox( shell, style ); mb.setMessage( message ); mb.setText( text ); mb.open(); }
public void handleEvent( Event e ) { if ( !findText() ) { MessageBox messageBox = new MessageBox( sShell, SWT.ICON_INFORMATION | SWT.OK ); messageBox.setText( BaseMessages.getString( PKG, "Widget.Styled.Comp.FindItem" ) ); messageBox.setMessage( BaseMessages.getString( PKG, "Widget.Styled.CompReplace.ItemNotFound", searchText .getText() ) ); messageBox.open(); } } } );
private boolean validated() { if ( StringUtils.containsAny( wName.getText(), "%\"\\/:[]*|\t\r\n" ) ) { MessageBox messageBox = new MessageBox( shell, SWT.ERROR ); messageBox.setMessage( BaseMessages.getString( PKG, "RunConfiguration.InvalidChars.Message" ) ); messageBox.setText( BaseMessages.getString( PKG, "RunConfiguration.InvalidChars.Title" ) ); messageBox.open(); return false; } return true; }
private boolean checkInputURL( RssInputMeta meta ) { if ( wUrlList.nrNonEmpty() < 1 ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "RssInput.Log.UrlMissing" ) ); mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) ); mb.open(); return false; } else { return true; } }