Package devplugin

Examples of devplugin.PluginInfo


        deletePluginProxy(proxyFile);
        return null;
      }

      // everything seems fine, create plugin proxy and plugin info
      PluginInfo info = new PluginInfo(DummyPlugin.class, name, description, author, license);
      // now get icon
      String iconFileName = getProxyIconFileName(proxyFile);
      return new JavaPluginProxy(info, lcFileName, pluginId, iconFileName);
    } catch (Exception e) {
      if(in != null) {
View Full Code Here


    try {
      String proxyFileName = getProxyFileName(pluginFile);
      DataOutputStream out = new DataOutputStream(new
          BufferedOutputStream(new FileOutputStream(proxyFileName)));

      PluginInfo info = proxy.getInfo();
      out.writeUTF(info.getName());
      out.writeUTF(info.getAuthor());
      out.writeUTF(info.getDescription());
      String license = info.getLicense();
      if (license == null) {
        license = "";
      }
      out.writeUTF(license);

      info.getVersion().writeData(out); //write version

      out.writeUTF(proxy.getId());
      out.writeLong(pluginFile.length());
      out.writeUTF(proxy.getPluginFileName());
      out.close();
View Full Code Here

      String msg = mLocalizer.msg("error.getInfo", "The plugin {0} caused an "
          + "error when getting the plugin information.", getClass().getName());
      ErrorHandler.handle(msg, exc);

      return new PluginInfo();
    }
  }
View Full Code Here

  protected PluginInfo doGetInfo() {
    if (mPluginInfo != null) {
      return mPluginInfo;
    }

    PluginInfo info = null;

    try {
      info = mPlugin.getInfo();
    }catch(java.lang.NoSuchMethodError e) {
      String name = devplugin.Plugin.mLocalizer.msg( "unkown" ,"Unknown" );
      String desc = devplugin.Plugin.mLocalizer.msg( "noDescription" ,"No description" );
      String author = devplugin.Plugin.mLocalizer.msg( "noAuthor" ,"No author given" );

      return new PluginInfo(devplugin.Plugin.class,name, desc, author);
    }

    return info;
  }
View Full Code Here

    getSettings().setBoolean(PROP_HIDECURSOR, true);
  }

  @Override
  public PluginInfo getInfo() {
    return new PluginInfo(
        Messages.getString("Plugin.name"), Messages.getString("Plugin.desc"), Messages.getString("Plugin.author"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        new Version(0, 3, false), Messages.getString("Plugin.license")); //$NON-NLS-1$
  }
View Full Code Here

  }

  /** GetInfo() returns information about the program. */
  @Override
  public PluginInfo getInfo() {
    return new PluginInfo(mLocalizer.msg("1", "LocalIMDb"), mLocalizer.msg("23", "Displays IMDb ratings."),
        "P. Kunysch, Michael Keppler", PLUGIN_VERSION, mLocalizer.msg("3", "GNU GPL Version 2"));
  }
View Full Code Here

TOP

Related Classes of devplugin.PluginInfo

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.