Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.team.core.mapping
Interface ISynchronizationScopeManager

All Known Implementing Classes:
SubscriberScopeManager, SynchronizationScopeManager

public interface ISynchronizationScopeManager

A scope manager is responsible for ensuring that the resources contained within an ISynchronizationScope stay up-to-date with the model elements (represented as ResourceMapping instances) contained in the scope. The task of keeping a scope up-to-date is accomplished by obtaining ISynchronizationScopeParticipant instances for each model that has elements contained in the scope.

Since:
3.2
See Also:
ResourceMapping, SynchronizationScopeManager, ISynchronizationScopeParticipant
Restriction:
This interface is not intended to be implemented by clients. Clients can instead subclass SynchronizationScopeManager

Method Summary
 void dispose ()
          Method to be invoked when the scope of this manager is no longer needed.
  ISynchronizationScope getScope ()
          Return the scope that is managed by this manager.
 void initialize ( IProgressMonitor monitor)
          Build the scope that is used to determine the complete set of resource mappings, and hence resources, that an operation should be performed on.
 boolean isInitialized ()
          Return whether the scope has been initialized.
  ResourceTraversal[] refresh ( ResourceMapping[] mappings, IProgressMonitor monitor)
          Refresh the scope of this manager for the given mappings.
 

Method Detail

getScope


ISynchronizationScope getScope()
Return the scope that is managed by this manager.

Returns:
the scope that is managed by this manager

isInitialized

boolean isInitialized()
Return whether the scope has been initialized.

Returns:
whether the scope has been initialized.

initialize

void initialize(
IProgressMonitor monitor)
                throws 
CoreException
Build the scope that is used to determine the complete set of resource mappings, and hence resources, that an operation should be performed on.

This method obtains a lock on the workspace root to avoid workspace changes while calculating the scope.

Parameters:
monitor - a progress monitor when building the scope
Throws:
CoreException

refresh


ResourceTraversal[] refresh(
ResourceMapping[] mappings,
                            
IProgressMonitor monitor)
                            throws 
CoreException
Refresh the scope of this manager for the given mappings. Changes in the scope will be reported as a property change event fired from the scope. Clients should call this method when a change in the workspace or a change issued from this manager have resulted in a change in the resources that should be included in the scope.

Parameters:
mappings - the mappings to be refreshed
monitor - a progress monitor
Returns:
a set of traversals that cover the given mappings
Throws:
CoreException

dispose

void dispose()
Method to be invoked when the scope of this manager is no longer needed. It is typically the responsibility of the client that creates a scope manager to dispose of it.


Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire