Extension SDK 9.0.5

oracle.jdeveloper.vcs.spi
Class VCSSingleSaveObserver

java.lang.Object
  extended byoracle.jdeveloper.vcs.spi.VCSSingleSaveObserver
All Implemented Interfaces:
Observer

public class VCSSingleSaveObserver
extends java.lang.Object
implements Observer

Observer class to flush a status cache on file save notifications.

Since:
9.0.5

Constructor Summary
VCSSingleSaveObserver(VCSStatusCache cache)
          Constructor.
 
Method Summary
protected  boolean isStateChange(java.net.URL url)
          Returns true if the specified url can change state due to a save operation.
 void update(java.lang.Object observed, UpdateMessage change)
          Notification message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VCSSingleSaveObserver

public VCSSingleSaveObserver(VCSStatusCache cache)
Constructor.

Parameters:
cache - the status cache for the save observer.
Method Detail

isStateChange

protected boolean isStateChange(java.net.URL url)
Returns true if the specified url can change state due to a save operation. By default, returns true regardless of the specified url.

Parameters:
url - the url to check
Returns:
true if saving the specified url can cause a state change.

update

public void update(java.lang.Object observed,
                   UpdateMessage change)
Description copied from interface: Observer
Notification message. Subjects call this method when they notify their observers that the subjects state has changed.

Specified by:
update in interface Observer
Parameters:
observed - the subject whose state has changed.
change - what has changed.

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.