Examples of ProjectDescription


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

    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;
        }
       
        projectName = projectDescription.getName();
        projectNameField.setTextWithoutUpdate(projectName);
        projectNameField.getTextControl(null).setEnabled(false);
        lastNameFromProjectFile = projectName;
       
        setMessage("The target location contains already an eclipse project. The wizard will use the existing information to import the project");
View Full Code Here

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

  public IContentTypeMatcher getContentTypeMatcher() throws CoreException {
    throw new UnsupportedOperationException();
  }

  public IProjectDescription getDescription() throws CoreException {
    return new ProjectDescription();
  }
View Full Code Here

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

      }
      if (project != null) {
        IDebugTarget debugTarget = (IDebugTarget) stackFrame
            .getDebugTarget();
        try {
          ProjectDescription desc = ((Project) project)
              .internalGetDescription();
          if (desc != null) {
            HashMap links = desc.getLinks();
            if (links != null) {

              for (Entry entry : (Set<Entry>) links.entrySet()) {
                IPath relativePath = (IPath) entry.getKey();
                LinkDescription linkDescription = (LinkDescription) entry
View Full Code Here

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

            project.open(IResource.NONE, null);
            close = true;
          }*/

          ResourceInfo pinfo = ((Project)project).getResourceInfo(false, false);
          ProjectDescription desc = ((ProjectInfo)pinfo).getDescription();
          if (desc != null){
            HashMap<IPath, LinkDescription> linfo =
              (HashMap<IPath, LinkDescription>)desc.getLinks();
            if (linfo != null){
              for (IPath path : linfo.keySet()){
                LinkDescription link = linfo.get(path);
                IResource member = project.findMember(link.getProjectRelativePath());
                IFileStore store = EFS.getStore(member.getLocationURI());
View Full Code Here

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

    }

    void createProject(IProgressMonitor monitor) throws CoreException {
      IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
     
      IProjectDescription description = new ProjectDescription();
      description.setName(projectName);
      if (projectPath != null) {
        description.setLocation(new Path(projectPath));
      }
     
      IProject project = root.getProject(description.getName());
      project.create(description, new NullProgressMonitor());
      project.open(new NullProgressMonitor());

      this.project = project;
     
View Full Code Here

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

      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() {
              projectName = projectDescription.getName();
              projectNameField.setTextWithoutUpdate(projectName);
            }
          });
        }
      }
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.