I am working on a plugin, which passes the location URI of current workspace to other method.
IWorkspace workspace = ResourcesPlugin.getWorkspace();
I am very new to Eclipse PDE. What method returns the URI location of workspace. for Ex if the workspace is C:\Eclipse\Workspace. i need the path C:\Eclipse\Workspace
to a new location. Then, start Eclipse, select "Switch Workspace..." from the "File" menu and select the new workspace location.
Click on Windows --> Preferences --> Search for Workspace --> Check "Prompt for workspace on startup" --> Click Apply ---> Click OK ---> Then File ---> Switch Workspace --> Choose your default Workspace --> Now restart eclipse.
By default project location is current workspace of eclipse.
You want:
ResourcesPlugin.getWorkspace().getRoot().getLocation().toString();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With