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

Bug 356750

Summary: Reader: allow comma-separated list for addPath()
Product: [Modeling] TMF Reporter: Karsten Thoms <karsten.thoms>
Component: XtextAssignee: Karsten Thoms <karsten.thoms>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: anton
Version: 2.0.1   
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
See Also: https://github.com/eclipse/xtext/pull/979
Whiteboard: v2.10

Description Karsten Thoms CLA 2011-09-05 18:11:06 EDT
Sometimes it is not possible to add multiple paths using org.eclipse.xtext.mwe.Reader#addPath(). For example, when the generator workflow should be delivered in a plugin and its workflow invoked from outside by passing a 'modelPath' property.

Suggested change: Modify method addPath(String) as follows:

@Override
public void addPath(String path) {
  for (String p : path.split(",")) {
    this.pathes.add(p.trim());
  }
}
Comment 1 Eclipse Genie CLA 2016-03-31 17:28:05 EDT
GitHub Pull Request 979 created by [kthoms]
https://github.com/eclipse/xtext/pull/979
Comment 2 Karsten Thoms CLA 2016-04-01 02:45:08 EDT
Merged with #607ed3d54b3ad75bd4669092ffa83aa2043e4bde