Examples of newProjectDescription()


Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

        if (newProjectHandle.exists()) {
            throw new CoreException(Status.OK_STATUS);
        }

        final IProjectDescription description = workspace.newProjectDescription(name);
        description.setLocationURI(location);

        // // update the referenced project if provided
        if (referencedProjects != null) {
            description.setReferencedProjects(referencedProjects);
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

            throws ErlModelException {
        final IWorkspace ws = ResourcesPlugin.getWorkspace();
        final IProject project = ws.getRoot().getProject(name);
        try {
            if (!project.exists()) {
                IProjectDescription description = ws.newProjectDescription(name);
                description.setLocation(new Path(path));
                project.create(description, null);
                project.open(null);

                description = project.getDescription();
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

                _elvis = _nullProgressMonitor;
              }
              final IProgressMonitor monitor = _elvis;
              try {
                monitor.beginTask("", 4);
                final IProjectDescription description = workspace.newProjectDescription(ErlProject.this.name);
                description.setLocationURI(location);
                SubProgressMonitor _subProgressMonitor = new SubProgressMonitor(monitor, 1);
                ErlProject.this.workspaceProject.create(description, _subProgressMonitor);
                SubProgressMonitor _subProgressMonitor_1 = new SubProgressMonitor(monitor, 1);
                ErlProject.this.workspaceProject.open(_subProgressMonitor_1);
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

   * @throws CoreException
   */
  private IProject createIProject(String name, java.net.URI hdfsURI) throws CoreException {
    final IWorkspace workspace = ResourcesPlugin.getWorkspace();
    IProject project = workspace.getRoot().getProject(name);
    IProjectDescription pd = workspace.newProjectDescription(name);
    pd.setLocationURI(hdfsURI);
    project.create(pd, new NullProgressMonitor());
    project.open(new NullProgressMonitor());
    RepositoryProvider.map(project, HDFSTeamRepositoryProvider.ID);
    return project;
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

        IPath newPath = null;
        if (!mainPage.useDefaults())
            newPath = mainPage.getLocationPath();

        IWorkspace workspace = ResourcesPlugin.getWorkspace();
        final IProjectDescription description = workspace
                .newProjectDescription(newProjectHandle.getName());
        description.setLocation(newPath);
        addNatures(description);

        // create the new project operation
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.newProjectDescription()

    IWorkspace workspace = ResourcesPlugin.getWorkspace();
    IWorkspaceRoot myWorkspaceRoot = workspace.getRoot();

    final IProject newProjectHandle = myWorkspaceRoot.getProject(projectName);
    final IProjectDescription description = workspace.newProjectDescription(projectName);

    WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
      protected void execute(IProgressMonitor monitor) throws CoreException {
        createProject(description, newProjectHandle, monitor);
      }
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.