Package org.java.plugin.registry

Examples of org.java.plugin.registry.ExtensionPoint


    }

  static Log log = LogFactory.getLog(_JabRefPlugin.class);

  public List<ExportFormatTemplateExtension> getExportFormatTemplateExtensions(){
        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "ExportFormatTemplate");
        List<ExportFormatTemplateExtension> result = new ArrayList<ExportFormatTemplateExtension>();
        for (Extension ext : extPoint.getConnectedExtensions()) {
      try {
        result.add(new ExportFormatTemplateExtension(getManager().getPlugin(
            ext.getDeclaringPluginDescriptor().getId()), ext));
      } catch (PluginLifecycleException e) {
        log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);
View Full Code Here


        }
 
      }

  public List<ExportFormatExtension> getExportFormatExtensions(){
        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "ExportFormat");
        List<ExportFormatExtension> result = new ArrayList<ExportFormatExtension>();
        for (Extension ext : extPoint.getConnectedExtensions()) {
      try {
        result.add(new ExportFormatExtension(getManager().getPlugin(
            ext.getDeclaringPluginDescriptor().getId()), ext));
      } catch (PluginLifecycleException e) {
        log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);
View Full Code Here

        }
 
      }

  public List<SidePanePluginExtension> getSidePanePluginExtensions(){
        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "SidePanePlugin");
        List<SidePanePluginExtension> result = new ArrayList<SidePanePluginExtension>();
        for (Extension ext : extPoint.getConnectedExtensions()) {
      try {
        result.add(new SidePanePluginExtension(getManager().getPlugin(
            ext.getDeclaringPluginDescriptor().getId()), ext));
      } catch (PluginLifecycleException e) {
        log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);
View Full Code Here

        }
 
      }

  public List<EntryFetcherExtension> getEntryFetcherExtensions(){
        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "EntryFetcher");
        List<EntryFetcherExtension> result = new ArrayList<EntryFetcherExtension>();
        for (Extension ext : extPoint.getConnectedExtensions()) {
      try {
        result.add(new EntryFetcherExtension(getManager().getPlugin(
            ext.getDeclaringPluginDescriptor().getId()), ext));
      } catch (PluginLifecycleException e) {
        log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);
View Full Code Here

        }
 
      }

  public List<ExportFormatProviderExtension> getExportFormatProviderExtensions(){
        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "ExportFormatProvider");
        List<ExportFormatProviderExtension> result = new ArrayList<ExportFormatProviderExtension>();
        for (Extension ext : extPoint.getConnectedExtensions()) {
      try {
        result.add(new ExportFormatProviderExtension(getManager().getPlugin(
            ext.getDeclaringPluginDescriptor().getId()), ext));
      } catch (PluginLifecycleException e) {
        log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);
View Full Code Here

        }
 
      }

  public List<PushToApplicationExtension> getPushToApplicationExtensions(){
        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "PushToApplication");
        List<PushToApplicationExtension> result = new ArrayList<PushToApplicationExtension>();
        for (Extension ext : extPoint.getConnectedExtensions()) {
      try {
        result.add(new PushToApplicationExtension(getManager().getPlugin(
            ext.getDeclaringPluginDescriptor().getId()), ext));
      } catch (PluginLifecycleException e) {
        log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);
View Full Code Here

        }
 
      }

  public List<LayoutFormatterExtension> getLayoutFormatterExtensions(){
        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "LayoutFormatter");
        List<LayoutFormatterExtension> result = new ArrayList<LayoutFormatterExtension>();
        for (Extension ext : extPoint.getConnectedExtensions()) {
      try {
        result.add(new LayoutFormatterExtension(getManager().getPlugin(
            ext.getDeclaringPluginDescriptor().getId()), ext));
      } catch (PluginLifecycleException e) {
        log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);
View Full Code Here

        }
 
      }

  public List<ImportFormatExtension> getImportFormatExtensions(){
        ExtensionPoint extPoint = getManager().getRegistry().getExtensionPoint(getId(), "ImportFormat");
        List<ImportFormatExtension> result = new ArrayList<ImportFormatExtension>();
        for (Extension ext : extPoint.getConnectedExtensions()) {
      try {
        result.add(new ImportFormatExtension(getManager().getPlugin(
            ext.getDeclaringPluginDescriptor().getId()), ext));
      } catch (PluginLifecycleException e) {
        log.error("Failed to activate plug-in " + ext.getDeclaringPluginDescriptor().getId(), e);
View Full Code Here

          // loads the "core" plugin, which declares general extension points for core (including algorithms)
          PluginDescriptor core = this.getPluginManager().getRegistry().getPluginDescriptor(this.getPluginCoreID());
           
          // load the extension point for new algorithms (functionalities).
          ExtensionPoint point = this.getPluginManager().getRegistry().getExtensionPoint(core.getId(), this.getAlgorithmExtensionPoint());
         
          // iterate over the connected extension points
          for (Iterator<Extension> it = point.getConnectedExtensions().iterator(); it.hasNext();) {
          try {
            Extension ext = it.next();
                  PluginDescriptor descr = ext.getDeclaringPluginDescriptor();
                 
                  this.getPluginManager().activatePlugin(descr.getId());
View Full Code Here

  /**
   * @author Jonas Truemper loads event handler extensions
   */
  private void loadEventHandlerExtensions() {
    final ExtensionPoint eventHandlerExtPoint = getManager().getRegistry().getExtensionPoint(getDescriptor().getId(),
            EVENTHANDLER_EXTPOINT_PROVIDER);

    for (final Extension ext : eventHandlerExtPoint.getConnectedExtensions()) {
      try {
        getManager().activatePlugin(ext.getDeclaringPluginDescriptor().getId());
        // Get plug-in class loader.
        final ClassLoader classLoader = getManager().getPluginClassLoader(ext.getDeclaringPluginDescriptor());
        // Load Tool class.
View Full Code Here

TOP

Related Classes of org.java.plugin.registry.ExtensionPoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.