Package org.eclipse.core.internal.resources

Examples of org.eclipse.core.internal.resources.ProjectDescriptionReader


         
          IPath locationPath = new Path(mainPage.getSourcePath());
          IProjectDescription description = null;
         
          if (locationPath.append(".project").toFile().exists()) {
            ProjectDescriptionReader reader = new ProjectDescriptionReader(project);
            description = reader.read(locationPath.append(".project"));
          } else {
            description = workspace.newProjectDescription(projectName);
          }
         
          // If it is under the root use the default location
View Full Code Here


   
    IPath sourceProject = new Path(source).append(".project");
   
    if (sourceProject.toFile().exists()) {
      try {
        ProjectDescriptionReader reader = new ProjectDescriptionReader();
        ProjectDescription projectDescription = reader.read(sourceProject);
       
        if (projectDescription == null) {
          setErrorMessage("Cannot read the source project.");
          return false;
        }
View Full Code Here

    protected void scanForExistingProjectFile() throws IOException {

      IPath projectPath = sourcePath.append(".project");

      if (projectPath.toFile().exists()) {
        ProjectDescriptionReader reader = new ProjectDescriptionReader();
        final ProjectDescription projectDescription = reader.read(projectPath);

        if (projectDescription != null && projectDescription.getName() != null) {
          getShell().getDisplay().asyncExec(new Runnable() {
            @Override
            public void run() {
View Full Code Here

        try {
         
          IProjectDescription description = null;
         
          if (sourcePath.append(".project").toFile().exists()) {
            ProjectDescriptionReader reader = new ProjectDescriptionReader(project);
            description = reader.read(sourcePath.append(".project"));
            description.setName(projectName);
          } else {
            description = workspace.newProjectDescription(projectName);
          }
         
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.resources.ProjectDescriptionReader

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.