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

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

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

origin: pentaho/pentaho-kettle

/**
 * Retrieve a list of plugins per category.
 *
 * @param pluginType     The type of plugins to search
 * @param pluginCategory The category to look in
 * @return An unmodifiable list of plugins that belong to the specified type and category.
 */
public <T extends PluginTypeInterface> List<PluginInterface> getPluginsByCategory( Class<T> pluginType,
  String pluginCategory ) {
 List<PluginInterface> plugins = getPlugins( pluginType ).stream()
  .filter( plugin -> plugin.getCategory() != null && plugin.getCategory().equals( pluginCategory ) )
  .collect( Collectors.toList() );
 return Collections.unmodifiableList( plugins );
}
origin: pentaho/pentaho-kettle

if ( !Utils.isEmpty( plugin.getCategory() ) ) {
  .add( plugin.getCategory() );
origin: pentaho/pentaho-kettle

public static final Button setShellImage( Shell shell, JobEntryInterface jobEntryInterface ) {
 Button helpButton = null;
 try {
  final PluginInterface plugin = getPlugin( jobEntryInterface );
  if ( plugin.getCategory().equals( BaseMessages.getString( PKGBASE, "JobCategory.Category.Deprecated" ) ) ) {
   addDeprecation( shell );
  }
  helpButton = HelpUtils.createHelpButton( shell, HelpUtils.getHelpDialogTitle( plugin ), plugin );
  shell.setImage( getImage( shell, plugin ) );
 } catch ( Throwable e ) {
  // Ignore unexpected errors, not worth it
 }
 return helpButton;
}
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;
}
origin: pentaho/pentaho-kettle

.filter( baseStep -> baseStep.getCategory().equalsIgnoreCase( baseCategory ) )
.sorted( Comparator.comparing( PluginInterface::getName ) )
.collect( Collectors.toList() );
 if ( baseJobEntries.get( j ).getCategory().equalsIgnoreCase( baseCategory ) ) {
  final Image jobEntryImage =
    GUIResource.getInstance().getImagesJobentriesSmall().get( baseJobEntries.get( j ).getIds()[0] );
org.pentaho.di.core.pluginsPluginInterfacegetCategory

Popular methods of PluginInterface

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

Popular in Java

  • Finding current android device location
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JList (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top PhpStorm 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