Examples of ExtensionPoint


Examples of org.java.plugin.registry.ExtensionPoint

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

Examples of org.java.plugin.registry.ExtensionPoint

   * 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

Examples of org.java.plugin.registry.ExtensionPoint

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

Examples of org.java.plugin.registry.ExtensionPoint

  private static final String EXTENSION_ID = "FiletypeHandler";
 
  @SuppressWarnings("unchecked")
  public static void loadHandlers() {
    ExtensionPoint fhExt = PluginCore.getManager().getRegistry().getExtensionPoint(CORE_PLUGIN_ID, EXTENSION_ID);
    for (Extension e : fhExt.getConnectedExtensions()) {
      String pluginClassName = "";
      try {
       
        PluginDescriptor extensionDescriptor = e.getDeclaringPluginDescriptor();
        pluginClassName = e.getParameter("class").valueAsString();
View Full Code Here

Examples of org.jnode.plugin.ExtensionPoint

    /**
     * @param descriptor
     */
    public FontPlugin(PluginDescriptor descriptor) {
        super(descriptor);
        final ExtensionPoint ep = descriptor.getExtensionPoint("providers");
        fMgr = new DefaultFontManager(ep);
    }
View Full Code Here

Examples of org.jnode.plugin.ExtensionPoint

                fSS.registerFileSystem(fs);

                final String mountPath = "jifs";
                fSS.mount(mountPath, fs, null);
                log.info("Mounted " + type.getName() + " on " + mountPath);
                final ExtensionPoint infoEP = getDescriptor().getExtensionPoint("info");
                jifsExtension = new JIFSExtension(infoEP);
            } catch (DeviceAlreadyRegisteredException ex) {
                log.error("jifs is currently running.");
            } catch (FileSystemException ex) {
                log.error("Cannot mount " + (type != null ? type.getName() : "") + " filesystem ",
View Full Code Here

Examples of org.jnode.plugin.ExtensionPoint

     * @return the extension point, or null
     */
    public ExtensionPoint getExtensionPoint(String extensionPointId) {
        final int max = extensionPoints.length;
        for (int i = 0; i < max; i++) {
            final ExtensionPoint ep = extensionPoints[i];
            if (ep.getSimpleIdentifier().equals(extensionPointId)) {
                return ep;
            }
        }
        return null;
    }
View Full Code Here

Examples of org.jnode.plugin.ExtensionPoint

    /**
     * @see java.lang.Runnable#run()
     */
    public void run() {
        final ClassLoader cl = getClass().getClassLoader();
        final ExtensionPoint appsEP;
        if (cl instanceof PluginClassLoader) {
            appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps");
        } else {
            throw new AWTError("Need to be loaded using a plugin classloader");
        }
View Full Code Here

Examples of org.jnode.plugin.ExtensionPoint

     */
    public void run() {
        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                final ClassLoader cl = getClass().getClassLoader();
                final ExtensionPoint appsEP;
                if (cl instanceof PluginClassLoader) {
                    appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps");
                } else {
                    throw new AWTError("Need to be loaded using a plugin classloader");
                }
View Full Code Here

Examples of org.jpox.plugin.ExtensionPoint

     * @param mgr the PluginManager
     * @param clr the ClassLoaderResolver
     */
    private void loadUserTypes(PluginManager mgr, ClassLoaderResolver clr)
    {
        ExtensionPoint exPoint = mgr.getExtensionPoint("org.jpox.store_mapping");
        for (int i = 0; i < exPoint.getExtensions().length; i++)
        {
            ConfigurationElement[] elms = exPoint.getExtensions()[i].getConfigurationElements();
            for (int e = 0; e < elms.length; e++)
            {
                String javaName = elms[e].getAttribute("java-type").trim();
                String mappingClassName = elms[e].getAttribute("mapping-class");
                String fullWrapperClassName = elms[e].getAttribute("sco-wrapper");
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.