Package q_impress.pmi.plugin.utils

Examples of q_impress.pmi.plugin.utils.WorkspaceLocationSolver


      LoadingService service = new LoadingService();
      InputStream inStream = null;
      try {
        inStream = modelFile.getContents();
        service.setInStream(inStream);
        service.setLocationSolver(new WorkspaceLocationSolver());
        service.initialize();
        service.invoke();
       
        if (service.getLoadedResource() instanceof ModelingProject) return (ModelingProject) service.getLoadedResource();
        else throw new CoreException(new Status(Status.ERROR, "q_impress", "Unable to load model, invalid file."));
View Full Code Here


    ModelingProject project = null;
    InputStream inStream = null;
    try {
      inStream = ((IFile)targetModelResource).getContents();
      loadingService.setInStream(inStream);
      loadingService.setLocationSolver(new WorkspaceLocationSolver());
      loadingService.initialize();
      loadingService.invoke();
      q_impress.pmi.lib.project.IResource tempRes = loadingService.getLoadedResource();
      if (!(tempRes instanceof ModelingProject)) throw new ExecutionException("Invalid model file.");
      else project = (ModelingProject) tempRes;
View Full Code Here

        LoadingService service = new LoadingService();
        InputStream inStream = null;
        try {
          inStream = res.getContents();
          service.setInStream(inStream);
          service.setLocationSolver(new WorkspaceLocationSolver());
          service.initialize();
          service.invoke();
         
          if (service.getLoadedResource() instanceof ModelingProject) model = (ModelingProject) service.getLoadedResource();
          else model = null;
View Full Code Here

        LoadingService service = new LoadingService();
        InputStream inStream = null;
        try {
          inStream = res.getContents();
          service.setInStream(inStream);
          service.setLocationSolver(new WorkspaceLocationSolver());
          service.initialize();
          service.invoke();
         
          if (service.getLoadedResource() instanceof ModelingProject) project = (ModelingProject) service.getLoadedResource();
          else project = null;
View Full Code Here

    try {
      inStream = specificInput.getFile().getContents();
     
      LoadingService service = new LoadingService();
      service.setInStream(inStream);
      service.setLocationSolver(new WorkspaceLocationSolver());
      service.initialize();
      service.invoke();
     
      IResource loadedRes = service.getLoadedResource();
      if (!(loadedRes instanceof ModelingProject)) throw new PartInitException(new Status(IStatus.ERROR, "q_impress", "Invalid input for editor."));
View Full Code Here

        LoadingService service = new LoadingService();
        InputStream inStream = null;
        try {
          inStream = res.getContents();
          service.setInStream(inStream);
          service.setLocationSolver(new WorkspaceLocationSolver());
          service.initialize();
          service.invoke();
         
          if (service.getLoadedResource() instanceof ModelingProject) project = (ModelingProject) service.getLoadedResource();
          else project = null;
View Full Code Here

TOP

Related Classes of q_impress.pmi.plugin.utils.WorkspaceLocationSolver

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.