Tabnine Logo
Module.getExtensionPoint
Code IndexAdd Tabnine to your IDE (free)

How to use
getExtensionPoint
method
in
com.bc.ceres.core.runtime.Module

Best Java code snippets using com.bc.ceres.core.runtime.Module.getExtensionPoint (Showing top 3 results out of 315)

origin: bcdev/beam

public static <T> List<T> loadExecutableExtensions(ModuleContext moduleContext,
                          String extensionPointId,
                          String elementName,
                          Class<T> extensionType) {
  Module module = moduleContext.getModule();
  ExtensionPoint extensionPoint = module.getExtensionPoint(extensionPointId);
  ConfigurationElement[] configurationElements = extensionPoint.getConfigurationElements();
  List<T> executableExtensions = new ArrayList<>(32);
  for (ConfigurationElement configurationElement : configurationElements) {
    ConfigurationElement[] children = configurationElement.getChildren(elementName);
    for (ConfigurationElement child : children) {
      try {
        ModuleState moduleState = child.getDeclaringExtension().getDeclaringModule().getState();
        if (moduleState.isOneOf(ModuleState.STARTING, ModuleState.RESOLVED)) {
          T executableExtension = child.createExecutableExtension(extensionType);
          executableExtensions.add(executableExtension);
        }
      } catch (CoreException e) {
        moduleContext.getLogger().log(Level.SEVERE, e.getMessage(), e);
      }
    }
  }
  return executableExtensions;
}
origin: bcdev/beam

private static void registerRGBProfiles(ModuleContext moduleContext) throws CoreException {
  ExtensionPoint rgbExtensionPoint = moduleContext.getModule().getExtensionPoint("rgbProfiles");
  Extension[] rgbExtensions = rgbExtensionPoint.getExtensions();
  RGBImageProfileManager profileManager = RGBImageProfileManager.getInstance();
  for (Extension extension : rgbExtensions) {
    ConfigurationElement confElem = extension.getConfigurationElement();
    ConfigurationElement[] rgbElements = confElem.getChildren("rgbProfile");
    for (ConfigurationElement rgbElement : rgbElements) {
      RGBImageProfile rgbImageProfile = new RGBImageProfile();
      rgbImageProfile.configure(rgbElement);
      profileManager.addProfile(rgbImageProfile);
    }
  }
}
origin: bcdev/beam

private void registerHelpSets(ModuleContext moduleContext) {
  this.helpSetRegistry = new TreeNode<>("");
  ExtensionPoint hsExtensionPoint = moduleContext.getModule().getExtensionPoint("helpSets");
  Extension[] hsExtensions = hsExtensionPoint.getExtensions();
  for (Extension extension : hsExtensions) {
    ConfigurationElement confElem = extension.getConfigurationElement();
    ConfigurationElement[] helpSetElements = confElem.getChildren("helpSet");
    for (ConfigurationElement helpSetElement : helpSetElements) {
      final Module declaringModule = extension.getDeclaringModule();
      if (declaringModule.getState().is(ModuleState.RESOLVED)) {
        registerHelpSet(helpSetElement, declaringModule);
      }
    }
  }
  addNodeToHelpSys(helpSetRegistry);
}
com.bc.ceres.core.runtimeModulegetExtensionPoint

Popular methods of Module

  • getSymbolicName
  • getClassLoader
  • getName
  • getResource
  • getState
  • getVersion
  • getCopyright
  • loadClass

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Top 12 Jupyter Notebook extensions
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