Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7908055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:44:46+00:00 2026-06-03T11:44:46+00:00

IProgressMonitor progressMonitor = new NullProgressMonitor(); IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot(); IProject project = root.getProject(page1.getProjectName()); I

  • 0
IProgressMonitor progressMonitor = new NullProgressMonitor();

IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IProject project = root.getProject(page1.getProjectName());

I am using this code to create a project in workspace.

Now I want to create a project in a specified location other than workspace.

Can anyone give some suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:44:47+00:00Added an answer on June 3, 2026 at 11:44 am

    Finally I found the code to specify the location of the project to be created.
    This can be done by using the setLocation() method of IProjectDescription class as follows:

    IProgressMonitor progressMonitor = new NullProgressMonitor();
    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    
    
    IProject project = root.getProject(page1.getProjectName());
        IWorkspace w = ResourcesPlugin.getWorkspace();
        IProjectDescription desc=w.newProjectDescription(project.getName()); 
        String projectLocation=page1.getProjectLocation();
        IPath path1=new Path(projectLocation+"/"+page1.getProjectName());
        desc.setLocation(path1); 
        project.create(desc, progressMonitor); 
        project.open(progressMonitor);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Job job = new Job(Initialize Info ) { @Override protected IStatus run(IProgressMonitor monitor) {
I used the following code to get IJavaProject type from string: IProject project =
My task is necessary and shouldn't be canceled, how do I ask ProgressMonitor not
I don't know how to do that, because ProgressMonitor window is self-invoked (after 2
I just wanna know using org.eclipse.jdt.core.dom.ASTParser if it is possible to parse only a
I'd like to make use of ProgressMonitor 's functionality but I don't want to
is there a way to make the dialog from ProgressMonitor modal? EDIT: The ProgressMonitor
I downloaded the Red Laser MonoTouch sample and ran the project in MonoDevelop, I
I wanted to implement ProgressMonitor for an OSGi services. I understand the protocol of
I am trying a simple socket based file transfer program to include a ProgressMonitorInputStream,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.