com.microsoft.tfs.core.clients.versioncontrol.events
Class VersionControlEventEngine

java.lang.Object
  extended by com.microsoft.tfs.core.clients.versioncontrol.events.VersionControlEventEngine

public final class VersionControlEventEngine
extends java.lang.Object

Coordinates listeners and fires events for VersionControlClient.

Events are processed synchronously: fire*() methods only return after each registered event handler processes the event completely.

This class is thread-safe. fire*() methods do not invoke event listener methods inside a synchronized block. This is done to prevent any implementation of an event listener from calling back into this event engine (through some other VersionControlClient method which would fire an event). That might cause deadlock, and is avoided by not locking when invoking listeners. An effect of this behavior is that an event listener could be invoked a short time after it was removed by another thread.

Some core methods create new threads to perform work, and events may be fired by these new threads. To help callers determine which call into core created these events, each event is accompanied by an EventSource object which identifies the original thread.

Event handlers that throw any Throwable will have the error logged by the VersionControlEventEngine and the next handler will be invoked normally. These errors will not be rethrown by the fire* methods.

Since:
TEE-SDK-10.1
Thread-safety:
thread-safe

Constructor Summary
VersionControlEventEngine()
           
 
Method Summary
 void addBeforeCheckinListener(BeforeCheckinListener listener)
          Add a listener for the event fired before a pending change is checked in.
 void addBeforeShelveListener(BeforeShelveListener listener)
          Add a listener for the event fired before a pending change is shelved.
 void addBranchCommittedListener(BranchCommittedListener listener)
          Adds a listener for the event fired when branches are committed.
 void addBranchObjectUpdatedListener(BranchObjectUpdatedListener listener)
          Adds a listener for the event fired when a branch object is created or modified.
 void addChangesetReconciledListener(ChangesetReconciledListener listener)
          Add a listener for the event fired when pending changes are reconciled with a checked-in changeset.
 void addCheckinListener(CheckinListener listener)
          Add a listener for the event fired when a checkin has completed successfully.
 void addConflictListener(ConflictListener listener)
          Add a listener for the event fired when a conflict is discovered.
 void addConflictResolvedListener(ConflictResolvedListener listener)
          Add a listener for the event fired when a conflict is resolved.
 void addDestroyListener(DestroyListener listener)
          Adds a listener for the event fired when an item is destroyed.
 void addFolderContentChangedListener(FolderContentChangedListener listener)
          Add a listener for the event fired when server folder content is changed without pending changes.
 void addGetCompletedListener(GetCompletedListener listener)
          Add a listener for the event fired when a get operation completes.
 void addGetListener(GetListener listener)
          Add a listener for the event fired when a file is retrieved.
 void addLocalWorkspaceScanListener(LocalWorkspaceScanListener listener)
          Add a listener for the event fired when a change was detected by a local workspace scanner.
 void addMergingListener(MergingListener listener)
          Add a listener for the event fired when a file is being merged.
 void addNewPendingChangeListener(NewPendingChangeListener listener)
          Add a listener for the event fired when a change is pended.
 void addNonFatalErrorListener(NonFatalErrorListener listener)
          Add a listener for the event fired when a non-fatal error is encountered.
 void addOperationCompletedListener(OperationCompletedListener listener)
          Add a listener for the event fired when a client operation is completed.
 void addOperationStartedListener(OperationStartedListener listener)
          Add a listener for the event fired when a client operation is started.
 void addPendingChangeCandidatesChangedListener(PendingChangeCandidatesChangedListener listener)
          Add a listener for the event fired when a pending change candidates list changes.
 void addPendingChangesChangedListener(PendingChangesChangedListener listener)
          Add a listener for the event fired when the pending changes list changes.
 void addScannerModifiedFilesListener(ScannerModifiedFilesListener listener)
          Adds a listener for the event fired when the LocalWorkspaceScanner modifies on-disk file information during a scan.
 void addShelveListener(ShelveListener listener)
          Add a listener for the event fired when a shelve operation has completed.
 void addUndonePendingChangeListener(UndonePendingChangeListener listener)
          Add a listener for the event fired when a pending change is undone.
 void addWorkspaceCacheFileReloadedListener(WorkspaceCacheFileReloadedListener listener)
          Add a listener for the event fired when the Workstation's workspace cache is reloaded.
 void addWorkspaceCreatedListener(WorkspaceCreatedListener listener)
          Add a listener for the event fired when a workspace is created.
 void addWorkspaceDeletedListener(WorkspaceDeletedListener listener)
          Add a listener for the event fired when a workspace is deleted.
 void addWorkspaceUpdatedListener(WorkspaceUpdatedListener listener)
          Add a listener for the event fired when a workspace is updated (meaning the workspace data or the working folder mappings are modified.)
 void addWorkstationNonFatalErrorListener(WorkstationNonFatalErrorListener listener)
          Add a listener for the event fired when a non-fatal error is encountered processing the workstation's cache files.
 void clear()
          Removes all listeners.
 void fireBeforeCheckinPendingChange(PendingChangeEvent event)
          Fire an event before a pending change is checked in.
 void fireBeforeShelvePendingChange(PendingChangeEvent event)
          Fire an event before a pending change is shelved.
 void fireBranchCommitted(BranchCommittedEvent event)
          Fire an event after a branch has been committed.
 void fireBranchObjectUpdated(BranchObjectUpdatedEvent event)
          Fire an event after a branch object has been created or modified.
 void fireChangesetReconciledEvent(ChangesetReconciledEvent event)
           
 void fireCheckin(CheckinEvent event)
          Fire an event after a checkin has succeeded.
 void fireConflict(ConflictEvent event)
          Fires an event that signals a conflict was detected.
 void fireConflictResolved(ConflictResolvedEvent event)
          Fires an event that signals a conflict has been resolved.
 void fireDestroyEvent(DestroyEvent event)
           
 void fireFolderContentChangedEvent(FolderContentChangedEvent event)
           
 void fireGet(GetEvent event)
          Fire an event when a file is retrieved from the server.
 void fireGetCompletedEvent(WorkspaceEvent event)
           
 void fireLocalWorkspaceScanEvent(WorkspaceEvent event)
           
 void fireMerging(MergingEvent event)
          Fires an event that signals a file is being merged.
 void fireNewPendingChange(PendingChangeEvent event)
          Fire an event when a new change is pended.
 void fireNonFatalError(NonFatalErrorEvent event)
           
 void fireOperationCompleted(OperationCompletedEvent event)
          This "fire" method requires the caller construct its own event, because OperationCompletedEvent is abstract and we must use derived classes.
 void fireOperationStarted(OperationStartedEvent event)
          This "fire" method requires the caller construct its own event, because OperationCompletedEvent is abstract and we must use derived classes.
 void firePendingChangeCandidatesChangedEvent(WorkspaceEvent event)
           
 void firePendingChangesChangedEvent(WorkspaceEvent event)
           
 void fireScannerModifiedFile(ScannerModifiedFilesEvent event)
           
 void fireShelve(ShelveEvent event)
          Fire an event after a shelve operation has succeeded.
 void fireUndonePendingChange(PendingChangeEvent event)
          Fire an event when a pending change is undone.
 void fireWorkspaceCacheFileReloaded(WorkspaceCacheFileReloadedEvent event)
           
 void fireWorkspaceCreated(WorkspaceEvent event)
          Fire an event when a workspace is created.
 void fireWorkspaceDeleted(WorkspaceEvent event)
          Fire an event when a workspace is deleted.
 void fireWorkspaceUpdated(WorkspaceUpdatedEvent event)
          Fire an event when a workspace is updated.
 void fireWorkstationNonFatalError(WorkstationNonFatalErrorEvent event)
           
 void removeBeforeCheckinListener(BeforeCheckinListener listener)
          Remove a listener for the event fired before a pending change is checked in.
 void removeBeforeShelveListener(BeforeShelveListener listener)
          Remove a listener for the event fired before a pending change is shelved.
 void removeBranchCommittedListener(BranchCommittedListener listener)
          Adds a listener for the event fired when branches are committed.
 void removeBranchObjectUpdatedListener(BranchObjectUpdatedListener listener)
          Removes a listener for the event fired when a branch object is created or modified.
 void removeChangesetReconciledListener(ChangesetReconciledListener listener)
          Remove a listener for the event fired when pending changes are reconciled with a checked-in changeset.
 void removeCheckinListener(CheckinListener listener)
          Remove a listener for the event when a checkin has completed successfully.
 void removeConflictListener(ConflictListener listener)
          Remove a listener for the event fired when a conflict is discovered.
 void removeConflictResolvedListener(ConflictResolvedListener listener)
          Remove a listener for the event fired when a conflict is resolved.
 void removeDestroyListener(DestroyListener listener)
          Removes a listener for the event fired when an item is destroyed.
 void removeFolderContentChangedListener(FolderContentChangedListener listener)
          Remove a listener for the event fired when server folder content is changed without pending changes.
 void removeGetCompletedListener(GetCompletedListener listener)
          Remove a listener for the event fired when a get operation completes.
 void removeGetListener(GetListener listener)
          Remove a listener for the event fired when a file is retrieved.
 void removeLocalWorkspaceScanListener(LocalWorkspaceScanListener listener)
          Removes a listener for the event fired when a change was detected by a local workspace scanner.
 void removeMergingListener(MergingListener listener)
          Remove a listener for the event fired when a file is being merged.
 void removeNewPendingChangeListener(NewPendingChangeListener listener)
          Remove a listener for the event fired when a change is pended.
 void removeNonFatalErrorListener(NonFatalErrorListener listener)
          Remove a listener for the event fired when a non-fatal error is encountered.
 void removeOperationCompletedListener(OperationCompletedListener listener)
          Remove a listener for the event fired when a client operation is completed.
 void removeOperationStartedListener(OperationStartedListener listener)
          Remove a listener for the event fired when a client operation is started.
 void removePendingChangeCandidatesChangedListener(PendingChangeCandidatesChangedListener listener)
          Remove a listener for the event fired when a pending change candidates list changes.
 void removePendingChangesChangedListener(PendingChangesChangedListener listener)
          Remove a listener for the event fired when a workspace is created.
 void removeScannerModifiedFilesListener(ScannerModifiedFilesListener listener)
          Removes a listener for the event fired when the LocalWorkspaceScanner modifies on-disk file information during a scan.
 void removeShelveListener(ShelveListener listener)
          Remove a listener for the event when a cshelve operation has completed.
 void removeUndonePendingChangeListener(UndonePendingChangeListener listener)
          Remove a listener for the event fired when a pending change is undone.
 void removeWorkspaceCacheFileReloadedListener(WorkspaceCacheFileReloadedListener listener)
          Remove a listener for the event fired when the Workstation's workspace cache is reloaded.
 void removeWorkspaceCreatedListener(WorkspaceCreatedListener listener)
          Remove a listener for the event fired when a workspace is created.
 void removeWorkspaceDeletedListener(WorkspaceDeletedListener listener)
          Remove a listener for the event fired when a workspace is removed.
 void removeWorkspaceUpdatedListener(WorkspaceUpdatedListener listener)
          Remove a listener for the event fired when a workspace is updated (meaning the workspace data or the working folder mappings are modified.)
 void removeWorkstationNonFatalErrorListener(WorkstationNonFatalErrorListener listener)
          Remove a listener for the event fired when a non-fatal error is encountered processing the workstation's cache files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionControlEventEngine

public VersionControlEventEngine()
Method Detail

fireWorkspaceCreated

public void fireWorkspaceCreated(WorkspaceEvent event)
Fire an event when a workspace is created.


fireWorkspaceUpdated

public void fireWorkspaceUpdated(WorkspaceUpdatedEvent event)
Fire an event when a workspace is updated.


fireWorkspaceDeleted

public void fireWorkspaceDeleted(WorkspaceEvent event)
Fire an event when a workspace is deleted.


fireNonFatalError

public void fireNonFatalError(NonFatalErrorEvent event)

fireWorkstationNonFatalError

public void fireWorkstationNonFatalError(WorkstationNonFatalErrorEvent event)

fireGet

public void fireGet(GetEvent event)
Fire an event when a file is retrieved from the server.


fireNewPendingChange

public void fireNewPendingChange(PendingChangeEvent event)
Fire an event when a new change is pended.


fireUndonePendingChange

public void fireUndonePendingChange(PendingChangeEvent event)
Fire an event when a pending change is undone.


fireBeforeCheckinPendingChange

public void fireBeforeCheckinPendingChange(PendingChangeEvent event)
Fire an event before a pending change is checked in.


fireBeforeShelvePendingChange

public void fireBeforeShelvePendingChange(PendingChangeEvent event)
Fire an event before a pending change is shelved.


fireBranchCommitted

public void fireBranchCommitted(BranchCommittedEvent event)
Fire an event after a branch has been committed.


fireBranchObjectUpdated

public void fireBranchObjectUpdated(BranchObjectUpdatedEvent event)
Fire an event after a branch object has been created or modified.


fireScannerModifiedFile

public void fireScannerModifiedFile(ScannerModifiedFilesEvent event)

fireCheckin

public void fireCheckin(CheckinEvent event)
Fire an event after a checkin has succeeded.


fireShelve

public void fireShelve(ShelveEvent event)
Fire an event after a shelve operation has succeeded.


fireConflict

public void fireConflict(ConflictEvent event)
Fires an event that signals a conflict was detected.


fireConflictResolved

public void fireConflictResolved(ConflictResolvedEvent event)
Fires an event that signals a conflict has been resolved.


fireOperationStarted

public void fireOperationStarted(OperationStartedEvent event)
This "fire" method requires the caller construct its own event, because OperationCompletedEvent is abstract and we must use derived classes.


fireOperationCompleted

public void fireOperationCompleted(OperationCompletedEvent event)
This "fire" method requires the caller construct its own event, because OperationCompletedEvent is abstract and we must use derived classes.


fireMerging

public void fireMerging(MergingEvent event)
Fires an event that signals a file is being merged.


fireDestroyEvent

public void fireDestroyEvent(DestroyEvent event)

firePendingChangesChangedEvent

public void firePendingChangesChangedEvent(WorkspaceEvent event)

firePendingChangeCandidatesChangedEvent

public void firePendingChangeCandidatesChangedEvent(WorkspaceEvent event)

fireGetCompletedEvent

public void fireGetCompletedEvent(WorkspaceEvent event)

fireFolderContentChangedEvent

public void fireFolderContentChangedEvent(FolderContentChangedEvent event)

fireChangesetReconciledEvent

public void fireChangesetReconciledEvent(ChangesetReconciledEvent event)

fireWorkspaceCacheFileReloaded

public void fireWorkspaceCacheFileReloaded(WorkspaceCacheFileReloadedEvent event)

fireLocalWorkspaceScanEvent

public void fireLocalWorkspaceScanEvent(WorkspaceEvent event)

addWorkspaceCreatedListener

public void addWorkspaceCreatedListener(WorkspaceCreatedListener listener)
Add a listener for the event fired when a workspace is created.

Parameters:
listener - the listener to add (must not be null)

removeWorkspaceCreatedListener

public void removeWorkspaceCreatedListener(WorkspaceCreatedListener listener)
Remove a listener for the event fired when a workspace is created.

Parameters:
listener - the listener to remove (must not be null)

addWorkspaceUpdatedListener

public void addWorkspaceUpdatedListener(WorkspaceUpdatedListener listener)
Add a listener for the event fired when a workspace is updated (meaning the workspace data or the working folder mappings are modified.)

Parameters:
listener - the listener to add (must not be null)

removeWorkspaceUpdatedListener

public void removeWorkspaceUpdatedListener(WorkspaceUpdatedListener listener)
Remove a listener for the event fired when a workspace is updated (meaning the workspace data or the working folder mappings are modified.)

Parameters:
listener - the listener to remove (must not be null)

addWorkspaceDeletedListener

public void addWorkspaceDeletedListener(WorkspaceDeletedListener listener)
Add a listener for the event fired when a workspace is deleted.

Parameters:
listener - the listener to add (must not be null)

removeWorkspaceDeletedListener

public void removeWorkspaceDeletedListener(WorkspaceDeletedListener listener)
Remove a listener for the event fired when a workspace is removed.

Parameters:
listener - the listener to remove (must not be null)

addNonFatalErrorListener

public void addNonFatalErrorListener(NonFatalErrorListener listener)
Add a listener for the event fired when a non-fatal error is encountered.

Parameters:
listener - the listener to add (must not be null)

removeNonFatalErrorListener

public void removeNonFatalErrorListener(NonFatalErrorListener listener)
Remove a listener for the event fired when a non-fatal error is encountered.

Parameters:
listener - the listener to remove (must not be null)

addWorkstationNonFatalErrorListener

public void addWorkstationNonFatalErrorListener(WorkstationNonFatalErrorListener listener)
Add a listener for the event fired when a non-fatal error is encountered processing the workstation's cache files.

Parameters:
listener - the listener to add (must not be null)

removeWorkstationNonFatalErrorListener

public void removeWorkstationNonFatalErrorListener(WorkstationNonFatalErrorListener listener)
Remove a listener for the event fired when a non-fatal error is encountered processing the workstation's cache files.

Parameters:
listener - the listener to remove (must not be null)

addGetListener

public void addGetListener(GetListener listener)
Add a listener for the event fired when a file is retrieved.

Parameters:
listener - the listener to add (must not be null)

removeGetListener

public void removeGetListener(GetListener listener)
Remove a listener for the event fired when a file is retrieved.

Parameters:
listener - the listener to remove (must not be null)

addNewPendingChangeListener

public void addNewPendingChangeListener(NewPendingChangeListener listener)
Add a listener for the event fired when a change is pended.

Parameters:
listener - the listener to add (must not be null)

removeNewPendingChangeListener

public void removeNewPendingChangeListener(NewPendingChangeListener listener)
Remove a listener for the event fired when a change is pended.

Parameters:
listener - the listener to remove (must not be null)

addUndonePendingChangeListener

public void addUndonePendingChangeListener(UndonePendingChangeListener listener)
Add a listener for the event fired when a pending change is undone.

Parameters:
listener - the listener to add (must not be null)

removeUndonePendingChangeListener

public void removeUndonePendingChangeListener(UndonePendingChangeListener listener)
Remove a listener for the event fired when a pending change is undone.

Parameters:
listener - the listener to remove (must not be null)

addBeforeCheckinListener

public void addBeforeCheckinListener(BeforeCheckinListener listener)
Add a listener for the event fired before a pending change is checked in.

Parameters:
listener - the listener to add (must not be null)

removeBeforeCheckinListener

public void removeBeforeCheckinListener(BeforeCheckinListener listener)
Remove a listener for the event fired before a pending change is checked in.

Parameters:
listener - the listener to remove (must not be null)

addBeforeShelveListener

public void addBeforeShelveListener(BeforeShelveListener listener)
Add a listener for the event fired before a pending change is shelved.

Parameters:
listener - the listener to add (must not be null)

removeBeforeShelveListener

public void removeBeforeShelveListener(BeforeShelveListener listener)
Remove a listener for the event fired before a pending change is shelved.

Parameters:
listener - the listener to remove (must not be null)

addCheckinListener

public void addCheckinListener(CheckinListener listener)
Add a listener for the event fired when a checkin has completed successfully.

Parameters:
listener - the listener to add (must not be null)

removeCheckinListener

public void removeCheckinListener(CheckinListener listener)
Remove a listener for the event when a checkin has completed successfully.

Parameters:
listener - the listener to remove (must not be null)

addShelveListener

public void addShelveListener(ShelveListener listener)
Add a listener for the event fired when a shelve operation has completed.

Parameters:
listener - the listener to add (must not be null)

removeShelveListener

public void removeShelveListener(ShelveListener listener)
Remove a listener for the event when a cshelve operation has completed.

Parameters:
listener - the listener to remove (must not be null)

addOperationStartedListener

public void addOperationStartedListener(OperationStartedListener listener)
Add a listener for the event fired when a client operation is started. These operations are like Get, Undo, and Pend. The event may not be fired if the operation did not do any work (for example, the input array to undo is empty and the function returns early).

Parameters:
listener - the listener to add (must not be null)

removeOperationStartedListener

public void removeOperationStartedListener(OperationStartedListener listener)
Remove a listener for the event fired when a client operation is started.

Parameters:
listener - the listener to remove (must not be null)

addOperationCompletedListener

public void addOperationCompletedListener(OperationCompletedListener listener)
Add a listener for the event fired when a client operation is completed. These operations are like Get, Undo, and Pend. The event may not be fired if the operation did not do any work (for example, the input array to undo is empty and the function returns early).

Parameters:
listener - the listener to add (must not be null)

removeOperationCompletedListener

public void removeOperationCompletedListener(OperationCompletedListener listener)
Remove a listener for the event fired when a client operation is completed.

Parameters:
listener - the listener to remove (must not be null)

addConflictListener

public void addConflictListener(ConflictListener listener)
Add a listener for the event fired when a conflict is discovered.

Parameters:
listener - the listener to add (must not be null)

removeConflictListener

public void removeConflictListener(ConflictListener listener)
Remove a listener for the event fired when a conflict is discovered.

Parameters:
listener - the listener to remove (must not be null)

addConflictResolvedListener

public void addConflictResolvedListener(ConflictResolvedListener listener)
Add a listener for the event fired when a conflict is resolved.

Parameters:
listener - the listener to add (must not be null)

removeConflictResolvedListener

public void removeConflictResolvedListener(ConflictResolvedListener listener)
Remove a listener for the event fired when a conflict is resolved.

Parameters:
listener - the listener to remove (must not be null)

addMergingListener

public void addMergingListener(MergingListener listener)
Add a listener for the event fired when a file is being merged.

Parameters:
listener - the listener to add (must not be null)

removeMergingListener

public void removeMergingListener(MergingListener listener)
Remove a listener for the event fired when a file is being merged.

Parameters:
listener - the listener to remove (must not be null)

addDestroyListener

public void addDestroyListener(DestroyListener listener)
Adds a listener for the event fired when an item is destroyed.

Parameters:
listener - the listener to add (must not be null)

removeDestroyListener

public void removeDestroyListener(DestroyListener listener)
Removes a listener for the event fired when an item is destroyed.

Parameters:
listener - the listener to remove (must not be null)

addBranchCommittedListener

public void addBranchCommittedListener(BranchCommittedListener listener)
Adds a listener for the event fired when branches are committed.

Parameters:
listener - the listener to add (must not be null)

removeBranchCommittedListener

public void removeBranchCommittedListener(BranchCommittedListener listener)
Adds a listener for the event fired when branches are committed.

Parameters:
listener - the listener to remove (must not be null)

addBranchObjectUpdatedListener

public void addBranchObjectUpdatedListener(BranchObjectUpdatedListener listener)
Adds a listener for the event fired when a branch object is created or modified.

Parameters:
listener - the listener to add (must not be null)

removeBranchObjectUpdatedListener

public void removeBranchObjectUpdatedListener(BranchObjectUpdatedListener listener)
Removes a listener for the event fired when a branch object is created or modified.

Parameters:
listener - the listener to remove (must not be null)

addScannerModifiedFilesListener

public void addScannerModifiedFilesListener(ScannerModifiedFilesListener listener)
Adds a listener for the event fired when the LocalWorkspaceScanner modifies on-disk file information during a scan.

Parameters:
listener - athe listener to add (must not be null)

removeScannerModifiedFilesListener

public void removeScannerModifiedFilesListener(ScannerModifiedFilesListener listener)
Removes a listener for the event fired when the LocalWorkspaceScanner modifies on-disk file information during a scan.

Parameters:
listener - the listener to remove (must not be null)

addPendingChangesChangedListener

public void addPendingChangesChangedListener(PendingChangesChangedListener listener)
Add a listener for the event fired when the pending changes list changes.

Parameters:
listener - the listener to add (must not be null)

removePendingChangesChangedListener

public void removePendingChangesChangedListener(PendingChangesChangedListener listener)
Remove a listener for the event fired when a workspace is created.

Parameters:
listener - the listener to remove (must not be null)

addPendingChangeCandidatesChangedListener

public void addPendingChangeCandidatesChangedListener(PendingChangeCandidatesChangedListener listener)
Add a listener for the event fired when a pending change candidates list changes.

Parameters:
listener - the listener to add (must not be null)

removePendingChangeCandidatesChangedListener

public void removePendingChangeCandidatesChangedListener(PendingChangeCandidatesChangedListener listener)
Remove a listener for the event fired when a pending change candidates list changes.

Parameters:
listener - the listener to remove (must not be null)

addGetCompletedListener

public void addGetCompletedListener(GetCompletedListener listener)
Add a listener for the event fired when a get operation completes.

Parameters:
listener - the listener to add (must not be null)

removeGetCompletedListener

public void removeGetCompletedListener(GetCompletedListener listener)
Remove a listener for the event fired when a get operation completes.

Parameters:
listener - the listener to remove (must not be null)

addFolderContentChangedListener

public void addFolderContentChangedListener(FolderContentChangedListener listener)
Add a listener for the event fired when server folder content is changed without pending changes. Examples are creating committed branch and destroying item.

Parameters:
listener - the listener to add (must not be null)

removeFolderContentChangedListener

public void removeFolderContentChangedListener(FolderContentChangedListener listener)
Remove a listener for the event fired when server folder content is changed without pending changes.

Parameters:
listener - the listener to remove (must not be null)

addChangesetReconciledListener

public void addChangesetReconciledListener(ChangesetReconciledListener listener)
Add a listener for the event fired when pending changes are reconciled with a checked-in changeset.

Parameters:
listener - the listener to add (must not be null)

removeChangesetReconciledListener

public void removeChangesetReconciledListener(ChangesetReconciledListener listener)
Remove a listener for the event fired when pending changes are reconciled with a checked-in changeset.

Parameters:
listener - the listener to remove (must not be null)

addWorkspaceCacheFileReloadedListener

public void addWorkspaceCacheFileReloadedListener(WorkspaceCacheFileReloadedListener listener)
Add a listener for the event fired when the Workstation's workspace cache is reloaded.

Parameters:
listener - the listener to add (must not be null)

removeWorkspaceCacheFileReloadedListener

public void removeWorkspaceCacheFileReloadedListener(WorkspaceCacheFileReloadedListener listener)
Remove a listener for the event fired when the Workstation's workspace cache is reloaded.

Parameters:
listener - the listener to remove (must not be null)

addLocalWorkspaceScanListener

public void addLocalWorkspaceScanListener(LocalWorkspaceScanListener listener)
Add a listener for the event fired when a change was detected by a local workspace scanner.

Parameters:
listener - the listener to add (must not be null)

removeLocalWorkspaceScanListener

public void removeLocalWorkspaceScanListener(LocalWorkspaceScanListener listener)
Removes a listener for the event fired when a change was detected by a local workspace scanner.

Parameters:
listener - the listener to remove (must not be null)

clear

public void clear()
Removes all listeners.



© 2015 Microsoft. All rights reserved.