Examples of ExtensionPoint


Examples of org.java.plugin.registry.ExtensionPoint

        }
 
      }

  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

Examples of org.java.plugin.registry.ExtensionPoint

          // 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

Examples of org.java.plugin.registry.ExtensionPoint

  /**
   * @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

Examples of org.java.plugin.registry.ExtensionPoint

   */
  public void initializeEditorPlugins()
  {
    if ((menu == null) || (mainWindow == null))
      return;
    ExtensionPoint editorExtPoint =
            getManager().getRegistry().getExtensionPoint(
                    getDescriptor().getId(), IMPORTER_EXTPOINT_PROVIDER);
          
        for (Extension ext : editorExtPoint.getConnectedExtensions()) {
            try {
                // Get plug-in class loader.
                ClassLoader classLoader = getManager().getPluginClassLoader(
                        ext.getDeclaringPluginDescriptor());
                // Load Tool class.
View Full Code Here

Examples of org.java.plugin.registry.ExtensionPoint

   * Loads sub-plug-ins and calls their initialize methods.
   */
  public void initializeVisualizerPlugins(MainWindow parentWindow) {
    Logger log = Logger.getLogger(this.getClass());

    ExtensionPoint exportExtPoint = getManager().getRegistry().getExtensionPoint(getDescriptor().getId(),
        VISUALIZER_EXTPOINT_PROVIDER);

    for (Extension ext : exportExtPoint.getConnectedExtensions()) {
      log.info("Discovered plugin for extension point " + ext.getExtendedPointId() + " with id: " + ext.getId());
      try {
        ClassLoader classLoader = getManager().getPluginClassLoader(ext.getDeclaringPluginDescriptor());
        Class<?> importCls = classLoader.loadClass(ext.getParameter("class").valueAsString());
        VisualizerPluginProviderInterface visualizerPluginProvider = (VisualizerPluginProviderInterface) importCls
View Full Code Here

Examples of org.java.plugin.registry.ExtensionPoint

   * load sub plugins and calls they initialize method
   * @param rootMenu the menu sub plugins can put they menus/actions to
   */
  public void initializeImporterPlugins(JMenu rootMenu)
  {
    ExtensionPoint importExtPoint =
      getManager().getRegistry().getExtensionPoint(
          getDescriptor().getId(), IMPORTER_EXTPOINT_PROVIDER);

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

Examples of org.java.plugin.registry.ExtensionPoint

  /**
   * Loads sub plugins and calls they initialize method.
   * @author Jonas Truemper
   */
  public void initializeVisualizerPlugin() {
    ExtensionPoint exportExtPoint =
            getManager().getRegistry().getExtensionPoint(
                    getDescriptor().getId(), EXPORTER_VISUALIZER_PROVIDER);
           
        for (Extension ext : exportExtPoint.getConnectedExtensions()) {         
            try {
                // Get plug-in class loader.
                ClassLoader classLoader = getManager().getPluginClassLoader(
                        ext.getDeclaringPluginDescriptor());
                // Load Tool class.
View Full Code Here

Examples of org.java.plugin.registry.ExtensionPoint

   * @author Jonas Truemper
   */
  public void initializeVisualizerPlugins(MainWindow parentWindow) {
    Logger log = Logger.getLogger(this.getClass());
   
    ExtensionPoint exportExtPoint =
            getManager().getRegistry().getExtensionPoint(
                    getDescriptor().getId(), VISUALIZER_EXTPOINT_PROVIDER);
           
        for (Extension ext : exportExtPoint.getConnectedExtensions()) {
          log.info("Discovered plugin for extension point " + ext.getExtendedPointId() + " with id: "+ext.getId());
            try {
                // Get plug-in class loader.
                ClassLoader classLoader = getManager().getPluginClassLoader(
                        ext.getDeclaringPluginDescriptor());
View Full Code Here

Examples of org.java.plugin.registry.ExtensionPoint

   * @author Jonas Truemper, Martin Czuchra
   * @param rootMenu
   *            the menu sub plugins can put they menus/actions to
   */
  public void initializeExporterPlugins(JMenu rootMenu) {
    ExtensionPoint exportExtPoint = getManager().getRegistry()
        .getExtensionPoint(getDescriptor().getId(),
            EXPORTER_EXTPOINT_PROVIDER);

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

Examples of org.java.plugin.registry.ExtensionPoint

  /**
   * Loads all dock widget plugins.
   */
  private void loadDockWidgetProviderExtensions() {
    ExtensionPoint dockWidgetExtPoint = getManager().getRegistry()
        .getExtensionPoint(getDescriptor().getId(),
            DOCKWIDGET_EXTPOINT_PROVIDER);
    for (Extension ext : dockWidgetExtPoint.getConnectedExtensions()) {

      log.info("Discovered plugin for extension point " + ext.getExtendedPointId() + " with id: " + ext.getId());
      String title = ext.getParameter("title").valueAsString();
      JCheckBoxMenuItem viewAction = MainMenuBar.getInstance().addViewItem(title);
     
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.