0

I am a novice in Plugin development and I am facing this issue in opening my current workspace:

ResourcesPlugin.getWorkspace() is not taking the currently opened workspace which is D:/ABCDWoekspace, instead it is returning the workspace of eclipse that is created in the eclipse installaction directory d:/eclipse/workspace as my eclipse in installed in D:eclipse

1 Answer 1

1

When you run your plugin from within Eclipse a new Eclipse is started with a new workspace in which to run the test. A new workspace is necessary because only one Eclipse instance can access a workspace at a time.

If you open 'Run > Run Configurations' and find your plugin in the 'Eclipse Application' section you can see the workspace location in the 'Location' field on the 'Main' tab. You can change this location to point to another existing workspace location.

You will need to set up this new workspace with whatever projects you need for testing.

3
  • let me clarify, I need to run the plugin on a project that belongs to another worspace Feb 12, 2016 at 10:53
  • 1
    Well change the Run > Run Configuration location to specify the other workspace location.
    – greg-449
    Feb 12, 2016 at 10:58
  • thanks, tried to do this..but this did not work, I had to switch my workspace to the default one created and import my projects there with the option Copy to Workspace selected. It was able to find my projects then Feb 17, 2016 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.