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

Bug 311177

Summary: [PathTraverser] There is a need to have a nameFilter to avoid the PathTraverser to include mwe2-files
Product: [Modeling] TMF Reporter: Holger Schill <Holger.Schill>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sebastian.zarnekow, sven.efftinge
Version: 1.0.0Flags: sebastian.zarnekow: helios+
Target Milestone: RC1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
New property uriFilter on the xtext.mwe.Reader sebastian.zarnekow: review+

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.