Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353939 - Project Explorer broken when STEM workspace path contains a space
Summary: Project Explorer broken when STEM workspace path contains a space
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: STEM
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.1.2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 16:18 EDT by Christian Thoens CLA
Modified: 2011-10-17 12:05 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Thoens CLA 2011-08-04 16:18:06 EDT
If the STEM-workspace contains a space there are the following problems:

Changes to to STEM-objects in the editor are not always propagated to the project explorer, for example: if you add a model to a scenario, the model does not appear in the scenario in the project explorer.

This is because the URI of some objects contains the path with the space, which causes problems in comparing URIs.
Comment 1 Matthew Davis CLA 2011-08-04 16:45:43 EDT
Chris, are you seeing this when the workspace path has a space in it (and, by default, STEM has a space in the path)... like putting STEM at C:\program files\STEM
Comment 2 Christian Thoens CLA 2011-08-04 18:08:22 EDT
(In reply to comment #1)
> Chris, are you seeing this when the workspace path has a space in it (and, by
> default, STEM has a space in the path)... like putting STEM at C:\program
> files\STEM

Yes, exactly.
Comment 3 Stefan Edlund CLA 2011-08-04 18:09:49 EDT
I'm able to reproduce this on Mac too. The problem is the EMF Resource class
getURI() method is not able to return a platform URI
(platform:/resource/<project>...) when the resource is stored in a path with a
space it. Instead it returns the absolute path (file://...), that's what
causing the problem.

We won't fix this for the 1.2.1 release, it'll be documented instead. Might be
an EMF bug.
Comment 4 James Kaufman CLA 2011-10-03 17:22:03 EDT
let's resolve this one way or another for 1.2.3
I'm not sure it is a bug. If we want to ensure support across OS perhaps we should not allow spaces in the path?
Comment 5 James Kaufman CLA 2011-10-17 12:05:23 EDT
This is not a STEM bug. Eclipse does not allow a Space character in workspace path. 
I updated the wiki to let users know of this.