Tabnine Logo
BaseMessages.getString
Code IndexAdd Tabnine to your IDE (free)

How to use
getString
method
in
org.pentaho.di.i18n.BaseMessages

Best Java code snippets using org.pentaho.di.i18n.BaseMessages.getString (Showing top 20 results out of 585)

Refine searchRefine arrow

  • KettleException.<init>
  • FormData.<init>
  • FormAttachment.<init>
  • FormLayout.<init>
  • Label.setLayoutData
  • Label.<init>
  • Label.setText
origin: pentaho/pentaho-kettle

 @Override
 public void transFinished( Trans trans ) throws KettleException {
  try {
   endProcessing();
   lastWrittenStepPerformanceSequenceNr =
    writeStepPerformanceLogRecords( lastWrittenStepPerformanceSequenceNr, LogStatus.END );
  } catch ( KettleException e ) {
   throw new KettleException( BaseMessages.getString( PKG,
    "Trans.Exception.UnableToPerformLoggingAtTransEnd" ), e );
  }
 }
} );
origin: pentaho/pentaho-kettle

protected Button createSettingsButton( Composite p, String text, String title, Control top, SelectionAdapter sa ) {
 Button button = new Button( p, SWT.CHECK );
 button.setText( BaseMessages.getString( PKG, text ) );
 button.setToolTipText( BaseMessages.getString( PKG, title ) );
 props.setLook( button );
 FormData fd = new FormData();
 fd.left = new FormAttachment( 0, Const.MARGIN * 2 );
 if ( top == null ) {
  fd.top = new FormAttachment( 0, 10 );
 } else {
  fd.top = new FormAttachment( top, 5 );
 }
 fd.right = new FormAttachment( 100, 0 );
 button.setLayoutData( fd );
 button.addSelectionListener( sa );
 return button;
}
origin: pentaho/pentaho-kettle

@Override
protected Control addAdditionalComponentIfNeed( int middle, int margin, Composite wFileComp, Composite topComp ) {
 // Run this as a command instead?
 wlFileIsCommand = new Label( wFileComp, SWT.RIGHT );
 wlFileIsCommand
  .setText( BaseMessages.getString( textFileOutputLegacyMetaClass, "TextFileOutputLegacyDialog.FileIsCommand.Label" ) );
 props.setLook( wlFileIsCommand );
 fdlFileIsCommand = new FormData();
 fdlFileIsCommand.left = new FormAttachment( 0, 0 );
 fdlFileIsCommand.top = new FormAttachment( topComp, margin );
 fdlFileIsCommand.right = new FormAttachment( middle, -margin );
 wlFileIsCommand.setLayoutData( fdlFileIsCommand );
 wFileIsCommand = new Button( wFileComp, SWT.CHECK );
 props.setLook( wFileIsCommand );
 fdFileIsCommand = new FormData();
 fdFileIsCommand.left = new FormAttachment( middle, 0 );
 fdFileIsCommand.top = new FormAttachment( topComp, margin );
 fdFileIsCommand.right = new FormAttachment( 100, 0 );
 wFileIsCommand.setLayoutData( fdFileIsCommand );
 wFileIsCommand.addSelectionListener( new SelectionAdapter() {
  public void widgetSelected( SelectionEvent e ) {
   input.setChanged();
   enableParentFolder();
  }
 } );
 return wlFileIsCommand;
}
origin: pentaho/pentaho-kettle

fileNameSupplier = repository == null ? this::promptForLocalFile : this::promptForRepositoryFile;
FormLayout formLayout = new FormLayout();
formLayout.marginWidth = 0;
formLayout.marginHeight = 0;
FormData fdFileName = new FormData();
fdFileName.left = new FormAttachment( 0, 0 );
fdFileName.top = new FormAttachment( 0, 0 );
fdFileName.width = 275;
wFileName.setLayoutData( fdFileName );
wBrowse.setText( BaseMessages.getString( PKG, "VFSFileSelection.Dialog.Browse" ) );
FormData fdBrowse = new FormData();
fdBrowse.left = new FormAttachment( wFileName, 5 );
fdBrowse.top = new FormAttachment( wFileName, 0, SWT.TOP );
wBrowse.setLayoutData( fdBrowse );
origin: pentaho/pentaho-kettle

/**
 * @param factory
 *          factory to use.
 */
protected void buildLogFileLine( final PluginWidgetFactory factory ) {
 final Control topControl = this.wFastLoadPath;
 this.wlLogFile = factory.createRightLabel( BaseMessages.getString( PKG, "TeraFastDialog.LogFile.Label" ) );
 this.props.setLook( this.wlLogFile );
 this.wlLogFile.setLayoutData( factory.createLabelLayoutData( topControl ) );
 this.wbLogFile = factory.createPushButton( BaseMessages.getString( PKG, "TeraFastDialog.Browse.Button" ) );
 this.props.setLook( this.wbLogFile );
 FormData formData = factory.createControlLayoutData( topControl );
 formData.left = null;
 this.wbLogFile.setLayoutData( formData );
 this.wLogFile = factory.createSingleTextVarLeft();
 this.props.setLook( this.wLogFile );
 formData = factory.createControlLayoutData( topControl );
 formData.right = new FormAttachment( this.wbLogFile, -factory.getMargin() );
 this.wLogFile.setLayoutData( formData );
}
origin: pentaho/pentaho-kettle

props.setLook( composite );
FormLayout compLayout = new FormLayout();
compLayout.marginHeight = Const.FORM_MARGIN;
compLayout.marginWidth = Const.FORM_MARGIN;
composite.setLayout( compLayout );
wlServername = new Label( composite, SWT.RIGHT );
wlServername.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPageInformix.Servername.Label" ) );
props.setLook( wlServername );
fdlServername = new FormData();
fdlServername.top = new FormAttachment( 0, 0 );
fdlServername.left = new FormAttachment( 0, 0 );
fdlServername.right = new FormAttachment( middle, 0 );
wlServername.setLayoutData( fdlServername );
fdServername = new FormData();
fdServername.top = new FormAttachment( 0, 0 );
fdServername.left = new FormAttachment( middle, margin );
origin: pentaho/pentaho-kettle

private void buildSetupTab() {
 wSetupTab = new CTabItem( wTabFolder, SWT.NONE );
 wSetupTab.setText( BaseMessages.getString( PKG, "BaseStreamingDialog.SetupTab" ) );
 wSetupComp = new Composite( wTabFolder, SWT.NONE );
 props.setLook( wSetupComp );
 FormLayout setupLayout = new FormLayout();
 setupLayout.marginHeight = 15;
 setupLayout.marginWidth = 15;
 wSetupComp.setLayout( setupLayout );
 buildSetup( wSetupComp );
 FormData fdSetupComp = new FormData();
 fdSetupComp.left = new FormAttachment( 0, 0 );
 fdSetupComp.top = new FormAttachment( 0, 0 );
 fdSetupComp.right = new FormAttachment( 100, 0 );
 fdSetupComp.bottom = new FormAttachment( 100, 0 );
 wSetupComp.setLayoutData( fdSetupComp );
 wSetupComp.layout();
 wSetupTab.setControl( wSetupComp );
}
origin: pentaho/pentaho-kettle

private void ensureHasPermissions() throws KettleException {
 if ( !hasNecessaryPermissions ) {
  throw new KettleException( BaseMessages.getString( UserRoleDelegate.class,
    "UserRoleDelegate.ERROR_0014_INSUFFICIENT_PRIVILEGES" ) ); //$NON-NLS-1$
 }
}
origin: pentaho/pentaho-kettle

/**
 * @param factory
 *          factory to use.
 */
protected void buildDataFileLine( final PluginWidgetFactory factory ) {
 final Control topControl = this.wbTruncateTable;
 this.wlDataFile = factory.createRightLabel( BaseMessages.getString( PKG, "TeraFastDialog.DataFile.Label" ) );
 this.props.setLook( this.wlDataFile );
 this.wlDataFile.setLayoutData( factory.createLabelLayoutData( topControl ) );
 this.wbDataFile = factory.createPushButton( BaseMessages.getString( PKG, "TeraFastDialog.Browse.Button" ) );
 this.props.setLook( this.wbDataFile );
 FormData formData = factory.createControlLayoutData( topControl );
 formData.left = null;
 this.wbDataFile.setLayoutData( formData );
 this.wDataFile = factory.createSingleTextVarLeft();
 this.props.setLook( this.wDataFile );
 formData = factory.createControlLayoutData( topControl );
 formData.right = new FormAttachment( this.wbDataFile, -factory.getMargin() );
 this.wDataFile.setLayoutData( formData );
}
origin: pentaho/pentaho-kettle

private static Button newButton( final Composite parent ) {
 Button button = new Button( parent, SWT.PUSH );
 button.setImage( GUIResource.getInstance().getImageHelpWeb() );
 button.setText( BaseMessages.getString( PKG, "System.Button.Help" ) );
 button.setToolTipText( BaseMessages.getString( PKG, "System.Tooltip.Help" ) );
 FormData fdButton = new FormData();
 fdButton.left = new FormAttachment( 0, 0 );
 fdButton.bottom = new FormAttachment( 100, 0 );
 button.setLayoutData( fdButton );
 return button;
}
origin: pentaho/pentaho-kettle

props.setLook( composite );
FormLayout compLayout = new FormLayout();
compLayout.marginHeight = Const.FORM_MARGIN;
compLayout.marginWidth = Const.FORM_MARGIN;
composite.setLayout( compLayout );
wlDSN = new Label( composite, SWT.RIGHT );
wlDSN.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPageODBC.DSN.Label" ) );
props.setLook( wlDSN );
fdlDSN = new FormData();
fdlDSN.left = new FormAttachment( 0, 0 );
fdlDSN.right = new FormAttachment( middle, 0 );
wlDSN.setLayoutData( fdlDSN );
wDSN = new Text( composite, SWT.SINGLE | SWT.BORDER );
props.setLook( wDSN );
fdDSN = new FormData();
fdDSN.left = new FormAttachment( middle, margin );
fdDSN.right = new FormAttachment( 100, 0 );
wDSN.setLayoutData( fdDSN );
origin: pentaho/pentaho-kettle

private void buildFieldsTab() {
 CTabItem wFieldsTab = new CTabItem( wTabFolder, SWT.NONE, 3 );
 wFieldsTab.setText( BaseMessages.getString( PKG, "MQTTConsumerDialog.FieldsTab" ) );
 Composite wFieldsComp = new Composite( wTabFolder, SWT.NONE );
 props.setLook( wFieldsComp );
 FormLayout fieldsLayout = new FormLayout();
 fieldsLayout.marginHeight = 15;
 fieldsLayout.marginWidth = 15;
 wFieldsComp.setLayout( fieldsLayout );
 FormData fieldsFormData = new FormData();
 fieldsFormData.left = new FormAttachment( 0, 0 );
 fieldsFormData.top = new FormAttachment( wFieldsComp, 0 );
 fieldsFormData.right = new FormAttachment( 100, 0 );
 fieldsFormData.bottom = new FormAttachment( 100, 0 );
 wFieldsComp.setLayoutData( fieldsFormData );
 buildFieldTable( wFieldsComp, wFieldsComp );
 wFieldsComp.layout();
 wFieldsTab.setControl( wFieldsComp );
}
origin: pentaho/pentaho-kettle

public List<String> getAllowedActions( String nameSpace ) throws KettleException {
 try {
  return allowedActionsActiveCache.get( nameSpace );
 } catch ( Exception e ) {
  throw new KettleException( BaseMessages.getString( AbsSecurityProvider.class,
    "AbsSecurityProvider.ERROR_0003_UNABLE_TO_ACCESS_GET_ALLOWED_ACTIONS" ), e ); //$NON-NLS-1$
 }
}
origin: pentaho/pentaho-kettle

/**
 * @param factory
 *          factory to use.
 */
protected void buildFastloadLine( final PluginWidgetFactory factory ) {
 final Control topControl = this.wVariableSubstitution;
 this.wlFastLoadPath =
  factory.createRightLabel( BaseMessages.getString( PKG, "TeraFastDialog.FastloadPath.Label" ) );
 this.props.setLook( this.wlFastLoadPath );
 this.wlFastLoadPath.setLayoutData( factory.createLabelLayoutData( topControl ) );
 this.wbFastLoadPath = factory.createPushButton( BaseMessages.getString( PKG, "TeraFastDialog.Browse.Button" ) );
 this.props.setLook( this.wbFastLoadPath );
 FormData formData = factory.createControlLayoutData( topControl );
 formData.left = null;
 this.wbFastLoadPath.setLayoutData( formData );
 this.wFastLoadPath = factory.createSingleTextVarLeft();
 this.props.setLook( this.wFastLoadPath );
 formData = factory.createControlLayoutData( topControl );
 formData.right = new FormAttachment( this.wbFastLoadPath, -factory.getMargin() );
 this.wFastLoadPath.setLayoutData( formData );
}
origin: pentaho/pentaho-kettle

private void setCloseButton() {
 closeButton = new Button( shell, SWT.PUSH );
 closeButton.setText( BaseMessages.getString( PKG, "System.Button.Close" ) );
 FormData fdbutton = new FormData();
 fdbutton.right = new FormAttachment( 100, 0 ); //Button should below the link and separated by 30
 fdbutton.top = new FormAttachment( link, padding );
 fdbutton.height = padding;
 closeButton.setLayoutData( fdbutton );
 props.setLook( closeButton );
 // Add listeners
 closeButton.addListener( SWT.Selection, new Listener() {
  public void handleEvent( Event e ) {
   close();
  }
 } );
}
origin: pentaho/pentaho-kettle

props.setLook( composite );
FormLayout compLayout = new FormLayout();
compLayout.marginHeight = Const.FORM_MARGIN;
compLayout.marginWidth = Const.FORM_MARGIN;
composite.setLayout( compLayout );
wlTNS = new Label( composite, SWT.RIGHT );
wlTNS.setText( BaseMessages.getString( PKG, "CreateDatabaseWizardPageOCI.TNS.Label" ) );
props.setLook( wlTNS );
fdlTNS = new FormData();
fdlTNS.left = new FormAttachment( 0, 0 );
fdlTNS.right = new FormAttachment( middle, 0 );
wlTNS.setLayoutData( fdlTNS );
wTNS = new Text( composite, SWT.SINGLE | SWT.BORDER );
props.setLook( wTNS );
fdTNS = new FormData();
fdTNS.left = new FormAttachment( middle, margin );
fdTNS.right = new FormAttachment( 100, 0 );
wTNS.setLayoutData( fdTNS );
origin: pentaho/pentaho-kettle

private void buildProperiesTab() {
 CTabItem wPropertiesTab = new CTabItem( wTabFolder, SWT.NONE );
 wPropertiesTab.setText( BaseMessages.getString( PKG, "JmsProducerDialog.Properties.Tab" ) );
 Composite wPropertiesComp = new Composite( wTabFolder, SWT.NONE );
 props.setLook( wPropertiesComp );
 FormLayout fieldsLayout = new FormLayout();
 fieldsLayout.marginHeight = 15;
 fieldsLayout.marginWidth = 15;
 wPropertiesComp.setLayout( fieldsLayout );
 FormData propertiesFormData = new FormData();
 propertiesFormData.left = new FormAttachment( 0, 0 );
 propertiesFormData.top = new FormAttachment( wPropertiesComp, 0 );
 propertiesFormData.right = new FormAttachment( 100, 0 );
 propertiesFormData.bottom = new FormAttachment( 100, 0 );
 wPropertiesComp.setLayoutData( propertiesFormData );
 buildPropertiesTable( wPropertiesComp );
 wPropertiesComp.layout();
 wPropertiesTab.setControl( wPropertiesComp );
}
origin: pentaho/pentaho-kettle

public boolean isAllowed( String actionName ) throws KettleException {
 try {
  return isAllowedActiveCache.get( actionName );
 } catch ( Exception e ) {
  throw new KettleException( BaseMessages.getString( AbsSecurityProvider.class,
   "AbsSecurityProvider.ERROR_0002_UNABLE_TO_ACCESS_IS_ALLOWED" ), e ); //$NON-NLS-1$
 }
}
origin: pentaho/pentaho-kettle

/**
 * @param factory
 *          factory to use.
 */
protected void buildControlFileLine( final PluginWidgetFactory factory ) {
 final Control topControl = this.wUseControlFile;
 this.wlControlFile =
  factory.createRightLabel( BaseMessages.getString( PKG, "TeraFastDialog.ControlFile.Label" ) );
 this.props.setLook( this.wlControlFile );
 this.wlControlFile.setLayoutData( factory.createLabelLayoutData( topControl ) );
 this.wbControlFile = factory.createPushButton( BaseMessages.getString( PKG, "TeraFastDialog.Browse.Button" ) );
 this.props.setLook( this.wbControlFile );
 FormData formData = factory.createControlLayoutData( topControl );
 formData.left = null;
 this.wbControlFile.setLayoutData( formData );
 this.wControlFile = factory.createSingleTextVarLeft();
 this.props.setLook( this.wControlFile );
 formData = factory.createControlLayoutData( topControl );
 formData.right = new FormAttachment( this.wbControlFile, -factory.getMargin() );
 this.wControlFile.setLayoutData( formData );
}
origin: pentaho/pentaho-kettle

Label rulesLable = new Label( shell, SWT.NONE );
rulesLable.setText( BaseMessages.getString( PKG, "NumberRange.Ranges" ) );
props.setLook( rulesLable );
FormData lableFormData = new FormData();
lableFormData.left = new FormAttachment( 0, 0 );
lableFormData.right = new FormAttachment( props.getMiddlePct(), -Const.MARGIN );
lableFormData.top = new FormAttachment( fallBackValueControl, Const.MARGIN );
rulesLable.setLayoutData( lableFormData );
colinf[0] =
 new ColumnInfo(
  BaseMessages.getString( PKG, "NumberRange.LowerBound" ), ColumnInfo.COLUMN_TYPE_TEXT, false );
colinf[1] =
 new ColumnInfo(
  BaseMessages.getString( PKG, "NumberRange.UpperBound" ), ColumnInfo.COLUMN_TYPE_TEXT, false );
colinf[2] =
 new ColumnInfo( BaseMessages.getString( PKG, "NumberRange.Value" ), ColumnInfo.COLUMN_TYPE_TEXT, false );
  transMeta, shell, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI, colinf, FieldsRows, lsMod, props );
fdFields = new FormData();
fdFields.left = new FormAttachment( 0, 0 );
fdFields.top = new FormAttachment( rulesLable, Const.MARGIN );
org.pentaho.di.i18nBaseMessagesgetString

Popular methods of BaseMessages

  • <init>
  • getHandler
  • getInstance
  • getInstanceHandler
  • init

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now