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(); }
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(); }
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(); }
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(); } } } );
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; }
protected void ok() { try { samples = Integer.parseInt( wNumber.getText() ); dispose(); } catch ( Exception e ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "Dialog.Error.EnterInteger" ) ); mb.setText( BaseMessages.getString( PKG, "Dialog.Error.Header" ) ); mb.open(); wNumber.selectAll(); } }
private void test() { if ( connectToFTPS( false, false ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION ); mb.setMessage( BaseMessages.getString( PKG, "JobFTPS.Connected.OK", wServerName.getText() ) + Const.CR ); mb.setText( BaseMessages.getString( PKG, "JobFTPS.Connected.Title.Ok" ) ); mb.open(); } }
private void test() { if ( connectToFTP( false, null ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION ); mb.setMessage( BaseMessages.getString( PKG, "JobFTPSPUT.Connected.OK", wServerName.getText() ) + Const.CR ); mb.setText( BaseMessages.getString( PKG, "JobFTPSPUT.Connected.Title.Ok" ) ); mb.open(); } }
private void checkRemoteFolder( String remoteFoldername ) { if ( !Utils.isEmpty( remoteFoldername ) ) { if ( connectToFTP( true, remoteFoldername ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION ); mb.setMessage( BaseMessages.getString( PKG, "JobFTPSPUT.FolderExists.OK", remoteFoldername ) + Const.CR ); mb.setText( BaseMessages.getString( PKG, "JobFTPSPUT.FolderExists.Title.Ok" ) ); mb.open(); } } }
private void test() { if ( connectToFTP( false, false ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION ); mb.setMessage( BaseMessages.getString( PKG, "JobFTP.Connected.OK", wServerName.getText() ) + Const.CR ); mb.setText( BaseMessages.getString( PKG, "JobFTP.Connected.Title.Ok" ) ); mb.open(); } }
private boolean checkUserInput( GetTableNamesMeta meta ) { if ( Utils.isEmpty( meta.getTablenameFieldName() ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "GetTableNamesDialog.Error.TablenameFieldNameMissingMessage" ) ); mb.setText( BaseMessages.getString( PKG, "GetTableNamesDialog.Error.TablenameFieldNameMissingTitle" ) ); mb.open(); return false; } return true; }
private void checkRemoteFolder( boolean FTPSFolfer, boolean checkMoveFolder, String foldername ) { if ( !Utils.isEmpty( foldername ) ) { if ( connectToFTPS( FTPSFolfer, checkMoveFolder ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION ); mb.setMessage( BaseMessages.getString( PKG, "JobFTPS.FolderExists.OK", foldername ) + Const.CR ); mb.setText( BaseMessages.getString( PKG, "JobFTPS.FolderExists.Title.Ok" ) ); mb.open(); } } }
private boolean checkUser() { if ( Utils.isEmpty( wUserName.getText() ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "SalesforceUpdateDialog.UsernameMissing.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) ); mb.open(); return false; } return true; }
private boolean checkUser() { if ( Utils.isEmpty( wUserName.getText() ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "SalesforceInsertDialog.UsernameMissing.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) ); mb.open(); return false; } return true; }
private void test() { if ( connect() ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION ); mb.setMessage( BaseMessages.getString( PKG, "JobFTPDelete.Connected.OK", wServerName.getText() ) + Const.CR ); mb.setText( BaseMessages.getString( PKG, "JobFTPDelete.Connected.Title.Ok" ) ); mb.open(); } }
private void ok() { if ( Utils.isEmpty( wName.getText() ) ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setText( BaseMessages.getString( PKG, "System.StepJobEntryNameMissing.Title" ) ); mb.setMessage( BaseMessages.getString( PKG, "System.JobEntryNameMissing.Msg" ) ); mb.open(); return; } jobEntry.setName( wName.getText() ); dispose(); } }
private void ok() { stepname = wStepname.getText(); // return value getInfo( input ); if ( input.getDatabaseMeta() == null ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( BaseMessages.getString( PKG, "SQLFileOutputDialog.ConnectionError.DialogMessage" ) ); mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) ); mb.open(); return; } dispose(); }
private void checkUnavailableMode() { if ( wProtocol.getText().equals( MailConnectionMeta.PROTOCOL_STRING_POP3 ) && MailConnectionMeta.getActionTypeByDesc( wActionType.getText() ) == MailConnectionMeta.ACTION_TYPE_MOVE ) { MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR ); mb.setMessage( "This action is not available for POP3!" + Const.CR + "Only one Folder (INBOX) is available in POP3." + Const.CR + "If you want to move messages to another folder," + Const.CR + "please use IMAP protocol." ); mb.setText( "ERROR" ); mb.open(); wActionType.setText( MailConnectionMeta.getActionTypeDesc( MailConnectionMeta.ACTION_TYPE_GET ) ); } }