Examples of AbstractPlugin


Examples of de.willuhn.jameica.plugin.AbstractPlugin

   */
  public About(int position)
  {
    super(position,false);

    AbstractPlugin plugin = Application.getPluginLoader().getPlugin(HBCI.class);
    final I18N i18n = plugin.getResources().getI18N();
   
    this.setTitle(i18n.tr("�ber ..."));
    this.setPanelText(i18n.tr("Hibiscus {0}",plugin.getManifest().getVersion().toString()));
  }
View Full Code Here

Examples of de.willuhn.jameica.plugin.AbstractPlugin

  /**
   * @see de.willuhn.jameica.gui.dialogs.AbstractDialog#paint(org.eclipse.swt.widgets.Composite)
   */
  protected void paint(Composite parent) throws Exception
  {
    AbstractPlugin plugin = Application.getPluginLoader().getPlugin(HBCI.class);
    final I18N i18n = plugin.getResources().getI18N();

    DBIterator list = Settings.getDBService().createList(Version.class);
    list.addFilter("name = ?","db");
    Version version = (Version) list.next();
   
    Label l = GUI.getStyleFactory().createLabel(parent,SWT.BORDER);
    l.setImage(SWTUtil.getImage("hibiscus.jpg"));

    Container container = new LabelGroup(parent,i18n.tr("Versionsinformationen"),true);
   
    FormTextPart text = new FormTextPart();
    text.setText("<form>" +
      "<p><b>Hibiscus - HBCI-Onlinebanking f�r Jameica</b></p>" +
      "<p>Lizenz: GPL [<a href=\"http://www.gnu.org/copyleft/gpl.html\">www.gnu.org/copyleft/gpl.html</a>]<br/>" +
      "Copyright by Olaf Willuhn [<a href=\"mailto:hibiscus@willuhn.de\">hibiscus@willuhn.de</a>]<br/>" +
      "<a href=\"http://www.willuhn.de/products/hibiscus/\">www.willuhn.de/products/hibiscus/</a></p>" +
      "<p>Software-Version: " + plugin.getManifest().getVersion() + "<br/>" +
      "Datenbank-Version: " + version.getVersion() + "<br/>" +
      "Build: " + plugin.getManifest().getBuildnumber() + " [Datum " + plugin.getManifest().getBuildDate() + "]</p>" +
      "</form>");

    container.addPart(text);

    ButtonArea buttons = new ButtonArea();
View Full Code Here

Examples of de.willuhn.jameica.plugin.AbstractPlugin

  protected HBCIUpdateProvider(Connection conn, Version version)
  {
    this.conn    = conn;
    this.version = version;
   
    AbstractPlugin p = Application.getPluginLoader().getPlugin(HBCI.class);
    this.manifest    = p.getManifest();
    this.res         = p.getResources();
  }
View Full Code Here

Examples of es.emergya.ui.base.plugins.AbstractPlugin

        Properties p = new Properties();
        try {
          p.load(new FileReader(module));
          String _class = p.get("CLASS").toString();

          AbstractPlugin plugin = (AbstractPlugin) Class.forName(
              _class).newInstance();
          container.addPlugin(plugin);
        } catch (Throwable e) {
          LOG.error(
              "Error trying to load module "
View Full Code Here

Examples of jNab.core.plugins.AbstractPlugin

  int pluginCount = dis.readInt();

  for (int i = 0; i < pluginCount; i++)
  {
      // Reading plugin
      AbstractPlugin plugin = null;
      try
      {
    plugin = this.readPluginFromInputStream(dis, pluginFactory);
      }
      catch (PluginCreationException e)
      {
    continue;
      }

      // Adding plugin
      plugin.setBunny(bunny);
      bunny.addPlugin(plugin);
  }

  return bunny;
    }
View Full Code Here

Examples of jNab.core.plugins.AbstractPlugin

      // Adding parameter to temp map
      parameters.put(parameterName, new Couple<Boolean, String>(isParameterSet, parameterValue));
  }

  // Creating a plugin instance
  AbstractPlugin plugin = pluginFactory.createPlugin(pluginName);
  plugin.setParameters(parameters);

  return plugin;
    }
View Full Code Here

Examples of jNab.core.plugins.AbstractPlugin

  String pluginName = cmdParameters.substring(indexOfSpace).trim();

  try
  {
      Bunny bunny = this.microServer.getBurrow().getBunny(bunnySerial);
      AbstractPlugin plugin = bunny.getPluginByName(pluginName);
      bunny.removePlugin(plugin);
      ps.println("OK");
  }
  catch (NoSuchBunnyException e)
  {
View Full Code Here

Examples of jNab.core.plugins.AbstractPlugin

  String paramValue = cmdParameters.substring(indexOfSpace).trim();

  try
  {
      Bunny bunny = this.microServer.getBurrow().getBunny(bunnySerial);
      AbstractPlugin plugin = bunny.getPluginByName(pluginName);
      if (plugin.setParameter(paramName, paramValue))
    ps.println("KO (no such parameter)");
      else
    ps.println("OK");
  }
  catch (NoSuchBunnyException e)
View Full Code Here

Examples of jNab.core.plugins.AbstractPlugin

  String pluginName = cmdParameters.substring(indexOfSpace).trim();

  try
  {
      Bunny bunny = this.microServer.getBurrow().getBunny(bunnySerial);
      AbstractPlugin plugin = this.microServer.getPluginFactory().createPlugin(pluginName);
      bunny.addPlugin(plugin);
      ps.println("OK");
  }
  catch (NoSuchBunnyException e)
  {
View Full Code Here

Examples of org.b3log.latke.plugin.AbstractPlugin

        try {
            // Reads plugin status from datastore and clear plugin datastore
            for (final JSONObject oldPluginDesc : persistedPlugins) {
                final String descId = oldPluginDesc.getString(Keys.OBJECT_ID);
                final AbstractPlugin plugin = get(plugins, descId);

                pluginRepository.remove(descId);

                if (null != plugin) {
                    final String status = oldPluginDesc.getString(Plugin.PLUGIN_STATUS);
                    final String setting = oldPluginDesc.optString(Plugin.PLUGIN_SETTING);

                    plugin.setStatus(PluginStatus.valueOf(status));
                    try {
                        if (StringUtils.isNotBlank(setting)) {
                            plugin.setSetting(new JSONObject(setting));
                        }
                    } catch (final JSONException e) {
                        LOGGER.log(Level.WARN, "the formatter of the old config failed to convert to json", e);
                    }
                }
            }

            // Adds these plugins into datastore
            for (final AbstractPlugin plugin : plugins) {
                final JSONObject pluginDesc = plugin.toJSONObject();

                pluginRepository.add(pluginDesc);

                LOGGER.log(Level.TRACE, "Refreshed plugin[{0}]", pluginDesc);
            }
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.