Examples of ManifestInfo


Examples of com.google.gwt.chrome.crx.client.ContentScript.ManifestInfo

  }

  private static void processContentScript(TreeLogger logger,
      GeneratorContext context, JClassType userType, String typeName)
      throws UnableToCompleteException {
    ManifestInfo spec = userType.getAnnotation(ContentScript.ManifestInfo.class);
    if (spec == null) {
      logger.log(TreeLogger.ERROR, "ContentScript (" + typeName
          + ") must be annotated with a Specificaiton.");
      throw new UnableToCompleteException();
    }
    context.commitArtifact(logger, new ContentScriptArtifact(spec.path(),
        spec.whiteList(), spec.runAt()));
  }
View Full Code Here

Examples of com.google.gwt.chrome.crx.client.Extension.ManifestInfo

  }

  private static ExtensionArtifact getSpecification(TreeLogger logger,
      GeneratorContext context, JClassType userType)
      throws UnableToCompleteException {
    final ManifestInfo spec = userType.getAnnotation(Extension.ManifestInfo.class);
    if (spec != null) {
      return new ExtensionArtifact(spec.name(), spec.description(),
          spec.version(), spec.permissions(), spec.updateUrl(),
          createIconResources(logger, context, userType, spec.icons()),
          spec.publicKey());
    }

    logger.log(TreeLogger.ERROR,
        "You need a @Extension.Specification annotation on "
            + userType.getQualifiedSourceName()
View Full Code Here

Examples of org.java.plugin.registry.ManifestInfo

        try {
            File temp = unpackPluginXML(f);
            if (temp == null)
                return null; // Couldn't find the plugin.xml file
            ManifestInfo mi = PluginCore.getManager().getRegistry().
                    readManifestInfo(temp.toURI().toURL());
            temp.delete();
            return new String[] {mi.getId(), mi.getVersion().toString()};
        } catch (MalformedURLException e) {
            e.printStackTrace();
            return null;
        } catch (ManifestProcessingException e) {
            return null; // Couldn't make sense of the plugin.xml
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.