Class ResolveReferencesEvent
- All Implemented Interfaces:
IPostEventProcessing
This event is not passed the normal event channel, it is sent directly to the property. Property containers call all its children with this event using GProp.onReferenceEvent(ResolveReferencesEvent)
.
Two events are sent with the same event ID, but with different options, the first one is sent in the order of: SELF, LISTENER, CHILDREN. To check if it's the first event, verify that isPostResolving()
is false. This event makes sure that a property performs its own reference resolving before passing it on further down to its children. It is e.g. used to handle the VSReference property for a Web Service, followed by VSRelativeReference in the Web Service children properties. In this case it is important that VSReference is resolved before VSRelativeReference.
The second event has the flag returned by isPostResolving()
set to true. The event order is: CHILDREN, LISTENER, SELF. It gives the property an opportunity to collect results from the resolve process of its children in order to e.g. create error markers in Eclipse for resources.
The Event ID is GEvent.PROP_RESOLVE_REFERENCES.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class com.iizix.event.GEvent
GEvent.Operation
Field Summary
Fields inherited from class com.iizix.event.GEvent
PROP_ADDED, PROP_ATTR_CHANGED, PROP_CNR_ADDED, PROP_CNR_FOCUS, PROP_CNR_MOVED, PROP_CNR_RENAMED, PROP_DESIGNER_ASSET_CHANGED, PROP_DESIGNER_JAVA_CLASS_CHANGED, PROP_DESIGNER_JAVA_METHOD_RENAMED, PROP_DESIGNER_KSTRING, PROP_DESIGNER_VIEWER_UPDATE, PROP_DESIGNER_VS_REFERENCE, PROP_DISPOSED, PROP_FOCUS, PROP_MOVED_FROM, PROP_MOVED_TO, PROP_PROJECT_RENAMED, PROP_QUERY_DESIGNER_PROPS, PROP_REFRESH, PROP_REMOVED, PROP_RENAMED, PROP_REORDERED, PROP_RESOLVE_REFERENCES_DIRECT, PROP_VALUE_CHANGED, REMOTE
Constructor Summary
ConstructorDescriptionResolveReferencesEvent
(PropCnr root, boolean doReCheck, boolean isPostResolving) Constructs a new Resolve References event with the specifiedisPostResolving
flag.Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the flag to force a re-check of the reference, even resolved ones.Gets the Operations order describing what Operation the property that receives the event should process.boolean
Checks if event is a post-reference resolve event flavor, i.e.Creates a new event like this one, but with a new source.protected StringBuilder
paramString
(StringBuilder buf) Returns the parameter string representing the state of this event.Methods inherited from class com.iizix.event.GEvent
addPostProcessor, cancel, consume, getAlternateDestination, getEventID, getEventName, getEventName, getEventTarget, getOperation, getPostProcessors, getSender, getSource, getTrigger, isCancelled, isClearCacheEvent, isConsumed, isEventProcessed, isPropertyChange, isPropertyChange, isPropertyChange, isPropertyChangeIn, isPropertyChangeInTree, isRefreshEvent, isRemoteInduced, isVerifyEvent, send, send, sendSelf, setInitialProperty, setOperation, setProgressMonitor, toString
Constructor Details
ResolveReferencesEvent
Constructs a new Resolve References event with the specifiedisPostResolving
flag.- Parameters:
root
- The root property.isPostResolving
- Flag indicating this change is induced from a remote party.- Throws:
NullPointerException
- Ifmonitor
is null.
Method Details
getOperations
Gets the Operations order describing what Operation the property that receives the event should process. This Operations order defines that the event will be sinking, i.e. sent from parent to children.The event Operations in order are: SELF, CHILDREN for both pre- and post-resolving.
- Specified by:
getOperations
in classGEvent
- Returns:
- The order of the Operations, per Event-implementing class dependent, normally a static final array.
isPostResolving
public boolean isPostResolving()Checks if event is a post-reference resolve event flavor, i.e. the second of the two events fired when resolving references.doReCheck
public boolean doReCheck()Gets the flag to force a re-check of the reference, even resolved ones.newSource
Creates a new event like this one, but with a new source.- Parameters:
source
- The new source.- Returns:
- A new ResolveReferencesEvent instance.
paramString
Returns the parameter string representing the state of this event. This string is useful for debugging. Super classes adds extra information to the string by preceding it with a comma followed by the extra information.- Overrides:
paramString
in classGEvent
- Parameters:
buf
- The StringBuilder to append the string to.- Returns:
- The StringBuilder, i.e. the
buf
input parameter.