Examples of Plugin

  • org.syncany.plugins.Plugin
    A plugin can be used to store Syncany's repository files on any remote location. Implementations of the Plugin class identify a storage/transfer plugin.

    Using the 'id' attribute, plugins can be loaded by the {@link Plugins} class. Once a plugin is loaded, a corresponding {@link TransferSettings} object must be created and initialized. From the connection object, a {@link TransferManager} can then be used toupload/download files to the repository.

    Per naming convention, plugins must end by the name Plugin and extend this class. Furthermore, all plugin classes must reside in a package org.syncany.plugins.plugin-id, where plugin-id is the identifier specified by {@link #getId()}. @author Philipp C. Heckel

  • plugin.common.Plugin
  • plugins.PluginManager.tools.command.Plugin
    Plugin command used to list/load/unload/reload plugins at runtime. @author Witlospock @version 1.0
  • resources.digesters.Plugin
    Un plug-in es una extensi�n que se puede agregar a EasyBot. Por ejemplo, un robot y todos los componentes que lo conforman, son definidos como plug-ins.
    Un plug-in se crea a partir de un documento XML, y de un conjunto de reglas (tambi�n en formato XML) que permiten establecer los datos del estado del plug-in creado.
  • runjettyrun.Plugin
    The activator class controls the plug-in life cycle. @author hillenius

  • Examples of giggler.Plugin

          PluginModule module = dependencyTree.getModule(name);
         
          if (module == null)
            return null;
         
            Plugin plugin = module.getPlugin();

            if (pluginInterface.isInstance(plugin))
                return (T) plugin;
           
            return null;
    View Full Code Here

    Examples of honeycrm.server.test.Plugin

          Class<?> c = cl.loadClass("honeycrm.server.test.small.DynamicallyLoadedClass");

          assertTrue(c.getInterfaces()[0].equals(Plugin.class));

          Plugin p = (Plugin) c.newInstance();
          System.out.println("request answer = " + p.request());
        } catch (Exception e) {
          fail();
        }
      }
    View Full Code Here

    Examples of hudson.Plugin

        static File scriptsFolder() {
            return new File(Jenkins.getInstance().getRootDir(), EMAIL_TEMPLATES_DIRECTORY);
        }
       
        private InputStream getManagedFile(String templateName) {
            Plugin plugin = Jenkins.getInstance().getPlugin("config-file-provider");
            InputStream stream = null;
            if(plugin != null) {
                Config config = null;
                ConfigProvider provider = getTemplateConfigProvider();
                for(Config c : provider.getAllConfigs()) {
    View Full Code Here

    Examples of hudson.model.UpdateSite.Plugin

        /**
         * Gets the plugin with the given name from the first {@link UpdateSite} to contain it.
         */
        public Plugin getPlugin(String artifactId) {
            for (UpdateSite s : sites) {
                Plugin p = s.getPlugin(artifactId);
                if (p!=null) return p;
            }
            return null;
        }
    View Full Code Here

    Examples of ij.plugin.PlugIn

                case Opener.BMP:
                    return new FileSaver(ip).saveAsBmp(outputFile.getPath());
                case Opener.PNG:
                    ImagePlus tempImage = WindowManager.getTempCurrentImage();
                    WindowManager.setTempCurrentImage(ip);
                    PlugIn p =null;
                    try {
                        p = (PlugIn) Class.forName("ij.plugin.PNG_Writer").newInstance();
                    } catch (InstantiationException e) {
                        logger.error(e.getMessage(), e);
                    } catch (IllegalAccessException e) {
                        logger.error(e.getMessage(), e);
                    } catch (ClassNotFoundException e) {
                        logger.error(e.getMessage(), e);
                    }
                    p.run(outputFile.getPath());
                    WindowManager.setTempCurrentImage(tempImage);
                    return true;
                case Opener.PGM:
                    return new FileSaver(ip).saveAsPgm(outputFile.getPath());
            }
    View Full Code Here

    Examples of it.freedomotic.api.Plugin

            initComponents();
            populatePluginsList();
            //add listener to category selection changes
            cmbPlugin.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    Plugin item = (Plugin) cmbPlugin.getSelectedItem();
                    btnDefault.setEnabled(false);
                    getConfiguration(item);
                }
            });
    View Full Code Here

    Examples of jsynoptic.base.Plugin

         
           
            // SOURCE PANE
            filteredSourceTree = new FilteredSourceTree(new SourceTree(sourcePool), resources.getString("KnownSources"));
            for (Iterator it = Run.plugins.iterator(); it.hasNext();) {
                Plugin p = (Plugin) it.next();
                Object[][] tab = p.getDataSourceIcons();
                if (tab != null) {
                    SourceTree.addSourceIcons(tab);
                }
            }
            lAlias = new JLabel(resources.getStringValue("Alias"));
            tfAlias = new JTextField();
           
           
            GridBagPanel sourcePane = new GridBagPanel();
            sourcePane.addOnCurrentRow(filteredSourceTree, 5, true, true, true);
            sourcePane.addOnCurrentRow(lAlias);
            sourcePane.addOnCurrentRow(tfAlias, 4, true, false, true);
            sourcePane.addOnCurrentRow(new ExpressionPanel(filteredSourceTree.getSourceTree()), 5, true, false, true);

        
            tfAlias.getDocument().addDocumentListener(new DocumentListener() {
                public void changedUpdate(DocumentEvent e) {
                    updateAlias();
                }

                public void insertUpdate(DocumentEvent e) {
                    updateAlias();
                }

                public void removeUpdate(DocumentEvent e) {
                    updateAlias();
                }

                private void updateAlias() {
                    if (!tfAlias.isEnabled()) {
                        return;
                    }
                    Object o = filteredSourceTree.getSelectedSourceOrCollection();
                    if (o instanceof DataSource) {
                        DataInfo di = ((DataSource) o).getInformation();
                        String alias = tfAlias.getText();
                        if (alias.equals("")) {
                            alias = null;
                        }
                        if (di != null) {
                            String oldAlias = di.alias;
                            if (((oldAlias == null) && (alias != null)) || ((oldAlias != null) && (alias == null))
                                    || ((oldAlias != null) && (!oldAlias.equals(alias)))) {
                                di.alias = alias;
                                ((DataSource) o).notifyListenersForInfoChange(di);
                                tfAlias.getDocument().removeDocumentListener(this);
                                TreeNode tn = (TreeNode) ( filteredSourceTree.getSourceTree().getSelectionPath().getLastPathComponent());
                                ((DefaultTreeModel) ( filteredSourceTree.getSourceTree().getModel())).nodeChanged(tn);
                                tfAlias.getDocument().addDocumentListener(this);
                                tfAlias.requestFocus();
                            }
                        }
                    }
                }
            });
           
            filteredSourceTree.getSourceTree().addTreeSelectionListener(new TreeSelectionListener() {
                public void valueChanged(TreeSelectionEvent e) {
                    Object o =  filteredSourceTree.getSelectedSourceOrCollection();
                    filteredSourceTree.getSourceTree().removeTreeSelectionListener(this);
                    if ((o instanceof DataSource) && e.isAddedPath()) {
                        tfAlias.setEnabled(true);
                        lAlias.setEnabled(true);
                        tfAlias.setEditable(true);
                        String alias = DataInfo.getAlias(o);
                        tfAlias.setText(alias == null ? "" : alias);
                        tfAlias.requestFocus();
                    } else {
                        tfAlias.setEnabled(false);
                        lAlias.setEnabled(false);
                        tfAlias.setEditable(false);
                        tfAlias.setText("");
                    }
                    filteredSourceTree.getSourceTree().addTreeSelectionListener(this);
                }
            });
           
            // wait for a selection
            tfAlias.setEnabled(false);
            tfAlias.setEditable(false);
            lAlias.setEnabled(false);

            addElement(sourcePane, resources.getStringValue("sources"));
           
           

            // SHAPE PANE
            shapesListModel = new ShapeListModel();

            // Add shape creators
            for (Iterator it = Run.plugins.iterator(); it.hasNext();) {
                Plugin p = (Plugin) it.next();
                List shapeCreators = p.getShapeCreators();
                if (shapeCreators != null){
                    for (int i=0;i<shapeCreators.size();i++){
                        shapesListModel.addShapeCreator( (ShapeCreator)shapeCreators.get(i));
                    }
                }
    View Full Code Here

    Examples of jsynoptic.base.Plugin

        public void processCommand(String command) {
            if (command.startsWith("load ")) {
                File f = FileSerializer.readFromString(command.substring(5), CurrentPathProvider.currentPathProvider
                        .getCurrentPath());
                if (f.exists()) {
                    Plugin p = getPluginToProcessFile(f, Plugin.OPEN, null);
                    if (p == null) {
                        System.err.println(messageWriter.print1args("fileLoadFailed", f.getAbsolutePath()));
                        return;
                    }
                    p.processFile(f, Plugin.OPEN);
                } else {
                    System.err.println(messageWriter.print1args("fileLoadFailed", f.getAbsolutePath()));
                }
                return;
            }
            if (command.startsWith("paper ")) {
                String paperName = command.substring(6);
                boolean res = setPaper(paperName);
                if (res) {
                    return;
                }
                System.err.println(messageWriter.print1args("unknownPaper", paperName));
                System.err.print(messageWriter.print0args("knownPapers"));
                String[] knownPapers = getKnownPapers();
                if (knownPapers != null) {
                    for (int i = 0; i < knownPapers.length; ++i) {
                        System.err.print(knownPapers[i] + (i == (knownPapers.length - 1) ? "" : ", "));
                    }
                }
                System.err.println();
                return;
            }
            if (command.startsWith("orientation ")) {
                String orientation = command.substring(12);
                if (!setOrientation(orientation)) {
                    System.err.println(messageWriter.print1args("unknownOrientation", orientation));
                    System.err.print(messageWriter.print0args("knownOrientations"));
                    System.err.println("portrait landscape reverseLandscape");
                    return;
                }
                return;
            }
            if (command.startsWith("transform ")) {
                String actionType = command.substring(10);
                if (!actionType.equals("")) {
                   
                    // synoptic transformation
                    boolean canTransformSynoptics = false;
                    for (int i = 0; i < getNumberOfPages(); i++) {
                        ShapesContainer sc = ((ShapesContainer) containers.get(i));
                        for (int j = 0; j < Run.plugins.size(); ++j) {
                            Plugin p = (Plugin) Run.plugins.get(j);
                            canTransformSynoptics |= p.processSynoptic(sc, actionType, false);
                        }
                    }

                    // data transformation
                    boolean canTransformData = false;
                    Set dataSourceCollections = DataSourcePool.global.dataSourceCollections();
                    for(Iterator it=dataSourceCollections.iterator(); it.hasNext();){
                        DataSourceCollection dsc = (DataSourceCollection)it.next();
                        for (int j = 0; j < Run.plugins.size(); ++j) {
                            Plugin p = (Plugin) Run.plugins.get(j);
                            canTransformData |= p.processDataSourceCollection(dsc, actionType);
                        }
                    }

                    // Display result message
    View Full Code Here

    Examples of kameleon.plugin.PlugIn

        try {
          loader.loadClass(info.getPlugInClass()) ;
          Class<?> plugInClass = Class.forName(info.getPlugInClass(), true, loader) ;
          Class<? extends PlugIn> plClass = plugInClass.asSubclass(PlugIn.class) ;
          Constructor<? extends PlugIn> constructor = plClass.getConstructor() ;
          PlugIn plugIn = constructor.newInstance() ;
          plugIn.copyPicture(this.ressourceFolder) ;
        } catch (Exception e) {
          /*=== Possible exceptions ===
           * - ClassNotFoundException
           * - IllegalAccessException
           * - IllegalArgumentException
    View Full Code Here

    Examples of net.datacrow.core.plugin.Plugin

                    modules.add(pm);
            }

            for (DcModule pm : modules) {
                try {
                    Plugin plugin = Plugins.getInstance().get("ManageItem", dco, null, viewIdx,  pm.getIndex());
                    if (    plugin != null &&SecurityCentre.getInstance().getUser().isAuthorized(plugin) &&
                            UserMode.isCorrectXpLevel(plugin.getXpLevel())) {
                       
                        JMenuItem item = ComponentFactory.getMenuItem(plugin);
                        item.setEnabled(plugin.isEnabled());
                        item.setIcon(plugin.getIcon());
                       
                        menuAdmin.add(item);
                    }
                } catch (InvalidPluginException e) {
                    logger.error(e, e);
                }
            }
           
            if (menuAdmin.getItemCount() > 0)
                add(menuAdmin);
           
            addSeparator();
            PluginHelper.add(this, "ViewSettings");
           
            if (viewType == View._TYPE_SEARCH) {
                FileImporter importer = module.getImporter();
                if (importer != null && importer.allowReparsing() && module.getFileField() != null) {
                    addSeparator();
                    PluginHelper.add(this, "AttachFileInfo");
                }
            }
           
            addSeparator();
           
            if (current.getIndex() != DcModules._ITEM) {
                PluginHelper.add(this, "UpdateAll", module.getIndex());
                PluginHelper.add(this, "FindReplace", module.getIndex());
            }
           
            if (file != null && dco.getModule().isFileBacked())
                PluginHelper.add(this, "FileLauncher", module.getIndex());
           
            Collection<Plugin> plugins = Plugins.getInstance().getUserPlugins(dco, viewType, module.getIndex());
            for (Plugin plugin : plugins) {
                if (plugin.isShowInPopupMenu()) {
                    addSeparator();
                    add(ComponentFactory.getMenuItem(plugin));
                }
            }
        }
    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.