Codota Logo
SpoonInterface.messageBox
Code IndexAdd Codota to your IDE (free)

How to use
messageBox
method
in
org.pentaho.di.core.gui.SpoonInterface

Best Java code snippets using org.pentaho.di.core.gui.SpoonInterface.messageBox (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

public void onError( Throwable t ) {
 SpoonFactory.getInstance().messageBox( t.getLocalizedMessage(),
   resourceBundle.getString( "RepositoryConfigDialog.InitializationFailed" ), false, Const.ERROR ); //$NON-NLS-1$
 log.error( resourceBundle.getString( "RepositoryConfigDialog.ErrorStartingXulApplication" ), t );//$NON-NLS-1$
}
origin: pentaho/pentaho-kettle

public static String Alert( ScriptEngine actualContext, Bindings actualObject, Object[] ArgList,
 Object FunctionContext ) {
 SpoonInterface spoon = SpoonFactory.getInstance();
 if ( ArgList.length == 1 && spoon != null ) {
  String strMessage = (String) ArgList[0];
  spoon.messageBox( strMessage, "Alert", false, Const.INFO );
 }
 return "";
}
origin: pentaho/pentaho-kettle

 public void run() {
  result[0] = SpoonFactory.getInstance().messageBox( message, text, true, Const.INFO );
 }
} );
origin: pentaho/pentaho-kettle

public static String Alert( Context actualContext, Scriptable actualObject, Object[] ArgList,
 Function FunctionContext ) {
 SpoonInterface spoon = SpoonFactory.getInstance();
 if ( ArgList.length == 1 && spoon != null ) {
  String strMessage = Context.toString( ArgList[0] );
  boolean ok = spoon.messageBox( strMessage, "Alert", true, Const.INFO );
  if ( !ok ) {
   throw new RuntimeException( "Alert dialog cancelled by user." );
  }
 }
 return "";
}
origin: pentaho/pentaho-kettle

 show();
} catch ( XulException e ) {
 SpoonFactory.getInstance().messageBox( e.getLocalizedMessage(),
   resourceBundle.getString( "RepositoryConfigDialog.InitializationFailed" ), false, Const.ERROR ); //$NON-NLS-1$
 log.error( resourceBundle.getString( "RepositoryConfigDialog.ErrorStartingXulApplication" ), e );//$NON-NLS-1$
origin: pentaho/pentaho-kettle

public AuthProviderDialog( Shell shell ) {
 log = new LogChannel( resourceBundle.getString( "log.name" ) );
 try {
  SwtXulLoader xulLoader = new SwtXulLoader();
  xulLoader.setOuterContext( shell );
  container = xulLoader.loadXul( XUL_FILE, resourceBundle );
  final XulRunner runner = new SwtXulRunner();
  runner.addContainer( container );
  BindingFactory bf = new SwtBindingFactory();
  bf.setDocument( container.getDocumentRoot() );
  controller.setBindingFactory( bf );
  controller.setResourceBundle( resourceBundle );
  container.addEventHandler( controller );
  try {
   runner.initialize();
  } catch ( XulException e ) {
   SpoonFactory.getInstance().messageBox( e.getLocalizedMessage(),
     resourceBundle.getString( "error.on_initialization" ), false, Const.ERROR );
   log.logError( resourceBundle.getString( "error.on_initialization" ), e );
  }
 } catch ( XulException e ) {
  log.logError( resourceBundle.getString( "error.on_initialization" ), e );
 }
}
origin: pentaho/pentaho-kettle

public RepositoriesDialog( Shell shell, String preferredRepositoryName, ILoginCallback callback ) {
 try {
  this.callback = callback;
  KettleXulLoader xulLoader = new KettleXulLoader();
  xulLoader.setOuterContext( shell );
  xulLoader.setSettingsManager( XulSpoonSettingsManager.getInstance() );
  container = xulLoader.loadXul( "org/pentaho/di/ui/repository/xul/repositories.xul", resourceBundle );
  final XulRunner runner = new SwtXulRunner();
  runner.addContainer( container );
  BindingFactory bf = new DefaultBindingFactory();
  bf.setDocument( container.getDocumentRoot() );
  repositoriesController.setBindingFactory( bf );
  repositoriesController.setPreferredRepositoryName( preferredRepositoryName );
  repositoriesController.setMessages( resourceBundle );
  repositoriesController.setCallback( callback );
  repositoriesController.setShell( getShell() );
  container.addEventHandler( repositoriesController );
  try {
   runner.initialize();
  } catch ( XulException e ) {
   SpoonFactory.getInstance().messageBox(
    e.getLocalizedMessage(), "Service Initialization Failed", false, Const.ERROR );
   log.error( resourceBundle.getString( "RepositoryLoginDialog.ErrorStartingXulApplication" ), e );
  }
 } catch ( XulException e ) {
  log.error( resourceBundle.getString( "RepositoryLoginDialog.ErrorLoadingXulApplication" ), e );
 }
}
org.pentaho.di.core.guiSpoonInterfacemessageBox

Popular methods of SpoonInterface

    Popular in Java

    • Running tasks concurrently on multiple threads
    • orElseThrow (Optional)
      Return the contained value, if present, otherwise throw an exception to be created by the provided s
    • setRequestProperty (URLConnection)
      Sets the general request property. If a property with the key already exists, overwrite its value wi
    • getApplicationContext (Context)
    • 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
    • BigDecimal (java.math)
      An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
    • KeyStore (java.security)
      This class represents an in-memory collection of keys and certificates. It manages two types of entr
    • Stream (java.util.stream)
      A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
    • ServletException (javax.servlet)
      Defines a general exception a servlet can throw when it encounters difficulty.
    • JFrame (javax.swing)
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now