Java Code Examples for org.eclipse.swt.SWT#ICON_INFORMATION

The following examples show how to use org.eclipse.swt.SWT#ICON_INFORMATION . 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: DataOverrideHandler.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
public void explore() {

    Shell parent = getShell();

    DatabaseMeta dbinfo = new DatabaseMeta();
    getInfo( dbinfo );

    try {
      if ( dbinfo.getAccessType() != DatabaseMeta.TYPE_ACCESS_PLUGIN ) {
        DatabaseExplorerDialog ded = new DatabaseExplorerDialog( parent, SWT.NONE, dbinfo, databases, true );
        ded.open();
      } else {
        MessageBox mb = new MessageBox( parent, SWT.OK | SWT.ICON_INFORMATION );
        mb.setText( BaseMessages.getString( PKG, "DatabaseDialog.ExplorerNotImplemented.Title" ) );
        mb.setMessage( BaseMessages.getString( PKG, "DatabaseDialog.ExplorerNotImplemented.Message" ) );
        mb.open();
      }
    } catch ( Exception e ) {
      new ErrorDialog( parent, BaseMessages.getString( PKG, "DatabaseDialog.ErrorParameters.title" ), BaseMessages
        .getString( PKG, "DatabaseDialog.ErrorParameters.description" ), e );
    }
  }
 
Example 2
Source File: SpoonJobDelegate.java    From pentaho-kettle with Apache License 2.0 6 votes vote down vote up
public void dupeJobEntry( JobMeta jobMeta, JobEntryCopy jobEntry ) {
  if ( jobEntry == null ) {
    return;
  }

  if ( jobEntry.isStart() ) {
    MessageBox mb = new MessageBox( spoon.getShell(), SWT.OK | SWT.ICON_INFORMATION );
    mb.setMessage( BaseMessages.getString( PKG, "Spoon.Dialog.OnlyUseStartOnce.Message" ) );
    mb.setText( BaseMessages.getString( PKG, "Spoon.Dialog.OnlyUseStartOnce.Title" ) );
    mb.open();
    return;
  }

  JobEntryCopy dupejge = (JobEntryCopy) jobEntry.clone();
  dupejge.setNr( jobMeta.findUnusedNr( dupejge.getName() ) );
  if ( dupejge.isDrawn() ) {
    Point p = jobEntry.getLocation();
    dupejge.setLocation( p.x + 10, p.y + 10 );
  }
  jobMeta.addJobEntry( dupejge );
  spoon.refreshGraph();
  spoon.refreshTree();
  spoon.setShellText();

}
 
Example 3
Source File: TestingGuiPlugin.java    From hop with Apache License 2.0 6 votes vote down vote up
private boolean checkTestPresent( HopGui hopGui, PipelineMeta pipelineMeta ) {

    PipelineUnitTest activeTest = activeTests.get( pipelineMeta );
    if ( activeTest != null ) {
      return false;
    }

    // there is no test defined of selected in the pipeline.
    // Show a warning
    //
    MessageBox box = new MessageBox( hopGui.getShell(), SWT.OK | SWT.ICON_INFORMATION );
    box.setMessage( "Please create a test-case first by left clicking on the test icon." );
    box.setText( "First create a test-case" );
    box.open();

    return true;
  }
 
Example 4
Source File: EnterValueDialog.java    From hop with Apache License 2.0 6 votes vote down vote up
/**
 * Test the entered value
 */
public void test() {
  try {
    ValueMetaAndData v = getValue( valueMeta.getName() );
    MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION );

    StringBuilder result = new StringBuilder();
    result.append( Const.CR ).append( Const.CR ).append( "    " ).append( v.toString() );
    result.append( Const.CR ).append( "    " ).append( v.toStringMeta() );

    mb.setMessage( BaseMessages.getString( PKG, "EnterValueDialog.TestResult.Message", result.toString() ) );
    mb.setText( BaseMessages.getString( PKG, "EnterValueDialog.TestResult.Title" ) );
    mb.open();
  } catch ( HopValueException e ) {
    new ErrorDialog( shell, "Error", "There was an error during data type conversion: ", e );
  }
}
 
Example 5
Source File: ScriptValuesAddedFunctions.java    From hop with Apache License 2.0 6 votes vote down vote up
public static String Alert( Context actualContext, Scriptable actualObject, Object[] ArgList,
                              Function FunctionContext ) {

    HopGui hopGui = HopGui.getInstance();
    if ( ArgList.length == 1 && hopGui != null ) {
      String strMessage = Context.toString( ArgList[ 0 ] );
      MessageBox mb = new MessageBox( hopGui.getShell(), SWT.OK | SWT.ICON_INFORMATION );
      mb.setMessage( strMessage );
      mb.setText(  "alert"  );
      mb.open();
/*
      boolean ok = hopGui.messageBox( strMessage, "Alert", true, Const.INFO );
      if ( !ok ) {
        throw new RuntimeException( "Alert dialog cancelled by user." );
      }
*/
    }

    return "";
  }
 
Example 6
Source File: OptionsDesign.java    From ldparteditor with MIT License 6 votes vote down vote up
private void showKeyAlreadyInUseWarning(TreeItem parentItem, String keyString) {
    String actionString = "advanced usage by LDPartEditor"; //$NON-NLS-1$ I18N Needs translation!
    final MessageBox messageBoxInfo = new MessageBox(getShell(), SWT.ICON_INFORMATION | SWT.OK);
    final HashMap<String, String> reservedKeysMappedToAction = new HashMap<>();
    final String inputTheColourNumber = "colour number input";//$NON-NLS-1$ I18N Needs translation!
    
    for (int n = 0; n < 10; n++) {
        reservedKeysMappedToAction.put("NUMPAD_" + n, inputTheColourNumber); //$NON-NLS-1$ I18N Needs translation!
    }
    
    if (reservedKeysMappedToAction.containsKey(keyString)) {
        actionString = reservedKeysMappedToAction.get(keyString);
    } else {
        for (TreeItem item : parentItem.getItems()) {
            if (keyString.equals(item.getText(1))) {
                actionString = item.getText(0);
                break;
            }
        }
    }
    
    messageBoxInfo.setText(I18n.DIALOG_Info);
    messageBoxInfo.setMessage("The key combination " + keyString + " is already in use for '" + actionString + "'."); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ I18N Needs translation!
    messageBoxInfo.open();
}
 
Example 7
Source File: ActionFtpDialog.java    From hop with Apache License 2.0 5 votes vote down vote up
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();
  }
}
 
Example 8
Source File: DataOverrideHandler.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
@Override
protected void showMessage( DatabaseTestResults databaseTestResults ) {
  String title = "";
  String message = "";

  if ( databaseTestResults.isSuccess() ) {
    title = BaseMessages.getString( PKG, "DatabaseDialog.DatabaseConnectionTestSuccess.title" );
    message = databaseTestResults.getMessage();

    if ( message.contains( Const.CR ) ) {
      message = message.substring( 0, message.indexOf( Const.CR ) ) + Const.CR + message.substring( message.indexOf( Const.CR ) );
      message = message.substring( 0, message.lastIndexOf( Const.CR ) );
    }

    ShowMessageDialog msgDialog = new ShowMessageDialog( getShell(), SWT.ICON_INFORMATION | SWT.OK, title, message, message.length() > 300 );
    msgDialog.setType( Const.SHOW_MESSAGE_DIALOG_DB_TEST_SUCCESS );
    msgDialog.open();
  } else {
    Exception exception = databaseTestResults.getException();

    title = BaseMessages.getString( PKG, "DatabaseDialog.DatabaseConnectionTest.title" );
    message = exception != null ? exception.getMessage() : "";

    if ( message.contains( Const.CR ) ) {
      message = message.trim().split( Const.CR )[0];
    }

    new ErrorDialog( getCenteredShell( getShell() ), title, message, exception );
  }
}
 
Example 9
Source File: JobEntryFTPSPUTDialog.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
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();
  }
}
 
Example 10
Source File: DatabaseExplorerDialog.java    From hop with Apache License 2.0 5 votes vote down vote up
public void showCount( String tableName ) {
  GetTableSizeProgressDialog pd = new GetTableSizeProgressDialog( shell, dbMeta, tableName );
  Long size = pd.open();
  if ( size != null ) {
    MessageBox mb = new MessageBox( shell, SWT.ICON_INFORMATION | SWT.OK );
    mb.setMessage( BaseMessages.getString( PKG, "DatabaseExplorerDialog.TableSize.Message", tableName, size.toString() ) );
    mb.setText( BaseMessages.getString( PKG, "DatabaseExplorerDialog.TableSize.Title" ) );
    mb.open();
  }
}
 
Example 11
Source File: JobEntryFTPPUTDialog.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
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, "JobFTPPUT.FolderExists.OK", remoteFoldername ) + Const.CR );
      mb.setText( BaseMessages.getString( PKG, "JobFTPPUT.FolderExists.Title.Ok" ) );
      mb.open();
    }
  }
}
 
Example 12
Source File: SWTAtdl4jUserMessageHandler.java    From atdl4j with MIT License 5 votes vote down vote up
@Override
public void displayMessage(String aTitle, String aMsgText)
{
	MessageBox messageBox = new MessageBox(getShell(), SWT.OK | SWT.ICON_INFORMATION );
	
	if ( aTitle != null )
	{
		messageBox.setText( aTitle );
	}
	
	messageBox.setMessage( aMsgText );
	messageBox.open();
}
 
Example 13
Source File: JobEntryFTPDialog.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
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();
  }
}
 
Example 14
Source File: JobGraph.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
public void replayJob() {
  List<JobEntryCopy> selectedEntries = jobMeta.getSelectedEntries();
  if ( selectedEntries.size() != 1 ) {
    MessageBox box = new MessageBox( shell, SWT.ICON_INFORMATION | SWT.CLOSE );
    box.setText( BaseMessages.getString( PKG, "JobGraph.ReplayJob.SelectOneEntryToStartFrom.Title" ) );
    box.setMessage( BaseMessages.getString( PKG, "JobGraph.ReplayJob.SelectOneEntryToStartFrom.Message" ) );
    box.open();
    return;
  }

  JobEntryCopy copy = selectedEntries.get( 0 );

  spoon.executeJob( jobMeta, true, false, null, false, copy.getName(), copy.getNr() );
}
 
Example 15
Source File: ExcelInputDialog.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
/**
 * Preview the data generated by this step. This generates a transformation using this step & a dummy and previews
 * it.
 */
private void preview() {
  // Create the excel reader step...
  ExcelInputMeta oneMeta = new ExcelInputMeta();
  getInfo( oneMeta );

  if ( oneMeta.isAcceptingFilenames() ) {
    MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION );
    mb.setMessage( BaseMessages.getString( PKG, "ExcelInputDialog.Dialog.SpecifyASampleFile.Message" ) ); // Nothing
    // found
    // that
    // matches
    // your
    // criteria
    mb.setText( BaseMessages.getString( PKG, "ExcelInputDialog.Dialog.SpecifyASampleFile.Title" ) ); // Sorry!
    mb.open();
    return;
  }

  TransMeta previewMeta =
    TransPreviewFactory.generatePreviewTransformation( transMeta, oneMeta, wStepname.getText() );

  EnterNumberDialog numberDialog =
    new EnterNumberDialog( shell, props.getDefaultPreviewSize(), BaseMessages.getString(
      PKG, "ExcelInputDialog.PreviewSize.DialogTitle" ), BaseMessages.getString(
      PKG, "ExcelInputDialog.PreviewSize.DialogMessage" ) );
  int previewSize = numberDialog.open();
  if ( previewSize > 0 ) {
    TransPreviewProgressDialog progressDialog =
      new TransPreviewProgressDialog(
        shell, previewMeta, new String[] { wStepname.getText() }, new int[] { previewSize } );
    progressDialog.open();

    Trans trans = progressDialog.getTrans();
    String loggingText = progressDialog.getLoggingText();

    if ( !progressDialog.isCancelled() ) {
      if ( trans.getResult() != null && trans.getResult().getNrErrors() > 0 ) {
        EnterTextDialog etd =
          new EnterTextDialog(
            shell, BaseMessages.getString( PKG, "System.Dialog.PreviewError.Title" ), BaseMessages
            .getString( PKG, "System.Dialog.PreviewError.Message" ), loggingText, true );
        etd.setReadOnly();
        etd.open();
      }
    }

    PreviewRowsDialog prd =
      new PreviewRowsDialog(
        shell, transMeta, SWT.NONE, wStepname.getText(), progressDialog.getPreviewRowsMeta( wStepname
        .getText() ), progressDialog.getPreviewRows( wStepname.getText() ), loggingText );
    prd.open();
  }
}
 
Example 16
Source File: DatabaseExplorerDialog.java    From hop with Apache License 2.0 4 votes vote down vote up
public void getDDLForOther( String tableName ) {
  if ( databases != null ) {
    Database db = new Database( dbMeta );
    try {
      db.connect();

      IRowMeta r = db.getTableFields( tableName );

      // Now select the other connection...

      // Only take non-SAP ERP connections....
      List<DatabaseMeta> dbs = new ArrayList<DatabaseMeta>();
      for ( int i = 0; i < databases.size(); i++ ) {
        dbs.add( databases.get( i ) );
      }

      String conn[] = new String[ dbs.size() ];
      for ( int i = 0; i < conn.length; i++ ) {
        conn[ i ] = ( dbs.get( i ) ).getName();
      }

      EnterSelectionDialog esd = new EnterSelectionDialog( shell, conn, BaseMessages.getString( PKG, "DatabaseExplorerDialog.TargetDatabase.Title" ),
        BaseMessages.getString( PKG, "DatabaseExplorerDialog.TargetDatabase.Message" ) );
      String target = esd.open();
      if ( target != null ) {
        DatabaseMeta targetdbi = DatabaseMeta.findDatabase( dbs, target );
        Database targetdb = new Database( targetdbi );

        String sql = targetdb.getCreateTableStatement( tableName, r, null, false, null, true );
        SqlEditor se = new SqlEditor( dbMeta, shell, SWT.NONE, dbMeta, dbcache, sql );
        se.open();
      }
    } catch ( HopDatabaseException dbe ) {
      new ErrorDialog( shell, BaseMessages.getString( PKG, "Dialog.Error.Header" ),
        BaseMessages.getString( PKG, "DatabaseExplorerDialog.Error.GenDDL" ), dbe );
    } finally {
      db.disconnect();
    }
  } else {
    MessageBox mb = new MessageBox( shell, SWT.NONE | SWT.ICON_INFORMATION );
    mb.setMessage( BaseMessages.getString( PKG, "DatabaseExplorerDialog.NoConnectionsKnown.Message" ) );
    mb.setText( BaseMessages.getString( PKG, "DatabaseExplorerDialog.NoConnectionsKnown.Title" ) );
    mb.open();
  }
}
 
Example 17
Source File: TextFileInputDialog.java    From hop with Apache License 2.0 4 votes vote down vote up
private void preview() {
  // Create the XML input transform
  TextFileInputMeta oneMeta = new TextFileInputMeta();
  getInfo( oneMeta );

  if ( oneMeta.isAcceptingFilenames() ) {
    MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION );
    mb.setMessage( BaseMessages.getString( PKG, "TextFileInputDialog.Dialog.SpecifyASampleFile.Message" ) );
    mb.setText( BaseMessages.getString( PKG, "TextFileInputDialog.Dialog.SpecifyASampleFile.Title" ) );
    mb.open();
    return;
  }

  PipelineMeta previewMeta = PipelinePreviewFactory.generatePreviewTransformation( pipelineMeta, oneMeta,
    wTransformName.getText() );

  EnterNumberDialog numberDialog =
    new EnterNumberDialog( shell, props.getDefaultPreviewSize(), BaseMessages.getString( PKG,
      "TextFileInputDialog.PreviewSize.DialogTitle" ), BaseMessages.getString( PKG,
      "TextFileInputDialog.PreviewSize.DialogMessage" ) );
  int previewSize = numberDialog.open();
  if ( previewSize > 0 ) {
    PipelinePreviewProgressDialog progressDialog =
      new PipelinePreviewProgressDialog( shell, previewMeta, new String[] { wTransformName.getText() },
        new int[] { previewSize } );
    progressDialog.open();

    Pipeline pipeline = progressDialog.getPipeline();
    String loggingText = progressDialog.getLoggingText();

    if ( !progressDialog.isCancelled() ) {
      if ( pipeline.getResult() != null && pipeline.getResult().getNrErrors() > 0 ) {
        EnterTextDialog etd =
          new EnterTextDialog( shell, BaseMessages.getString( PKG, "System.Dialog.PreviewError.Title" ),
            BaseMessages.getString( PKG, "System.Dialog.PreviewError.Message" ), loggingText, true );
        etd.setReadOnly();
        etd.open();
      }
    }

    PreviewRowsDialog prd =
      new PreviewRowsDialog( shell, pipelineMeta, SWT.NONE, wTransformName.getText(), progressDialog
        .getPreviewRowsMeta( wTransformName.getText() ), progressDialog.getPreviewRows( wTransformName.getText() ),
        loggingText );
    prd.open();
  }
}
 
Example 18
Source File: TextFileInputDialog.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
private void preview() {
  // Create the XML input step
  TextFileInputMeta oneMeta = new TextFileInputMeta();
  getInfo( oneMeta, true );

  if ( oneMeta.inputFiles.acceptingFilenames ) {
    MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION );
    mb.setMessage( BaseMessages.getString( PKG, "TextFileInputDialog.Dialog.SpecifyASampleFile.Message" ) );
    mb.setText( BaseMessages.getString( PKG, "TextFileInputDialog.Dialog.SpecifyASampleFile.Title" ) );
    mb.open();
    return;
  }

  TransMeta previewMeta =
      TransPreviewFactory.generatePreviewTransformation( transMeta, oneMeta, wStepname.getText() );

  EnterNumberDialog numberDialog =
      new EnterNumberDialog( shell, props.getDefaultPreviewSize(), BaseMessages.getString( PKG,
          "TextFileInputDialog.PreviewSize.DialogTitle" ), BaseMessages.getString( PKG,
              "TextFileInputDialog.PreviewSize.DialogMessage" ) );
  int previewSize = numberDialog.open();
  if ( previewSize > 0 ) {
    TransPreviewProgressDialog progressDialog =
        new TransPreviewProgressDialog( shell, previewMeta, new String[] { wStepname.getText() }, new int[] {
          previewSize } );
    progressDialog.open();

    Trans trans = progressDialog.getTrans();
    String loggingText = progressDialog.getLoggingText();

    if ( !progressDialog.isCancelled() ) {
      if ( trans.getResult() != null && trans.getResult().getNrErrors() > 0 ) {
        EnterTextDialog etd =
            new EnterTextDialog( shell, BaseMessages.getString( PKG, "System.Dialog.PreviewError.Title" ),
                BaseMessages.getString( PKG, "System.Dialog.PreviewError.Message" ), loggingText, true );
        etd.setReadOnly();
        etd.open();
      }
    }

    PreviewRowsDialog prd =
        new PreviewRowsDialog( shell, transMeta, SWT.NONE, wStepname.getText(), progressDialog.getPreviewRowsMeta(
            wStepname.getText() ), progressDialog.getPreviewRows( wStepname.getText() ), loggingText );
    prd.open();
  }
}
 
Example 19
Source File: ExcelInputDialog.java    From hop with Apache License 2.0 4 votes vote down vote up
/**
 * Preview the data generated by this transform. This generates a pipeline using this transform & a dummy and previews it.
 */
private void preview() {
  // Create the excel reader transform...
  ExcelInputMeta oneMeta = new ExcelInputMeta();
  getInfo( oneMeta );

  if ( oneMeta.isAcceptingFilenames() ) {
    MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_INFORMATION );
    mb.setMessage( BaseMessages.getString( PKG, "ExcelInputDialog.Dialog.SpecifyASampleFile.Message" ) ); // Nothing
    // found
    // that
    // matches
    // your
    // criteria
    mb.setText( BaseMessages.getString( PKG, "ExcelInputDialog.Dialog.SpecifyASampleFile.Title" ) ); // Sorry!
    mb.open();
    return;
  }

  PipelineMeta previewMeta = PipelinePreviewFactory.generatePreviewPipeline( pipelineMeta, pipelineMeta.getMetadataProvider(),
    oneMeta, wTransformName.getText() );

  EnterNumberDialog numberDialog =
    new EnterNumberDialog( shell, props.getDefaultPreviewSize(), BaseMessages.getString(
      PKG, "ExcelInputDialog.PreviewSize.DialogTitle" ), BaseMessages.getString(
      PKG, "ExcelInputDialog.PreviewSize.DialogMessage" ) );
  int previewSize = numberDialog.open();
  if ( previewSize > 0 ) {
    PipelinePreviewProgressDialog progressDialog =
      new PipelinePreviewProgressDialog(
        shell, previewMeta, new String[] { wTransformName.getText() }, new int[] { previewSize } );
    progressDialog.open();

    Pipeline pipeline = progressDialog.getPipeline();
    String loggingText = progressDialog.getLoggingText();

    if ( !progressDialog.isCancelled() ) {
      if ( pipeline.getResult() != null && pipeline.getResult().getNrErrors() > 0 ) {
        EnterTextDialog etd =
          new EnterTextDialog(
            shell, BaseMessages.getString( PKG, "System.Dialog.PreviewError.Title" ), BaseMessages
            .getString( PKG, "System.Dialog.PreviewError.Message" ), loggingText, true );
        etd.setReadOnly();
        etd.open();
      }
    }

    PreviewRowsDialog prd =
      new PreviewRowsDialog(
        shell, pipelineMeta, SWT.NONE, wTransformName.getText(), progressDialog.getPreviewRowsMeta( wTransformName
        .getText() ), progressDialog.getPreviewRows( wTransformName.getText() ), loggingText );
    prd.open();
  }
}
 
Example 20
Source File: CassandraOutputDialog.java    From learning-hadoop with Apache License 2.0 4 votes vote down vote up
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();
      }
    }
  }