Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330574 - [Filters] org.eclipse.core.resources.filterMatchers extension point lists AbstractFileInfoMatcher in wrong package
Summary: [Filters] org.eclipse.core.resources.filterMatchers extension point lists Abs...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Szymon Brandys CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-18 10:11 EST by Christian Walther CLA
Modified: 2010-11-26 10:54 EST (History)
0 users

See Also:


Attachments
proposed patch (937 bytes, patch)
2010-11-18 10:11 EST, Christian Walther CLA
Szymon.Brandys: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Walther CLA 2010-11-18 10:11:04 EST
Build Identifier: 20100917-0705

The schema for extension point org.eclipse.core.resources.filterMatchers (http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.core.resources/schema/filterMatchers.exsd?revision=1.1&view=markup) specifies that the class to implement the matcher should be based on "org.eclipse.core.resources.AbstractFileInfoMatcher". Such a class doesn't exist, the AbstractFileInfoMatcher class actually resides in package org.eclipse.core.resources.filtermatchers (http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.core.resources/src/org/eclipse/core/resources/filtermatchers/AbstractFileInfoMatcher.java?revision=1.6&view=markup).

I propose the attached patch to the schema (untested since I'm not currently set up to build Eclipse from CVS, but should be straightforward enough).

Reproducible: Always

Steps to Reproduce:
1. In an Eclipse plugin project, make a new extension to point org.eclipse.core.resources.filterMatchers.
2. Click on the "class" hyperlink under Extension Element Details to bring up the "New Java Class" dialog.
3. Click Finish, accepting the default values in the dialog.
4. Note the error "org.eclipse.core.resources.AbstractFileInfoMatcher cannot be resolved to a type" in the generated class.
5. Change the superclass to "org.eclipse.core.resources.filtermatchers.AbstractFileInfoMatcher" and note that the error goes away.
Comment 1 Christian Walther CLA 2010-11-18 10:11:45 EST
Created attachment 183383 [details]
proposed patch
Comment 2 Szymon Brandys CLA 2010-11-26 10:52:46 EST
Fixed in HEAD. Thanks Christian.