Examples of addResource()


Examples of org.wso2.carbon.theme.mgt.ui.clients.ThemeMgtServiceClient.addResource()

                return false;
            }
            DataHandler dataHandler = scaleImage(fileItemData.getDataHandler(), 48, 119, 100);

            client.addResource(
                    calcualtePath(parentPath, resourceName), mediaType, description, dataHandler,
                    symlinkLocation, redirectWith);

            response.setContentType("text/html; charset=utf-8");
            String msg = "The logo has been successfully updated.";
View Full Code Here

Examples of org.zeroturnaround.jrebel.gradle.model.RebelClasspath.addResource()

    rebelClasspath.setFallback(this.fallback);
    rebelClasspath.setOmitDefaultClassesDir(this.omitDefaultClassesDir);
    rebelClasspath.setOmitDefaultResourcesDir(this.omitDefaultResourcesDir);
   
    for (RebelDslClasspathResource resource : resources) {
      rebelClasspath.addResource(resource.toRebelClasspathResource());
    }
   
    return rebelClasspath;
  }
View Full Code Here

Examples of org.zeroturnaround.jrebel.gradle.model.RebelWeb.addResource()

 
  public RebelWeb toRebelWeb() {
    RebelWeb web = new RebelWeb();
    web.setOmitDefault(this.omitDefault);
    for (RebelDslWebResource webDslResource : webResources) {
      web.addResource(webDslResource.toRebelWebResource());
    }
    return web;
  }

}
View Full Code Here

Examples of q_impress.pmi.lib.project.IModelingProject.addResource()

    UmlResource resource = new UmlResource();
    resource.setName("xmi.1");
    resource.setLocation("/home/goldivan/Documenti/poli/gallotti/Examples_Input/CaseStudyPolimi(ATOP).uml");
    resource.setConfigProperty("isXmiValid", "true");
    try {
      project.addResource(resource);
    } catch (ResourceException e) {
      e.printStackTrace();
      assertTrue(false);
    }
   
View Full Code Here

Examples of q_impress.pmi.lib.project.ModelingProject.addResource()

    // create the new XMI resource and add it to model
    UmlResource newPmiRes = new UmlResource();
    newPmiRes.setName(umlResource.getName().substring(0, umlResource.getName().indexOf(".")));
    newPmiRes.setLocation(umlResource.getFullPath().toPortableString());
    try {
      project.addResource(newPmiRes);
    } catch (ResourceException e) {
      throw new ExecutionException("Unable to add XMI resource to model.", e);
    }
   
    // save the project
View Full Code Here

Examples of quicktime.std.movies.Movie.addResource()

      // insert media into track
      videoTrack.insertMedia(0, 0, videoMedia.getDuration(), 1);

      // save changes made into file and add to movie
      OpenMovieFile omf = OpenMovieFile.asWrite(movFile);
      newmovie.addResource(omf, StdQTConstants.movieInDataForkResID,
        movFile.getName());
      // delete file created; prevent any thread problems by terminating
      // current thread
      try
      {
View Full Code Here

Examples of ro.isdc.wro.model.group.Group.addResource()

                    InputStream stream = is.stream;
                    WroModel includedModel = createModel(is.locationLoadedFrom, stream);
                    for (Group group : includedModel.getGroups()) {
                        if (GROUP_NAME_CLOSURE_DEPS.equals(group.getName())) {
                            for (Resource resource : group.getResources()) {
                                closureDepsGroup.addResource(resource);
                            }
                        } else {
                            model.addGroup(group);
                        }
                    }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.profile.ProfileInstance.addResource()

                newResource = new DirectoryProfileResource(selectedFile, recursive);
            } else {
                newResource = new FileProfileResource(selectedFile);
            }

            if (profile.addResource(newResource)) {
                ProfileResourceNode primordialNode = new ProfileResourceNode(newResource.getUri());
                final NodeMetaData metaData = primordialNode.getMetaData();
                metaData.setName(newResource.getUri().getPath());
                metaData.setNodeStatus(NodeStatus.NOT_DONE);
                metaData.setResourceType(
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.