|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.filters.FilterDescriptor
public class FilterDescriptor
Represents a custom filter which is provided by the "org.eclipse.jdt.ui.javaElementFilters" extension point. since 2.0
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
|
org.eclipse.jface.viewers.ViewerFilter |
createViewerFilter()
Creates a new ViewerFilter . |
java.lang.String |
getDescription()
Returns the filter's description. |
static FilterDescriptor[] |
getFilterDescriptors()
Returns all contributed Java element filters. |
static FilterDescriptor[] |
getFilterDescriptors(java.lang.String targetId)
Returns all Java element filters which are contributed to the given view. |
java.lang.String |
getId()
Returns the filter's id. |
java.lang.String |
getName()
Returns the filter's name. |
java.lang.String |
getPattern()
Returns the filter's pattern. |
java.lang.String |
getTargetId()
Returns the filter's viewId. |
boolean |
isCustomFilter()
|
boolean |
isEnabled()
Returns true if the filter
is initially enabled. |
boolean |
isPatternFilter()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FilterDescriptor[] getFilterDescriptors()
public static FilterDescriptor[] getFilterDescriptors(java.lang.String targetId)
public org.eclipse.jface.viewers.ViewerFilter createViewerFilter()
ViewerFilter
.
This method is only valid for viewer filters.
public java.lang.String getId()
This attribute is mandatory for custom filters. The ID for pattern filters is PATTERN_FILTER_ID_PREFIX plus the pattern itself.
public java.lang.String getName()
If the name of a pattern filter is missing then the pattern is used as its name.
public java.lang.String getPattern()
null
if it's not a pattern filterpublic java.lang.String getTargetId()
null
if the filter is for all viewspublic java.lang.String getDescription()
null
if no description is providedpublic boolean isPatternFilter()
true
if this filter is a custom filter.public boolean isCustomFilter()
true
if this filter is a pattern filter.public boolean isEnabled()
true
if the filter
is initially enabled.
This attribute is optional and defaults to true
.
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |