本文整理汇总了Java中org.pentaho.di.ui.core.dialog.ShowMessageDialog.open方法的典型用法代码示例。如果您正苦于以下问题:Java ShowMessageDialog.open方法的具体用法?Java ShowMessageDialog.open怎么用?Java ShowMessageDialog.open使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.ui.core.dialog.ShowMessageDialog
的用法示例。
在下文中一共展示了ShowMessageDialog.open方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ok
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
private void ok() {
if ( Const.isEmpty( m_stepnameText.getText() ) ) {
return;
}
stepname = m_stepnameText.getText();
getInfo( m_currentMeta );
if ( m_currentMeta.getMongoFields() == null ) {
// popup dialog warning that no paths have been defined
ShowMessageDialog
smd =
new ShowMessageDialog( shell, SWT.ICON_WARNING | SWT.OK,
getString( "MongoDbOutputDialog.ErrorMessage.NoFieldPathsDefined.Title" ),
getString( "MongoDbOutputDialog.ErrorMessage.NoFieldPathsDefined" ) ); //$NON-NLS-1$
smd.open();
}
if ( !m_originalMeta.equals( m_currentMeta ) ) {
m_currentMeta.setChanged();
changed = m_currentMeta.hasChanged();
}
dispose();
}
示例2: checkForUnresolved
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
private boolean checkForUnresolved( MongoDbInputMeta meta, String title ) {
String query = transMeta.environmentSubstitute( meta.getJsonQuery() );
boolean notOk = ( query.contains( "${" ) || query.contains( "?{" ) ); //$NON-NLS-1$ //$NON-NLS-2$
if ( notOk ) {
ShowMessageDialog
smd =
new ShowMessageDialog( shell, SWT.ICON_WARNING | SWT.OK, title, BaseMessages.getString( PKG,
"MongoDbInputDialog.Warning.Message.MongoQueryContainsUnresolvedVarsFieldSubs" ) ); //$NON-NLS-1$
smd.open();
}
return !notOk;
}
示例3: addJob
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
/**
* Add a job to the job map
*
* @param jobMeta
* the job to add to the map
* @return the key used to store the transformation in the map
*/
public String addJob(JobMeta jobMeta)
{
String key = spoon.delegates.tabs.makeJobGraphTabName(jobMeta);
JobMeta xjob = jobMap.get(key);
if (xjob == null)
{
jobMap.put(key, jobMeta);
} else
{
// found a transformation tab that has the same name, is it the same
// as the one we want to load, if not warn the user of the duplicate name
boolean same = false;
if (jobMeta.isRepReference() && xjob.isRepReference())
{
// a repository value
same = jobMeta.getDirectory().getPath().equals(xjob.getDirectory().getPath());
}
else if (jobMeta.isFileReference() && xjob.isFileReference()){
// a file system entry
same = jobMeta.getFilename().equals(xjob.getFilename());
}
if (!same) {
ShowMessageDialog dialog = new ShowMessageDialog(spoon.getShell(), SWT.OK | SWT.ICON_INFORMATION,
Messages.getString("Spoon.Dialog.JobAlreadyLoaded.Title"), "'" + key + "'" + Const.CR
+ Const.CR + Messages.getString("Spoon.Dialog.JobAlreadyLoaded.Message"));
dialog.setTimeOut(6);
dialog.open();
}
}
return key;
}
示例4: showMessage
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
@Override
protected void showMessage(String message, boolean scroll){
Shell parent = getShell();
ShowMessageDialog msgDialog = new ShowMessageDialog(parent, SWT.ICON_INFORMATION | SWT.OK, BaseMessages.getString(PKG, "DatabaseDialog.DatabaseConnectionTest.title"), message, scroll); //$NON-NLS-1$
msgDialog.open();
}
示例5: testConnection
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
/**
* Test the connection with APNS server.
*
* @param certPath the certificate path.
* @param pass the password.
* @param useSandbox if use Sandbox.
*/
private void testConnection(String certPath, String pass, boolean useSandbox) {
try {
final InputStream fileInputStream =
KettleVFS.getInputStream(transMeta.environmentSubstitute(certPath));
ApnsServiceBuilder apnsServiceBuilder = APNS.newService().withCert(fileInputStream,
transMeta.environmentSubstitute(pass));
if (useSandbox) {
apnsServiceBuilder = apnsServiceBuilder.withSandboxDestination();
} else {
apnsServiceBuilder = apnsServiceBuilder.withProductionDestination();
}
final ApnsService apnsService = apnsServiceBuilder.build();
apnsService.testConnection();
final ShowMessageDialog msgDialog =
new ShowMessageDialog(parent, SWT.ICON_INFORMATION | SWT.OK,
BaseMessages.getString(PKG, "ApplePushNotification.TestConnection.title"),
BaseMessages.getString(
PKG, "ApplePushNotification.TestConnection.Success.DialogMessage"));
msgDialog.open();
} catch (Exception e) {
logDebug(BaseMessages.getString(PKG, "ApplePushNotification.TestConnection.title"), e);
new ErrorDialog(shell, BaseMessages.getString(PKG,
"ApplePushNotification.TestConnection.title"),
BaseMessages.getString(PKG,
"ApplePushNotification.Exception.UnexpectedErrorInTestConnection.Dialog.Error"), e);
}
}
示例6: showIndexInfo
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
private void showIndexInfo() {
String hostname = transMeta.environmentSubstitute( m_hostnameField.getText() );
String dbName = transMeta.environmentSubstitute( m_dbNameField.getText() );
String collection = transMeta.environmentSubstitute( m_collectionField.getText() );
if ( !Const.isEmpty( hostname ) ) {
MongoClient conn = null;
try {
MongoDbOutputMeta meta = new MongoDbOutputMeta();
getInfo( meta );
MongoClientWrapper wrapper = MongoWrapperUtil.createMongoClientWrapper( meta, transMeta, log );
StringBuffer result = new StringBuffer();
for ( String index : wrapper.getIndexInfo( dbName, collection ) ) {
result.append( index ).append( "\n\n" ); //$NON-NLS-1$
}
ShowMessageDialog
smd =
new ShowMessageDialog( shell, SWT.ICON_INFORMATION | SWT.OK,
BaseMessages.getString( PKG, "MongoDbOutputDialog.IndexInfo", collection ), result.toString(),
true ); //$NON-NLS-1$
smd.open();
} catch ( Exception e ) {
logError( getString( "MongoDbOutputDialog.ErrorMessage.GeneralError.Message" ) //$NON-NLS-1$
+ ":\n\n" + e.getMessage(), e ); //$NON-NLS-1$
new ErrorDialog( shell, getString( "MongoDbOutputDialog.ErrorMessage.IndexPreview.Title" ),
//$NON-NLS-1$
getString( "MongoDbOutputDialog.ErrorMessage.GeneralError.Message" ) //$NON-NLS-1$
+ ":\n\n" + e.getMessage(), e ); //$NON-NLS-1$
} finally {
if ( conn != null ) {
conn.close();
conn = null;
}
}
}
}
示例7: createPlugin
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
protected boolean createPlugin() {
// Create a step with the information in this dialog
UserDefinedJavaClassMeta udjcMeta = new UserDefinedJavaClassMeta();
getInfo( udjcMeta );
try {
String pluginName = "Processor";
for ( UserDefinedJavaClassDef def : udjcMeta.getDefinitions() ) {
if ( def.isTransformClass() ) {
pluginName = def.getClassName();
}
}
File pluginFile = new File( String.format( "plugins/steps/%s/%s.step.xml", pluginName, pluginName ) );
pluginFile.getParentFile().mkdirs();
PrintWriter pw = new PrintWriter( new FileWriter( pluginFile ) );
StringBuilder outXML = new StringBuilder( "<step>\n" );
outXML.append( String.format( "\t<name>%s</name>\n", stepname ) );
outXML.append( "\t<type>UserDefinedJavaClass</type>\n" );
outXML.append( "\t<description/>\n\t" );
outXML.append( udjcMeta.getXML() );
outXML.append( "</step>" );
pw.println( outXML.toString() );
pw.flush();
pw.close();
ShowMessageDialog msgDialog = new ShowMessageDialog( shell, SWT.ICON_INFORMATION | SWT.OK,
BaseMessages.getString( PKG, "UserDefinedJavaClassDialog.Plugin.CreateSuccess" ),
BaseMessages.getString( PKG, "UserDefinedJavaClassDialog.Plugin.CreatedFile", pluginFile.getPath() ), false );
msgDialog.open();
} catch ( IOException e ) {
e.printStackTrace();
new ErrorDialog(
shell, BaseMessages.getString( PKG, "UserDefinedJavaClassDialog.Plugin.CreateErrorTitle" ), BaseMessages
.getString( PKG, "UserDefinedJavaClassDialog.Plugin.CreateErrorMessage", stepname ), e );
}
return true;
}
示例8: onLoginError
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
private void onLoginError( Throwable t ) {
if ( t instanceof KettleAuthException ) {
ShowMessageDialog dialog =
new ShowMessageDialog( loginDialog.getShell(), SWT.OK | SWT.ICON_ERROR, BaseMessages.getString(
PKG, "Spoon.Dialog.LoginFailed.Title" ), t.getLocalizedMessage() );
dialog.open();
} else {
new ErrorDialog(
loginDialog.getShell(), BaseMessages.getString( PKG, "Spoon.Dialog.LoginFailed.Title" ), BaseMessages
.getString( PKG, "Spoon.Dialog.LoginFailed.Message", t ), t );
}
}
示例9: showMessage
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
@Override
protected void showMessage( String message, boolean scroll ) {
Shell parent = getShell();
ShowMessageDialog msgDialog =
new ShowMessageDialog( parent, SWT.ICON_INFORMATION | SWT.OK, BaseMessages.getString(
PKG, "DatabaseDialog.DatabaseConnectionTest.title" ), message, scroll );
msgDialog.open();
}
示例10: getFields
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
private void getFields(OdpsOutputMeta meta) {
if (!Const.isEmpty(m_wEndpoint.getText()) && !Const.isEmpty(m_wAccessId.getText()) && !Const
.isEmpty(m_wAccessKey.getText()) && !Const.isEmpty(m_wProjectName.getText()) && !Const
.isEmpty(m_wTableName.getText())) {
TableSchema schema = MaxcomputeUtil
.getTableSchema(new AliyunAccount(m_wAccessId.getText(), m_wAccessKey.getText()),
m_wEndpoint.getText(), m_wProjectName.getText(), m_wTableName.getText());
List<Column> columns = schema.getColumns();
List<OdpsField> odpsFields = new ArrayList<OdpsField>();
for (int i = 0; i < columns.size(); i++) {
OdpsField field = new OdpsField();
field.setName(columns.get(i).getName());
field.setType(columns.get(i).getType().name());
field.setComment(columns.get(i).getCategoryLabel());
odpsFields.add(field);
}
meta.setOdpsFields(odpsFields);
RowMetaInterface r = null;
try {
r = transMeta.getPrevStepFields(stepname);
} catch (KettleStepException e) {
logError(e.getMessage(), e);
}
if (r != null) {
logBasic("prev step fields: " + Arrays.toString(r.getFieldNames()));
meta.setStreamFields(Arrays.asList(r.getFieldNames()));
} else {
logBasic("prev step fields empty!!!");
meta.setStreamFields(new ArrayList<String>());
}
if (meta.getOdpsFields() != null && meta.getStreamFields() != null) {
m_wFieldsTable.table.clearAll();
m_wFieldsTable.table.setItemCount(meta.getOdpsFields().size());
for (int i = 0; i < meta.getOdpsFields().size(); i++) {
OdpsField odpsField = meta.getOdpsFields().get(i);
String streamField = "";
if (meta.getStreamFields().size() > i) {
streamField = meta.getStreamFields().get(i);
}
TableItem item = m_wFieldsTable.table.getItem(i);
if (odpsField != null) {
if (odpsField.getName() != null)
item.setText(1, odpsField.getName());
if (streamField != null)
item.setText(2, streamField);
}
}
}
} else {
// pop up an error dialog
String missingConDetails = "";
if (Const.isEmpty(m_wEndpoint.getText())) {
missingConDetails += " odps endpoint";
}
if (Const.isEmpty(m_wAccessId.getText())) {
missingConDetails += " accessId";
}
if (Const.isEmpty(m_wAccessKey.getText())) {
missingConDetails += " accessKey";
}
if (Const.isEmpty(m_wProjectName.getText())) {
missingConDetails += " project name";
}
if (Const.isEmpty(m_wTableName.getText())) {
missingConDetails += " table name";
}
ShowMessageDialog smd = new ShowMessageDialog(shell, SWT.ICON_WARNING | SWT.OK,
BaseMessages.getString(PKG, "ODPS.ErrorMessage.MissingConnectionDetails.Title"),
BaseMessages.getString(PKG, "ODPS.ErrorMessage.MissingConnectionDetails",
missingConDetails));
smd.open();
}
}
示例11: getFrameFields
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
private void getFrameFields( CPythonScriptExecutorMeta meta ) {
try {
meta.setOutputFields( new RowMeta() );
List<String> frameNames = meta.getFrameNames();
List<StreamInterface> infoStreams = meta.getStepIOMeta().getInfoStreams();
List<RowMetaInterface> incomingMetas = new ArrayList<RowMetaInterface>();
if ( frameNames.size() > 0 && infoStreams.size() > 0 ) {
for ( int i = 0; i < infoStreams.size(); i++ ) {
incomingMetas.add( transMeta.getStepFields( infoStreams.get( i ).getStepMeta() ) );
}
}
ShowMessageDialog
smd =
new ShowMessageDialog( this.getParent(), SWT.YES | SWT.NO | SWT.ICON_WARNING,
BaseMessages.getString( PKG, "CPythonScriptExecutorDialog.GetFields.Dialog.Title" ),
BaseMessages.getString( PKG, "CPythonScriptExecutorDialog.GetFields.Dialog.Message" ), false );
int buttonID = smd.open();
if ( buttonID == SWT.YES ) {
RowMetaInterface rowMeta = new RowMeta();
meta.getFields( rowMeta, "bogus", incomingMetas.toArray( new RowMetaInterface[incomingMetas.size()] ), null,
transMeta, null, null );
wtvOutputFields.clearAll();
for ( int i = 0; i < rowMeta.size(); i++ ) {
TableItem item = new TableItem( wtvOutputFields.table, SWT.NONE );
item.setText( 1, Const.NVL( rowMeta.getValueMeta( i ).getName(), "" ) );
item.setText( 2, Const.NVL( rowMeta.getValueMeta( i ).getTypeDesc(), "" ) );
}
wtvOutputFields.removeEmptyRows();
wtvOutputFields.setRowNums();
wtvOutputFields.optWidth( true );
}
} catch ( KettleException ex ) {
new ErrorDialog( shell, stepname, BaseMessages.getString( PKG, "CPythonScriptExecutorDialog.ErrorGettingFields" ),
ex );
}
}
示例12: popupSchemaInfo
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
protected void popupSchemaInfo() {
CassandraConnection conn = null;
try {
String hostS = transMeta.environmentSubstitute(m_hostText.getText());
String portS = transMeta.environmentSubstitute(m_portText.getText());
String userS = m_userText.getText();
String passS = m_passText.getText();
if (!Const.isEmpty(userS) && !Const.isEmpty(passS)) {
userS = transMeta.environmentSubstitute(userS);
passS = transMeta.environmentSubstitute(passS);
}
String keyspaceS = transMeta.environmentSubstitute(m_keyspaceText
.getText());
conn = CassandraOutputData.getCassandraConnection(hostS,
Integer.parseInt(portS), userS, passS);
try {
conn.setKeyspace(keyspaceS);
} catch (InvalidRequestException ire) {
logError(
BaseMessages.getString(PKG,
"CassandraInputDialog.Error.ProblemGettingSchemaInfo.Message")
+ ":\n\n" + ire.why, ire);
new ErrorDialog(shell, BaseMessages.getString(PKG,
"CassandraInputDialog.Error.ProblemGettingSchemaInfo.Title"),
BaseMessages.getString(PKG,
"CassandraInputDialog.Error.ProblemGettingSchemaInfo.Message")
+ ":\n\n" + ire.why, ire);
return;
}
String colFam = transMeta.environmentSubstitute(m_columnFamilyCombo
.getText());
if (Const.isEmpty(colFam)) {
throw new Exception("No colummn family (table) name specified!");
}
if (!CassandraColumnMetaData.columnFamilyExists(conn, colFam)) {
throw new Exception("The column family '" + colFam + "' does not "
+ "seem to exist in the keyspace '" + keyspaceS);
}
CassandraColumnMetaData cassMeta = new CassandraColumnMetaData(conn,
colFam);
String schemaDescription = cassMeta.getSchemaDescription();
ShowMessageDialog smd = new ShowMessageDialog(shell, SWT.ICON_INFORMATION
| SWT.OK, "Schema info", schemaDescription, true);
smd.open();
} catch (Exception e1) {
logError(
BaseMessages.getString(PKG,
"CassandraOutputDialog.Error.ProblemGettingSchemaInfo.Message")
+ ":\n\n" + e1.getMessage(), e1);
new ErrorDialog(shell, BaseMessages.getString(PKG,
"CassandraOutputDialog.Error.ProblemGettingSchemaInfo.Title"),
BaseMessages.getString(PKG,
"CassandraOutputDialog.Error.ProblemGettingSchemaInfo.Message")
+ ":\n\n" + e1.getMessage(), e1);
} finally {
if (conn != null) {
conn.close();
}
}
}
示例13: addTransformation
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
/**
* Add a transformation to the
*
* @param transMeta
* the transformation to add to the map
* @return the key used to store the transformation in the map
*/
public String addTransformation(TransMeta transMeta)
{
String key = spoon.delegates.tabs.makeTransGraphTabName(transMeta);
TransMeta xform = (TransMeta) transformationMap.get(key);
if (xform == null)
{
transformationMap.put(key, transMeta);
} else
{
// found a transformation tab that has the same name, is it the same
// as the one we want to load, if not warn the user of the duplicate
// name
// this check may produce false negatives, i.e., references that are
// deemed
// different when they in fact refer to the same entry. For example,
// one of
// the transforms may use a variable reference or an alternative but
// equivalent5
boolean same = false;
if (transMeta.isRepReference() && xform.isRepReference())
{
// a repository value, check directory
same = transMeta.getDirectory().getPath().equals(xform.getDirectory().getPath());
} else if (transMeta.isFileReference() && xform.isFileReference())
{
// a file system entry, check file path
same = transMeta.getFilename().equals(xform.getFilename());
}
if (!same)
{
ShowMessageDialog dialog = new ShowMessageDialog(spoon.getShell(), SWT.OK
| SWT.ICON_INFORMATION, Messages.getString("Spoon.Dialog.TransAlreadyLoaded.Title"),
"'" + key + "'" + Const.CR + Const.CR
+ Messages.getString("Spoon.Dialog.TransAlreadyLoaded.Message"));
dialog.setTimeOut(6);
dialog.open();
/*
* MessageBox mb = new MessageBox(shell, SWT.OK |
* SWT.ICON_INFORMATION);
* mb.setMessage("'"+key+"'"+Const.CR+Const.CR+Messages.getString("Spoon.Dialog.TransAlreadyLoaded.Message")); //
* Transformation is already loaded
* mb.setText(Messages.getString("Spoon.Dialog.TransAlreadyLoaded.Title")); //
* Sorry! mb.open();
*/
}
}
return key;
}
示例14: loadWebService
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
private void loadWebService(String anURI) throws KettleException
{
anURI = transMeta.environmentSubstitute(anURI);
//
//
try
{
if (wProxyHost.getText() != null && !"".equals(wProxyHost.getText()))
{
Properties systemProperties = System.getProperties();
systemProperties.setProperty("http.proxyHost", transMeta.environmentSubstitute(wProxyHost.getText()));
systemProperties.setProperty("http.proxyPort", transMeta.environmentSubstitute(wProxyPort.getText()));
}
wsdl = new Wsdl(new URI(anURI), null, null, wHttpLogin.getText(), wHttpPassword.getText());
}
catch (AuthenticationException ae) {
wsdl = null;
ShowMessageDialog smd = new ShowMessageDialog(shell, SWT.OK, BaseMessages.getString(PKG, "WebServiceDialog.ErrorDialog.Title"), BaseMessages.getString(PKG, "Webservices.Error.Authentication", anURI));
smd.open();
return;
}
catch (Exception e)
{
wsdl = null;
new ErrorDialog(shell,
BaseMessages.getString(PKG, "WebServiceDialog.ERROR0009.UnreachableURI"),//$NON-NLS-1$
BaseMessages.getString(PKG, "WebServiceDialog.ErrorDialog.Title") + anURI, //$NON-NLS-1$
e);
log.logError(BaseMessages.getString(PKG, "WebServiceDialog.ErrorDialog.Title") + anURI, e.getMessage()); //$NON-NLS-1$
return;
}
String text = wOperation.getText();
wOperation.removeAll();
if (wsdl != null)
{
List<WsdlOperation> listeOperations = wsdl.getOperations();
Collections.sort(listeOperations, new Comparator<WsdlOperation>()
{
public int compare(WsdlOperation op1, WsdlOperation op2)
{
return op1.getOperationQName().getLocalPart().compareTo(op2.getOperationQName().getLocalPart());
}
});
for (Iterator<WsdlOperation> itr = listeOperations.iterator(); itr.hasNext();)
{
WsdlOperation op = itr.next();
wOperation.add(op.getOperationQName().getLocalPart());
if (op.getOperationQName().getLocalPart().equals(text))
{
wOperation.setText(text);
}
}
}
}
示例15: setupCollectionNamesForDB
import org.pentaho.di.ui.core.dialog.ShowMessageDialog; //导入方法依赖的package包/类
private void setupCollectionNamesForDB( boolean quiet ) {
final String hostname = transMeta.environmentSubstitute( m_hostnameField.getText() );
final String dB = transMeta.environmentSubstitute( m_dbNameField.getText() );
String current = m_collectionField.getText();
m_collectionField.removeAll();
if ( !Const.isEmpty( hostname ) && !Const.isEmpty( dB ) ) {
final MongoDbOutputMeta meta = new MongoDbOutputMeta();
getInfo( meta );
try {
MongoClientWrapper clientWrapper = MongoWrapperUtil.createMongoClientWrapper( meta, transMeta, log );
Set<String> collections = new HashSet<String>();
try {
collections = clientWrapper.getCollectionsNames( dB );
} finally {
clientWrapper.dispose();
}
for ( String c : collections ) {
m_collectionField.add( c );
}
} catch ( Exception e ) {
// Unwrap the PrivilegedActionException if it was thrown
if ( e instanceof PrivilegedActionException ) {
e = ( (PrivilegedActionException) e ).getException();
}
logError( getString( "MongoDbOutputDialog.ErrorMessage.UnableToConnect" ), e ); //$NON-NLS-1$
new ErrorDialog( shell, getString( "MongoDbOutputDialog.ErrorMessage.UnableToConnect" ),
//$NON-NLS-1$ //$NON-NLS-2$
getString( "MongoDbOutputDialog.ErrorMessage.UnableToConnect" ), e ); //$NON-NLS-1$
}
} else {
// popup some feedback
String missingConnDetails = ""; //$NON-NLS-1$
if ( Const.isEmpty( hostname ) ) {
missingConnDetails += "host name(s)"; //$NON-NLS-1$
}
if ( Const.isEmpty( dB ) ) {
missingConnDetails += " database"; //$NON-NLS-1$
}
ShowMessageDialog
smd =
new ShowMessageDialog( shell, SWT.ICON_WARNING | SWT.OK,
getString( "MongoDbOutputDialog.ErrorMessage.MissingConnectionDetails.Title" ),
BaseMessages.getString( PKG, //$NON-NLS-1$
"MongoDbOutputDialog.ErrorMessage.MissingConnectionDetails", missingConnDetails ) ); //$NON-NLS-1$
smd.open();
}
if ( !Const.isEmpty( current ) ) {
m_collectionField.setText( current );
}
}