public class VCSIconOverlayTracker extends IconOverlayTracker implements java.util.Observer, VCSEBComponent
Class for a node overlay tracker based around a version control status cache. The implementation will ensure that overlays are refreshed when statuses become dirty. Expansion of registered composite file elements (the oracle.ide.composite API) is handled internally. Also, the tracker will automatically be associated and disassociated with navigator windows when they are created and closed.
Modifier | Constructor and Description |
---|---|
|
VCSIconOverlayTracker() |
protected |
VCSIconOverlayTracker(int batchSize,
VCSOverlayItemProducer overlayItemProducer,
URLFilter filter,
java.lang.String vcsId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Configures the
IconOverlayTracker instance. |
static java.lang.String |
createInfoTypeID(java.lang.String vcsId) |
protected IconOverlay |
getCompositeElementOverlay(java.net.URL[] urls) |
VCSOverlayItemProducer |
getOverlayItemProducer() |
protected IconOverlay[] |
getOverlays(Element[] elements)
Gets the displayable overlay information for the given elements.
|
void |
handleMessage(VCSEBMessage message)
Handles a message sent on the
VCSEventBus . |
protected boolean |
isControlled(Element element)
Asks whether the given element is controlled by the overlay client.
|
void |
setOverlayItemProducer(VCSOverlayItemProducer overlayItemProducer) |
void |
setSystemId(java.lang.String vcsId) |
void |
setURLFilter(URLFilter filter) |
protected void |
startTrackingImpl() |
protected void |
stopTrackingImpl() |
void |
update(java.util.Observable o,
java.lang.Object arg) |
getExtensionID, getInfoTypeID, getOverlayCache, getValidElements, repaintOverlays, startTracking, stopTracking, validateOverlay, validateOverlays
public VCSIconOverlayTracker()
@Deprecated protected VCSIconOverlayTracker(int batchSize, VCSOverlayItemProducer overlayItemProducer, URLFilter filter, java.lang.String vcsId)
public static final java.lang.String createInfoTypeID(java.lang.String vcsId)
protected void configure()
IconOverlayTracker
IconOverlayTracker
instance. Override this method
to perform additional initialization after construction and configuration
by the associated IconOverlayCoordinator
.configure
in class IconOverlayTracker
public final void setOverlayItemProducer(VCSOverlayItemProducer overlayItemProducer)
public final void setURLFilter(URLFilter filter)
public final void setSystemId(java.lang.String vcsId)
public final VCSOverlayItemProducer getOverlayItemProducer()
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
public void handleMessage(VCSEBMessage message)
VCSEBComponent
VCSEventBus
.handleMessage
in interface VCSEBComponent
message
- the message to handle.protected void startTrackingImpl()
startTrackingImpl
in class IconOverlayTracker
protected void stopTrackingImpl()
stopTrackingImpl
in class IconOverlayTracker
protected boolean isControlled(Element element)
IconOverlayTracker
isControlled
in class IconOverlayTracker
element
- the element.protected IconOverlay[] getOverlays(Element[] elements)
IconOverlayTracker
getOverlays
in class IconOverlayTracker
elements
- the collection of elements.protected IconOverlay getCompositeElementOverlay(java.net.URL[] urls) throws java.lang.Exception
java.lang.Exception