Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356750 - Reader: allow comma-separated list for addPath()
Summary: Reader: allow comma-separated list for addPath()
Status: VERIFIED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: M7   Edit
Assignee: Karsten Thoms CLA
QA Contact:
URL:
Whiteboard: v2.10
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-05 18:11 EDT by Karsten Thoms CLA
Modified: 2016-05-19 10:56 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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