Skip to content

Commit

Permalink
[eclipse] Do not make the SRE path relative to the workspace.
Browse files Browse the repository at this point in the history
see #226

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Nov 18, 2014
1 parent 3ecc795 commit 5762b59
Showing 1 changed file with 8 additions and 8 deletions.
Expand Up @@ -167,14 +167,14 @@ protected void selectSRE() {
SARLEclipsePlugin.logDebugMessage("Selected SRE file (String): " + Strings.nullToEmpty(selectedFile)); //$NON-NLS-1$
IPath path = Path.fromOSString(selectedFile);
SARLEclipsePlugin.logDebugMessage("Associated Eclipse Path (Path): " + path); //$NON-NLS-1$
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IPath workspaceLocation = workspace.getRoot().getLocation();
SARLEclipsePlugin.logDebugMessage("Workspace (Path): " + workspaceLocation); //$NON-NLS-1$
if (workspaceLocation.isPrefixOf(path)) {
SARLEclipsePlugin.logDebugMessage("Make relative path"); //$NON-NLS-1$
path = workspaceLocation.makeRelativeTo(workspaceLocation);
}
SARLEclipsePlugin.logDebugMessage("Resolved Path (Path): " + path); //$NON-NLS-1$
// IWorkspace workspace = ResourcesPlugin.getWorkspace();
// IPath workspaceLocation = workspace.getRoot().getLocation();
// SARLEclipsePlugin.logDebugMessage("Workspace (Path): " + workspaceLocation); //$NON-NLS-1$
// if (workspaceLocation.isPrefixOf(path)) {
// SARLEclipsePlugin.logDebugMessage("Make relative path"); //$NON-NLS-1$
// path = workspaceLocation.makeRelativeTo(workspaceLocation);
// }
// SARLEclipsePlugin.logDebugMessage("Resolved Path (Path): " + path); //$NON-NLS-1$
//
createWorkingCopy();
this.workingCopy.setJarFile(path);
Expand Down

0 comments on commit 5762b59

Please sign in to comment.