public interface ISynchronizeService extends ISynchronizeServiceDescriptor
| Modifier and Type | Method and Description |
|---|---|
void |
checkout(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath[] paths)
Replace the current contents of the given paths with the previous versions in the repository
|
void |
checkoutRemoteCopy(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath[] paths)
Replace the current contents of the given paths with the current local copies of the remote (not necessarily the same as what
is on the remote site).
|
void |
close(org.eclipse.core.resources.IProject project)
Close any resources (files, sockets) that were open by the sync provider for the given project.
|
java.util.Set<org.eclipse.core.runtime.IPath> |
getMergeConflictFiles(org.eclipse.core.resources.IProject project)
Get the current list of merge-conflicted files for the passed project and build scenario
|
java.lang.String[] |
getMergeConflictParts(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IFile file)
Get the three parts of the merge-conflicted file (left, right, and ancestor, respectively)
|
AbstractSyncFileFilter |
getSyncFileFilter(org.eclipse.core.resources.IProject project)
Get SyncFileFilter for given project
|
void |
setMergeAsResolved(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath[] paths) |
void |
setSyncFileFilter(org.eclipse.core.resources.IProject project,
AbstractSyncFileFilter filter)
Set sync file filter for the given project
|
void |
synchronize(org.eclipse.core.resources.IProject project,
RemoteLocation remoteLoc,
org.eclipse.core.resources.IResourceDelta delta,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Set<SyncFlag> syncFlags) |
getId, getName, getServicevoid checkout(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath[] paths)
throws org.eclipse.core.runtime.CoreException
project - path - org.eclipse.core.runtime.CoreExceptionvoid checkoutRemoteCopy(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath[] paths)
throws org.eclipse.core.runtime.CoreException
project - path - org.eclipse.core.runtime.CoreExceptionvoid close(org.eclipse.core.resources.IProject project)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionjava.util.Set<org.eclipse.core.runtime.IPath> getMergeConflictFiles(org.eclipse.core.resources.IProject project)
throws org.eclipse.core.runtime.CoreException
project - org.eclipse.core.runtime.CoreException - for system-level problems retrieving merge informationjava.lang.String[] getMergeConflictParts(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IFile file)
throws org.eclipse.core.runtime.CoreException
project - file - org.eclipse.core.runtime.CoreException - for system-level problems retrieving merge informationvoid setMergeAsResolved(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath[] paths)
throws org.eclipse.core.runtime.CoreException
project - path - org.eclipse.core.runtime.CoreException - for system-level problems setting the statevoid synchronize(org.eclipse.core.resources.IProject project,
RemoteLocation remoteLoc,
org.eclipse.core.resources.IResourceDelta delta,
org.eclipse.core.runtime.IProgressMonitor monitor,
java.util.Set<SyncFlag> syncFlags)
throws org.eclipse.core.runtime.CoreException
project - project to sync - cannot be nullremoteLoc - remote sync target - cannot be null.
Warning: Recommended that both clients and implementors make a copy to prevent subtle bugs if object is modifieddelta - resources requiring synchronizationmonitor - progress monitor for monitoring or canceling syncsyncFlags - Various flags for the sync call. For example, the sync can be
forced, either to local (from remote) or to remote (from
local). If forced, it is guaranteed to happen before
returning. Otherwise, it may happen at any time.org.eclipse.core.runtime.CoreException - if synchronization failsAbstractSyncFileFilter getSyncFileFilter(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
project - org.eclipse.core.runtime.CoreExceptionvoid setSyncFileFilter(org.eclipse.core.resources.IProject project,
AbstractSyncFileFilter filter)
throws org.eclipse.core.runtime.CoreException
project - - cannot be nullfilter - generic file filter - cannot be nullorg.eclipse.core.runtime.CoreExceptionCopyright (c) 2011 IBM Corporation and others. All Rights Reserved.