Bug 115267 - [Properties] need 'or' filters for org.eclipse.ui.propertyPages extension point
Summary: [Properties] need 'or' filters for org.eclipse.ui.propertyPages extension point
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-11-07 02:08 EST by Hirotaka Matsumoto CLA
Modified: 2009-08-30 02:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hirotaka Matsumoto CLA 2005-11-07 02:08:54 EST
We can provide a property page for the selected object(i.e. IFile )
through org.eclipse.ui.propertyPages extension ponint and we can
set up 'filter' by its 'filter element'. i.e. we can filter it like :
<filter
  name="nature"
  value="org.eclipse.jdt.core.javanature">
</filter>
According to  org.eclipse.ui.internal.dialogs.RegistryPageContributor#testCustom

it checks the filter like :

Map filterProperties = getFilterProperties();
if (filterProperties == null)
    return false;
Iterator iter = filterProperties.keySet().iterator();
while (iter.hasNext()) {
    String key = (String) iter.next();
    String value = (String) filterProperties.get(key);
    if (!filter.testAttribute(object, key, value))
        return false;
    }
}

This looks like we can specify multiple 'filter's, but to 'pass'
this test, all filters should return 'true'. But what I would like to
see is 'either of filters are true, use this property page'. i.e.
if I specify :

<filter
  name="nature"
  value="org.eclipse.jdt.core.javanature">
</filter>
<filter
  name="nature"
  value="org.eclipse.wst.common.modulecore.ModuleCoreNature">
</filter>

my intention is that if the object has either a)org.eclipse.jdt.core.javanature
or b) org.eclipse.wst.common.modulecore.ModuleCoreNature, use this property page
for the selected IProject.


.
Comment 1 Tod Creasey CLA 2006-04-07 15:52:32 EDT
There are no plans to work on this feature currently
Comment 2 Denis Roy CLA 2009-08-30 02:07:42 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.