Tabnine Logo
PluginInterface.getImageFile
Code IndexAdd Tabnine to your IDE (free)

How to use
getImageFile
method
in
org.pentaho.di.core.plugins.PluginInterface

Best Java code snippets using org.pentaho.di.core.plugins.PluginInterface.getImageFile (Showing top 6 results out of 315)

origin: pentaho/pentaho-kettle

 /**
  * @param fragment A plugin interface to merge with
  */
 default void merge( PluginInterface fragment ) {
  if ( fragment != null ) {
   Optional.ofNullable( fragment.getClassMap() ).ifPresent( this.getClassMap()::putAll );
   Optional.ofNullable( fragment.getImageFile() ).ifPresent( this::setImageFile );
   Optional.ofNullable( fragment.getLibraries() ).ifPresent( this.getLibraries()::addAll );
   Optional.ofNullable( fragment.getErrorHelpFile() ).ifPresent( this::setErrorHelpFile );
   Optional.ofNullable( fragment.getDocumentationUrl() ).ifPresent( this::setDocumentationUrl );
   Optional.ofNullable( fragment.getCasesUrl() ).ifPresent( this::setCasesUrl );
   Optional.ofNullable( fragment.getForumUrl() ).ifPresent( this::setForumUrl );
   Optional.ofNullable( fragment.getClassLoaderGroup() ).ifPresent( this::setClassLoaderGroup );
  }
 }
}
origin: pentaho/pentaho-kettle

private SwingUniversalImage getUniversalImageIcon( PluginInterface plugin ) throws KettleException {
 try {
  PluginRegistry registry = PluginRegistry.getInstance();
  String filename = plugin.getImageFile();
   throw new KettleException( "Unable to find file: " + plugin.getImageFile() + " for plugin: " + plugin );
 } catch ( Throwable e ) {
  throw new KettleException( "Unable to load image from file : '"
   + plugin.getImageFile() + "' for plugin: " + plugin, e );
origin: pentaho/pentaho-kettle

private Map<String, SwingUniversalImage> loadEntryImages() {
 Map<String, SwingUniversalImage> map = new HashMap<>();
 for ( PluginInterface plugin : PluginRegistry.getInstance().getPlugins( JobEntryPluginType.class ) ) {
  try {
   if ( JobMeta.STRING_SPECIAL.equals( plugin.getIds()[0] ) ) {
    continue;
   }
   SwingUniversalImage image = getUniversalImageIcon( plugin );
   if ( image == null ) {
    throw new KettleException( "Unable to find image file: "
     + plugin.getImageFile() + " for plugin: " + plugin );
   }
   map.put( plugin.getIds()[0], image );
  } catch ( Exception e ) {
   log.logError( "Unable to load job entry icon image for plugin: "
    + plugin.getName() + " (id=" + plugin.getIds()[0] + ")", e );
  }
 }
 return map;
}
origin: pentaho/pentaho-kettle

Image small_image = null;
String filename = plugin.getImageFile();
try {
 ClassLoader classLoader = registry.getClassLoader( plugin );
origin: pentaho/pentaho-kettle

Image small_image = null;
String filename = step.getImageFile();
try {
 ClassLoader classLoader = registry.getClassLoader( step );
origin: pentaho/pentaho-kettle

/**
 * @param pluginType the type of plugin to get information for
 * @return a row buffer containing plugin information for the given plugin type
 * @throws KettlePluginException
 */
public RowBuffer getPluginInformation( Class<? extends PluginTypeInterface> pluginType )
  throws KettlePluginException {
 RowBuffer rowBuffer = new RowBuffer( getPluginInformationRowMeta() );
 for ( PluginInterface plugin : getPlugins( pluginType ) ) {
  Object[] row = new Object[getPluginInformationRowMeta().size()];
  int rowIndex = 0;
  row[rowIndex++] = getPluginType( plugin.getPluginType() ).getName();
  row[rowIndex++] = plugin.getIds()[0];
  row[rowIndex++] = plugin.getName();
  row[rowIndex++] = Const.NVL( plugin.getDescription(), "" );
  row[rowIndex++] = Utils.isEmpty( plugin.getLibraries() ) ? "" : plugin.getLibraries().toString();
  row[rowIndex++] = Const.NVL( plugin.getImageFile(), "" );
  row[rowIndex++] = plugin.getClassMap().values().toString();
  row[rowIndex] = Const.NVL( plugin.getCategory(), "" );
  rowBuffer.getBuffer().add( row );
 }
 return rowBuffer;
}
org.pentaho.di.core.pluginsPluginInterfacegetImageFile

Popular methods of PluginInterface

  • getIds
  • getName
  • getDescription
  • getPluginDirectory
  • getClassMap
  • getPluginType
  • getCategory
  • getDocumentationUrl
  • getErrorHelpFile
  • getMainType
  • isNativePlugin
  • matches
  • isNativePlugin,
  • matches,
  • getCasesUrl,
  • getClassLoaderGroup,
  • getForumUrl,
  • getLibraries,
  • getSuggestion,
  • isSeparateClassLoaderNeeded,
  • merge

Popular in Java

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • getExternalFilesDir (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Github Copilot alternatives
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