public interface ISynchronizeModelElement extends IDiffContainer, ITypedElement, ICompareInput
SubscriberParticipant
. Since it implements
ITypedElement
and ICompareInput
they can be used as input to compare components.
Clients typically use this interface as is, but may implement it if required.
Modifier and Type | Field and Description |
---|---|
static String |
BUSY_PROPERTY
Property constant indicating that the element is currently being worked on by an operation.
|
static String |
PROPAGATED_CONFLICT_PROPERTY
Property constant indicating that the element has children that are conflicting.
|
static String |
PROPAGATED_ERROR_MARKER_PROPERTY
Property constant identifying that this element or one of its children has an error marker.
|
static String |
PROPAGATED_WARNING_MARKER_PROPERTY
Property constant indicating that this element or one of its children has a warning marker.
|
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(IPropertyChangeListener listener)
Adds a listener for changes to properties of this synchronize element.
|
ImageDescriptor |
getImageDescriptor(Object element)
The image descriptor describing the given element.
|
boolean |
getProperty(String propertyName)
Return whether this element has the given property assigned.
|
IResource |
getResource()
Returns the resource this element is showing synchronization information for or
null
if the element does not have an associated local resource. |
void |
removePropertyChangeListener(IPropertyChangeListener listener)
Removes the given property change listener from this model element.
|
void |
setProperty(String propertyName,
boolean value)
Assigns the given property to this element.
|
void |
setPropertyToRoot(String propertyName,
boolean value)
Assigns the given property to this element and all it's parents.
|
add, getChildren, hasChildren, removeToRoot
getKind, getParent, setParent
getImage, getName, getType
addCompareInputChangeListener, copy, getAncestor, getImage, getKind, getLeft, getName, getRight, removeCompareInputChangeListener
static final String BUSY_PROPERTY
static final String PROPAGATED_CONFLICT_PROPERTY
static final String PROPAGATED_ERROR_MARKER_PROPERTY
static final String PROPAGATED_WARNING_MARKER_PROPERTY
void addPropertyChangeListener(IPropertyChangeListener listener)
listener
- the listener to registervoid removePropertyChangeListener(IPropertyChangeListener listener)
listener
- the listener to removevoid setPropertyToRoot(String propertyName, boolean value)
propertyName
- the property name to setvalue
- the value of the propertyvoid setProperty(String propertyName, boolean value)
propertyName
- the property namevalue
- the value of the property.boolean getProperty(String propertyName)
propertyName
- the property to test fortrue
if the property is set and false
otherwise.ImageDescriptor getImageDescriptor(Object element)
element
- the model element for which to return an image.IResource getResource()
null
if the element does not have an associated local resource.null
if the element does not have an associated local resource.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.