Package com.e1c.langtool.sync
Interface SynchronizerRegistry
- All Known Implementing Classes:
SynchronizerRegistryImpl
public interface SynchronizerRegistry
The Synchronizer registry to get
synchronizers by given file path.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default priority of synchronizers. -
Method Summary
Modifier and TypeMethodDescriptionbooleandependentContentComputerExist(org.eclipse.core.resources.IFile source) Checks if dependent content computer exist in the registry for the given file.Gets the all dependent content computers.Gets all synchronizers, sorted with its priority.getDependentContentComputers(org.eclipse.core.resources.IFile source) Gets the dependent content computers by the given source file.intgetSynchronizePriority(org.eclipse.core.resources.IFile source) Gets the synchronize priority for the source file.getSynchronizers(org.eclipse.core.resources.IFile source) Gets thesynchronizersby give source file path.booleansynchronizerExist(org.eclipse.core.resources.IFile source) Checks if synchronizers exist in the registry.
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYThe default priority of synchronizers.- See Also:
-
-
Method Details
-
getSynchronizers
Gets thesynchronizersby give source file path.- Parameters:
source- the source file- Returns:
- the synchronizers, cannot return
null.
-
synchronizerExist
boolean synchronizerExist(org.eclipse.core.resources.IFile source) Checks if synchronizers exist in the registry.- Parameters:
source- the source- Returns:
- true, if successful
-
getSynchronizePriority
int getSynchronizePriority(org.eclipse.core.resources.IFile source) Gets the synchronize priority for the source file.- Parameters:
source- the source file- Returns:
- the synchronize priority
-
getAllSynchronizers
Collection<ResourceSynchronizer> getAllSynchronizers()Gets all synchronizers, sorted with its priority.- Returns:
- the all synchronizers, cannot return
null.
-
dependentContentComputerExist
boolean dependentContentComputerExist(org.eclipse.core.resources.IFile source) Checks if dependent content computer exist in the registry for the given file.- Parameters:
source- the source- Returns:
- true, if computer exists
-
getDependentContentComputers
Collection<DependentContentComputer> getDependentContentComputers(org.eclipse.core.resources.IFile source) Gets the dependent content computers by the given source file.- Parameters:
source- the source file- Returns:
- the dependent content computers
-
getAllDependentContentComputers
Collection<DependentContentComputer> getAllDependentContentComputers()Gets the all dependent content computers.- Returns:
- the all dependent content computers
-