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 org.sonar.updatecenter.common.Plugin

        assertThat(files[0].getName()).isEqualTo("sonar-php.jar");
      }

      @Test
      public void download_from_url() throws Exception {
        Plugin test = new Plugin("test");
        Release test10 = new Release(test, "1.0").setDownloadUrl("http://server/test-1.0.jar");
        test.addRelease(test10);

        when(updateCenter.findInstallablePlugins("foo", Version.create("1.0"))).thenReturn(newArrayList(test10));

        pluginDownloader.start();
        pluginDownloader.download("foo", Version.create("1.0"));
    View Full Code Here

    Examples of org.sonar.wsclient.services.Plugin

      @Test
      public void toModel() throws Exception {
        WSUtils.setInstance(new JdkUtils());

        List<Plugin> plugins = new PluginUnmarshaller().toModels(loadFile("/plugins/plugins.json"));
        Plugin plugin = plugins.get(0);
        assertThat(plugin.getKey(), is("foo"));
        assertThat(plugin.getName(), is("Foo"));
        assertThat(plugin.getVersion(), is("1.0"));
      }
    View Full Code Here

    Examples of org.springframework.roo.project.Plugin

        private List<Plugin> getPlugins(final String xPathExpression,
                final Element configuration) {
            final List<Plugin> buildPlugins = new ArrayList<Plugin>();
            for (final Element pluginElement : XmlUtils.findElements(
                    xPathExpression + "/plugins/plugin", configuration)) {
                buildPlugins.add(new Plugin(pluginElement));
            }
            return buildPlugins;
        }
    View Full Code Here

    Examples of org.springsource.ide.eclipse.commons.frameworks.core.internal.plugins.Plugin

        ArrayList<Plugin> result = new ArrayList<Plugin>();
        for (Bundle bundle : filteredSearchResults) {
          org.osgi.framework.Bundle installedBundle = installedBundleBySymbolicName.get(bundle.getSymbolicName());
         
          // create add-on for each bundle
          Plugin plugin = new Plugin(bundle.getSymbolicName());
         
          // add all available versions
          List<BundleVersion> versions = BundleVersion.orderByVersion(bundle.getVersions());
          for (BundleVersion version : versions) {
            RooAddOnVersion addOnVersion = new RooAddOnVersion(bundle,
                version);
            addOnVersion.setTitle(version.getPresentationName());
            addOnVersion.setVersion(version.getVersion());
            addOnVersion.setDescription(version.getDescription());
            addOnVersion.setRuntimeVersion(version.getRooVersion());
            // name needs to match between bundle and version
            addOnVersion.setName(plugin.getName());
           
            if (installedBundle != null && installedBundle.getVersion().toString().equals(version.getVersion())) {
              addOnVersion.setInstalled(true);
            }
           
            plugin.addVersion(addOnVersion);
            plugin.setLatestReleasedVersion(addOnVersion);
          }
         
          result.add(plugin);
        }
        return result;
    View Full Code Here

    Examples of org.syncany.plugins.Plugin

      }

      @Test
      public void testLocalPluginInfo() {
        String pluginId = getPluginId();
        Plugin plugin = Plugins.get(pluginId);

        assertNotNull("PluginInfo should not be null.", plugin);
        assertEquals("Plugin ID should different.", pluginId, plugin.getId());
        assertNotNull("Plugin version should not be null.", plugin.getVersion());
        assertNotNull("Plugin name should not be null.", plugin.getName());
      }
    View Full Code Here

    Examples of plugin.common.Plugin



      public Plugin instatiate(PluginType type, String name) {
        logger.info("trying to instatiate filter: " + name);
        Plugin ret = null;
        try {
          ret = this.plugins.get(type).get(name).newInstance();
          logger.info("instatiation successful");
        } catch (InstantiationException e) {
          logger.throwing(this.getClass().toString(), "instatiate()", e);
    View Full Code Here

    Examples of plugins.PluginManager.tools.command.Plugin

        // Check if the plugin command can be registered
        if ( this.objPluginCmd == null &&
           this.objConnection != null &&
           this.objBotOperators != null ) {   
          // Register the "plugin" command
          this.objPluginCmd = new Plugin( this.objConnection, this.objPluginManager, this.objBotOperators );
          cmdMgr.registerCommand( "!plugin", this.objPluginCmd );
        }
      }
    View Full Code Here

    Examples of resources.digesters.Plugin

     
      private void tipoGpsComboWidgetSelected(SelectionEvent evt)
      {
        try
        {
          Plugin selectedGPS = ClassManager.getInstance().getPluginByName((String)gpsHash.get(((CCombo)evt.getSource()).getText()));
         
          if (selectedGPS != null)
          {
            if (!webcamConfig.isDisposed())
              webcamConfig.dispose();
            ImageBasedGPS gps = (ImageBasedGPS) selectedGPS.makeIntance();
            Simulation.getCurrent().setGps(gps);
            GPSGUI gpsGUI = (GPSGUI) selectedGPS.makeGUInstance(gps);
            webcamConfig = gpsGUI.getConfigPannel(composite2, composite2.getStyle());
            GridData webcamConfigLData = new GridData();
            webcamConfigLData.horizontalAlignment = GridData.FILL;
            webcamConfigLData.verticalAlignment = GridData.BEGINNING;
            webcamConfigLData.grabExcessVerticalSpace=true;
    View Full Code Here

    Examples of runjettyrun.Plugin

          ver = configuration.getAttribute(
              Plugin.ATTR_SELECTED_JETTY_VERSION, "");
        } catch (CoreException e) {
          e.printStackTrace();
        }
        Plugin plg = Plugin.getDefault();
        if (plg.supportJetty(ver, type)) {
          return (plg.getPackages(ver, type));
        } else {
          return (plg.getDefaultPackages(type));
        }

      }
    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.