Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311177 - [PathTraverser] There is a need to have a nameFilter to avoid the PathTraverser to include mwe2-files
Summary: [PathTraverser] There is a need to have a nameFilter to avoid the PathTravers...
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: RC1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-30 09:56 EDT by Holger Schill CLA
Modified: 2017-09-19 16:18 EDT (History)
2 users (show)

See Also:
sebastian.zarnekow: helios+


Attachments
New property uriFilter on the xtext.mwe.Reader (10.20 KB, patch)
2010-05-17 10:02 EDT, Sebastian Zarnekow CLA
sebastian.zarnekow: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Schill CLA 2010-04-30 09:56:01 EDT
In case you have the mwe2-files in the same directory as the models the pathTraverser would include the mwe2-files.

In case you have a generated project out of the language specific ProjectWizard the mwe2-file and the example is in src.
Comment 1 Sebastian Zarnekow CLA 2010-05-17 10:02:20 EDT
Created attachment 168733 [details]
New property uriFilter on the xtext.mwe.Reader

The patch adds a new interface UriFilter with boolean:matches(URI) in the package xtext.mwe. A default implementation matches based on the name either by regular expression or by the file-extension of the URI.
Comment 2 Sebastian Zarnekow CLA 2010-05-17 14:32:02 EDT
Fixed in HEAD after adding tests for the NameBasedFilter and changing the semantic of the regular expression from "matches()" to "find()".
Comment 3 Karsten Thoms CLA 2017-09-19 16:18:35 EDT
Closing bug which were set to RESOLVED before Eclipse Neon.0.