Package org.java.plugin.registry

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


   * 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

   * 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

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

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

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

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

  /**
   * Load plugins implementing the GUIProvider Extension point
   */
  private void loadGUIProviderExtensions() {
    ExtensionPoint guiExtPoint = getManager().getRegistry()
        .getExtensionPoint(getDescriptor().getId(), GUI_EXTPOINT_PROVIDER);
    for (Extension ext : guiExtPoint.getConnectedExtensions()) {
      log.info("Discovered plugin for extension point " + ext.getExtendedPointId() + " with id: " + ext.getId());
      try {
        // Activate plug-in that declares extension.
        getManager().activatePlugin(ext.getDeclaringPluginDescriptor().getId());
        Class<?> toolCls = loadPlugin(ext);
View Full Code Here

   * Load plugins implementing the MenuProvider Extension point
   *
   * @author Jonas Truemper
   */
  private void loadMenuProviderExtensions() {
    ExtensionPoint menuExtPoint = getManager().getRegistry()
        .getExtensionPoint(getDescriptor().getId(),
            MENU_EXTPOINT_PROVIDER);
   
    for (Extension ext : menuExtPoint.getConnectedExtensions()) {

      log.info("Discovered plugin for extension point "+ext.getExtendedPointId()+" with id: "+ext.getId());
      String category = ext.getParameter("category").valueAsString();
      JMenu menu = MainMenuBar.getInstance().addUniqueMenu(category);

View Full Code Here

 
  /**
   * Loads all persistency plugins.
   */
  private void loadPersistenceProviderExtensions() {
    ExtensionPoint persistenceExtPoint = getManager().getRegistry()
        .getExtensionPoint(getDescriptor().getId(), PERSISTENCE_EXTPOINT_PROVIDER);
   
    for (Extension ext : persistenceExtPoint.getConnectedExtensions()) {

      log.info("Discovered plugin for extension point " + ext.getExtendedPointId() + " with id: " + ext.getId());

      try {
        Class<?> persistenceCls = loadPlugin(ext);
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.