Package org.jnode.plugin

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


                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

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

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

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

TOP

Related Classes of org.jnode.plugin.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.