Examples of loadResource()


Examples of com.agiletec.plugins.jacms.aps.system.services.resource.IResourceManager.loadResource()

        if (null == value) return;
        JAXBResourceValue jaxbImageValue = value.getImage();
        if (null == jaxbImageValue) return;
        try {
            IResourceManager resourceManager = this.getResourceManager();
            ResourceInterface resource = resourceManager.loadResource(jaxbImageValue.getResourceId().toString());
            if (null != resource) {
                this.setResource(resource, this.getDefaultLangCode());
            }
      if (null != value.getAreas()) {
        for (int i = 0; i < value.getAreas().size(); i++) {
View Full Code Here

Examples of com.agiletec.plugins.jacms.aps.system.services.resource.IResourceManager.loadResource()

        this._preferredLang = defaultLang;
      }
      this.pageContext.setAttribute(this.getCtxName(), survey);
      // fetch image
      if (null != this.getCtxImageUrl() && null != survey.getImageId()) {
        ImageResource resource = (ImageResource) resourceManager.loadResource(survey.getImageId());
        if (null != this.getImageDimension() && null != resource.getImagePath(this.getImageDimension())) {
          this.pageContext.setAttribute(this.getCtxImageUrl(), resource.getImagePath(this.getImageDimension()));
        } else {
          this.pageContext.setAttribute(this.getCtxImageUrl(), resource.getImagePath("0"));
        }
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.runner.PPDiagnosticsRunner.loadResource()

    worked(ticker, 1);
    try {
      ppRunner.setUp(IValidationAdvisor.ComplianceLevel.PUPPET_2_7, new DefaultPotentialProblemsAdvisor());
      worked(ticker, 1);
      File f = new File("/unnamed.pp");
      r = ppRunner.loadResource(code, URI.createFileURI(f.getPath()));
      // no need to remember "/" as the root
      IResourceValidator rv = ppRunner.getPPResourceValidator();
      final CancelIndicator cancelMonitor = new CancelIndicator() {
        public boolean isCanceled() {
          return ticker.isCanceled();
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.runner.PPDiagnosticsRunner.loadResource()

    }
    // Load pptp
    if(options.isCheckReferences()) {
      try {
        URI platformURI = options.getPlatformURI();
        ppRunner.loadResource(platformURI != null
            ? platformURI
            : PuppetTarget.getDefault().getPlatformURI());
      }
      catch(IOException e) {
        addExceptionDiagnostic(diagnostics, "Internal Error: Could not load pptp.", e);
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.runner.PPDiagnosticsRunner.loadResource()

          worked(ticker, 1);

        // Load ruby file with pptp contribution
        // consumes one rb tick
        if(options.isCheckReferences()) {
          Resource r = ppRunner.loadResource(new FileInputStream(f), URI.createFileURI(f.getPath()));
          if(r != null)
            rememberRootInResource(root, r);
        }
        worked(ticker, 1);
      }
View Full Code Here

Examples of com.puppetlabs.geppetto.validation.runner.PPDiagnosticsRunner.loadResource()

    // Load all pp
    // crosslink and validate all
    Map<File, Resource> ppResources = Maps.newHashMapWithExpectedSize(ppFiles.size());
    for(File f : ppFiles) {
      try {
        ppResources.put(f, ppRunner.loadResource(new FileInputStream(f), URI.createFileURI(f.getPath())));
      }
      catch(IOException e) {
        addExceptionDiagnostic(diagnostics, "I/O Error: Exception while processing file: " + f.toString(), e);
      }
      catch(Exception e) {
View Full Code Here

Examples of javax.jnlp.DownloadService.loadResource()

    
      if (!downloadService.isResourceCached(url, compVer)) {
    // The installFailed string is only for debugging. No localization needed
    Config.trace("Downloading: " + urlstr);
    // Do download
    downloadService.loadResource(url,  compVer, listener);   
      }   
        } catch(IOException ioe) {
      Config.trace("Unable to download: " + compName + "/" + compVer);
      return false;
        }
View Full Code Here

Examples of javax.jnlp.DownloadService.loadResource()

      }

      if (!cached)
      {
        // if not in the cache load the resource into the cache
        ds.loadResource(url, version, this);
      }
      downloadPercentage = currentPercMax;
    }
    isFinished = true;
  }
View Full Code Here

Examples of net.sf.jiga.xtended.kernel.JXAenvUtils.loadResource()

                } else {
                    /**
                     * backup new installed files
                     */
                    env.setJXAenvPath(FileHelper._USERHOMESTOREDIRECTORY.getPath());
                    env.loadResource();
                }
                envPaths.add(env.getJXAenvPath());
                env = _installExtensions(_getJXANatenvFiles(null, (setIt & SET_LOCAL) != 0), true, FileHelper._USERHOMESTOREDIRECTORY);
                if (!env.isResourceLoaded() || env.hasLoadErrors()) {
                    throw new Exception("JXANat env failed.");
View Full Code Here

Examples of net.sf.jiga.xtended.kernel.JXAenvUtils.loadResource()

                } else {
                    /**
                     * backup new installed files
                     */
                    env.setJXAenvPath(FileHelper._USERHOMESTOREDIRECTORY.getPath());
                    env.loadResource();
                }
                envPaths.add(env.getJXAenvPath());
                InputStream inAppInstaller = ExtensionsInstaller.class.getResourceAsStream("/setup.zip");
                if (inAppInstaller != null) {
                    String message = "<html>installing " + installerPath + "...</html>";
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.