public interface IDifferenceFilter
Modifier and Type | Interface and Description |
---|---|
static interface |
IDifferenceFilter.Registry
A registry of
IDifferenceFilter . |
Modifier and Type | Method and Description |
---|---|
boolean |
defaultSelected()
Returns the initial activation state that the filter should have.
|
String |
getDescription()
A human-readable description for this filter.
|
String |
getLabel()
A human-readable label for this filter.
|
com.google.common.base.Predicate<? super EObject> |
getPredicateWhenSelected()
Returns the predicate that will filter out objects in the structural differences view when this filter
will be selected.
|
com.google.common.base.Predicate<? super EObject> |
getPredicateWhenUnselected()
Returns the predicate that will filter out objects in the structural differences view when this filter
will be unselected.
|
boolean |
isEnabled(IComparisonScope scope,
Comparison comparison)
Returns the activation condition based on the scope and comparison objects.
|
void |
setDefaultSelected(boolean defaultSelected)
Set the initial activation state that the filter should have.
|
void |
setDescription(String description)
Set the description for this filter.
|
void |
setLabel(String label)
Set the label for this filter.
|
com.google.common.base.Predicate<? super EObject> getPredicateWhenSelected()
com.google.common.base.Predicate<? super EObject> getPredicateWhenUnselected()
String getLabel()
void setLabel(String label)
label
- A human-readable label for this filter.String getDescription()
null
void setDescription(String description)
description
- A human-readable description for this filter.boolean defaultSelected()
void setDefaultSelected(boolean defaultSelected)
defaultSelected
- The initial activation state that the filter should have (true if the filter should be
active by default).boolean isEnabled(IComparisonScope scope, Comparison comparison)
scope
- The scope on which the filter will be applied.comparison
- The comparison which is to be displayed in the structural view.
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.