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, validateOverlayspublic 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()
IconOverlayTrackerIconOverlayTracker instance. Override this method
to perform additional initialization after construction and configuration
by the associated IconOverlayCoordinator.configure in class IconOverlayTrackerpublic 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.Observerpublic void handleMessage(VCSEBMessage message)
VCSEBComponentVCSEventBus.handleMessage in interface VCSEBComponentmessage - the message to handle.protected void startTrackingImpl()
startTrackingImpl in class IconOverlayTrackerprotected void stopTrackingImpl()
stopTrackingImpl in class IconOverlayTrackerprotected boolean isControlled(Element element)
IconOverlayTrackerisControlled in class IconOverlayTrackerelement - the element.protected IconOverlay[] getOverlays(Element[] elements)
IconOverlayTrackergetOverlays in class IconOverlayTrackerelements - the collection of elements.protected IconOverlay getCompositeElementOverlay(java.net.URL[] urls) throws java.lang.Exception
java.lang.Exception