Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IProject.open()


        IWorkspace ws = ResourcesPlugin.getWorkspace();
        IProject project = ws.getRoot().getProject(destinationProject);
        if (!project.exists())
          project.create(null);
        if (!project.isOpen())
          project.open(null);
        IPath location = new Path(project.getLocation()
            .toPortableString() + "/" + localFileName);
        LogService.ok("retrieving resource " + jioLocation
            + " to project " + location.toPortableString());
        IFile iFile = project.getFile(location.lastSegment());
View Full Code Here


      IProjectDescription desc= project.getWorkspace().newProjectDescription(project.getName());
      if (!page.useDefaults()) {
        desc.setLocation(locationPath);
      }
      project.create(desc, new SubProgressMonitor(monitor, 1));
      project.open(new SubProgressMonitor(monitor, 1));
     
      // seed the project
      ForrestPlugin plugin = ForrestPlugin.getDefault();
     
      String strPath = locationPath.toOSString();
View Full Code Here

    IProject project = r.getProject("testProject");
    IFile testFile = null;
    try {
      project.create(project.getWorkspace().newProjectDescription(
          "testProject"), null);
      project.open(null);

      testFile = addFileToProject(project, new Path(fileName),
          test.getClass().getResourceAsStream(fileName), null);
    } catch (CoreException e) {
      fail("Caught exception when creating project: " + e.getMessage());
View Full Code Here

        zipFileStream.closeEntry();
        zipEntry = zipFileStream.getNextEntry();
      }

      project.open(monitor);
      project.refreshLocal(IResource.DEPTH_INFINITE, monitor);

      // Close and re-open the project to force eclipse to re-evaluate
      // any natures that this project may have.
      project.close(monitor);
View Full Code Here

      project.refreshLocal(IResource.DEPTH_INFINITE, monitor);

      // Close and re-open the project to force eclipse to re-evaluate
      // any natures that this project may have.
      project.close(monitor);
      project.open(monitor);
    } catch (final IOException e) {
      log(e);
    } catch (final CoreException e) {
      log(e);
    }
View Full Code Here

                "example1",
                new URL(
                    "platform:/plugin/fr.tm.elibel.smartqvt.smartgen.examples/examples/example1.zip"),
                project, monitor);
            createJavaProject(project);
            project.open(monitor);
           
            project.refreshLocal(IFile.DEPTH_INFINITE, monitor);
            ResourcesPlugin.getWorkspace().save(true,monitor);
            project.close(monitor);
            project.open(monitor);
View Full Code Here

            project.open(monitor);
           
            project.refreshLocal(IFile.DEPTH_INFINITE, monitor);
            ResourcesPlugin.getWorkspace().save(true,monitor);
            project.close(monitor);
            project.open(monitor);
          } catch (Exception e) {
            e.printStackTrace();
          }
        }
      });
View Full Code Here

                "emofprettyprinter",
                new URL(
                    "platform:/plugin/fr.tm.elibel.smartqvt.smartgen.examples/examples/emofprettyprinter.zip"),
                project, monitor);
            createJavaProject(project);
            project.open(monitor);
           
            project.refreshLocal(IFile.DEPTH_INFINITE, monitor);
            ResourcesPlugin.getWorkspace().save(true,monitor);
            project.close(monitor);
            project.open(monitor);
View Full Code Here

            project.open(monitor);
           
            project.refreshLocal(IFile.DEPTH_INFINITE, monitor);
            ResourcesPlugin.getWorkspace().save(true,monitor);
            project.close(monitor);
            project.open(monitor);
          } catch (Exception e) {
            e.printStackTrace();
          }
        }
      });
View Full Code Here

      IProjectDescription desc= project.getWorkspace().newProjectDescription(project.getName());
      if (!page.useDefaults()) {
        desc.setLocation(locationPath);
      }
      project.create(desc, new SubProgressMonitor(monitor, 1));
      project.open(new SubProgressMonitor(monitor, 1));
     
      // seed the project
      ForrestPlugin plugin = ForrestPlugin.getDefault();
     
      String strPath = locationPath.toOSString();
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.