Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355159

Summary: StandaloneSetup: add possibility to map bundle names
Product: [Modeling] EMFT Reporter: Karsten Thoms <karsten.thoms>
Component: MWEAssignee: Karsten Thoms <karsten.thoms>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sebastian.zarnekow
Version: 1.1Flags: karsten.thoms: indigo+
Target Milestone: SR2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Karsten Thoms CLA 2011-08-18 15:37:39 EDT
StandaloneSetup scans for .project files and registers the bundle symbolic name as in the platform resource map.

However, in some cases it might not be true that the directory name equals the bundle name. In this case it must be possible to map the bundle name to a the directory name and add this path also in the platform resource map.
Comment 1 Sebastian Zarnekow CLA 2011-08-18 15:41:57 EDT
It should already work to register a uri mapping from

platform:/resource/wrong.project.name
to
platform:/resource/fixed.project.name
Comment 2 Karsten Thoms CLA 2011-08-18 16:16:14 EDT
No, this did now work. In this case I got several "The path ... is unmapped" when generating an Xtext DSL. Mapping each single URI is not feasible in this case.
Comment 3 Karsten Thoms CLA 2011-08-18 16:21:16 EDT
Added method 'addBundleMap(Mapping)' and registering the mapped bundle name in registerProject().