Package com.e1c.langtool.internal.sync
Class SynchronizerRegistryImpl
java.lang.Object
com.e1c.langtool.internal.sync.SynchronizerRegistryImpl
- All Implemented Interfaces:
SynchronizerRegistry
-
Field Summary
Fields inherited from interface com.e1c.langtool.sync.SynchronizerRegistry
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
SynchronizerRegistryImpl
public SynchronizerRegistryImpl()
-
-
Method Details
-
getSynchronizers
Description copied from interface:SynchronizerRegistryGets thesynchronizersby give source file path.- Specified by:
getSynchronizersin interfaceSynchronizerRegistry- Parameters:
source- the source file- Returns:
- the synchronizers, cannot return
null.
-
synchronizerExist
public boolean synchronizerExist(org.eclipse.core.resources.IFile source) Description copied from interface:SynchronizerRegistryChecks if synchronizers exist in the registry.- Specified by:
synchronizerExistin interfaceSynchronizerRegistry- Parameters:
source- the source- Returns:
- true, if successful
-
getSynchronizePriority
public int getSynchronizePriority(org.eclipse.core.resources.IFile source) Description copied from interface:SynchronizerRegistryGets the synchronize priority for the source file.- Specified by:
getSynchronizePriorityin interfaceSynchronizerRegistry- Parameters:
source- the source file- Returns:
- the synchronize priority
-
getAllSynchronizers
Description copied from interface:SynchronizerRegistryGets all synchronizers, sorted with its priority.- Specified by:
getAllSynchronizersin interfaceSynchronizerRegistry- Returns:
- the all synchronizers, cannot return
null.
-
dependentContentComputerExist
public boolean dependentContentComputerExist(org.eclipse.core.resources.IFile source) Description copied from interface:SynchronizerRegistryChecks if dependent content computer exist in the registry for the given file.- Specified by:
dependentContentComputerExistin interfaceSynchronizerRegistry- Parameters:
source- the source- Returns:
- true, if computer exists
-
getDependentContentComputers
public Collection<DependentContentComputer> getDependentContentComputers(org.eclipse.core.resources.IFile source) Description copied from interface:SynchronizerRegistryGets the dependent content computers by the given source file.- Specified by:
getDependentContentComputersin interfaceSynchronizerRegistry- Parameters:
source- the source file- Returns:
- the dependent content computers
-
getAllDependentContentComputers
Description copied from interface:SynchronizerRegistryGets the all dependent content computers.- Specified by:
getAllDependentContentComputersin interfaceSynchronizerRegistry- Returns:
- the all dependent content computers
-