Package org.maqetta.server

Examples of org.maqetta.server.IStorage.newInstance()


              String name = libraryElement.getDeclaringExtension().getContributor().getName();
              Bundle bundle = Activator.getActivator().getOtherBundle(name);
              IStorage file =this.getStorage().newInstance(project.getPath());
     
          if(basePath!=null && !basePath.equals(""))
            file = file.newInstance(project.getPath()+ "/" + basePath);
       
       
        VResourceUtils.copyDirectory(file, path, bundle);
      }
View Full Code Here


  public void saveDraft(IDesignerUser user, Version version) throws IOException {
    IStorage commentingDir = user.getCommentingDirectory();
    if (!commentingDir.exists()) {
      commentingDir.mkdir();
      (commentingDir.newInstance(commentingDir, "snapshot")).mkdir();
    }
    saveVersionFile(user);
  }

  public void publish(IDesignerUser user, Version version) throws IOException {
View Full Code Here

  public void publish(IDesignerUser user, Version version) throws IOException {
    IStorage commentingDir = user.getCommentingDirectory();
    if (!commentingDir.exists()) {
      commentingDir.mkdir();
      (commentingDir.newInstance(commentingDir, "snapshot")).mkdir();
    }

    initVersionDir(user, version.getTime());
    saveVersionFile(user);
   
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.