Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346052 - Can't add a project path variable that points to a root of a drive.
Summary: Can't add a project path variable that points to a root of a drive.
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Serge Beauchamp CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-17 04:46 EDT by Serge Beauchamp CLA
Modified: 2019-11-14 02:13 EST (History)
1 user (show)

See Also:


Attachments
Path in core.resources (2.84 KB, patch)
2011-05-17 04:54 EDT, Serge Beauchamp CLA
no flags Details | Diff
Fix in the ui.ide (2.51 KB, patch)
2011-05-17 04:58 EDT, Serge Beauchamp CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Serge Beauchamp CLA 2011-05-17 04:46:42 EDT
If I add the following project path variable in the  "Resource | Linked Resources | Path Variables" property page:

Name: FOO
Value: C:\

The value gets recorded as an empty string after I close and re-open the preference panel.
Comment 1 Serge Beauchamp CLA 2011-05-17 04:47:58 EDT
The root cause of this bug is because doing 

new Path("C:"

isn't the same as doing 

new Path("C:\"

and, in the first case, will return false for Path.isAbsolute().
Comment 2 Serge Beauchamp CLA 2011-05-17 04:54:23 EDT
Created attachment 195820 [details]
Path in core.resources

He's a fix in the core.resources
Comment 3 Serge Beauchamp CLA 2011-05-17 04:58:26 EDT
Created attachment 195821 [details]
Fix in the ui.ide
Comment 4 Paul Webster CLA 2011-05-17 08:40:47 EDT
(In reply to comment #3)
> Created attachment 195821 [details]
> Fix in the ui.ide

Just a comment.  We use org.eclipse.jface.util.Util.isWindows() or isWin32() in ui.workbench and ui.ide.

PW
Comment 5 Lars Vogel CLA 2019-11-14 02:13:15 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.