Package com.e1c.langtool.internal.stat
Class ComputerEngineImpl
java.lang.Object
com.e1c.langtool.internal.stat.ComputerEngineImpl
- All Implemented Interfaces:
ComputerEngine
-
Constructor Summary
ConstructorsConstructorDescriptionComputerEngineImpl(StatisticsService statisticsService, ITranslatingProjectManager translatingProjectManager, IFeatureValueCollectingService collectingService, GroupProviderRegistry groupProviderRegistry, StatisticsComputerRegistry computerRegistry) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatuscompute(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Computing detailed statistics on the project, on all possible groupings and all resources.org.eclipse.core.runtime.IStatuscomputeGroup(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath group, org.eclipse.core.runtime.IProgressMonitor monitor) Compute statistics for grouping.org.eclipse.core.runtime.IStatuscomputeParents(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor) Compute statistics for the parents of the resource.org.eclipse.core.runtime.IStatuscomputeResource(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor) Computing detailed statistics to the resource.org.eclipse.core.runtime.IStatuscomputeTotalValue(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Computing total project statistics.
-
Constructor Details
-
ComputerEngineImpl
@Inject public ComputerEngineImpl(StatisticsService statisticsService, ITranslatingProjectManager translatingProjectManager, IFeatureValueCollectingService collectingService, GroupProviderRegistry groupProviderRegistry, StatisticsComputerRegistry computerRegistry)
-
-
Method Details
-
computeTotalValue
public org.eclipse.core.runtime.IStatus computeTotalValue(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ComputerEngineComputing total project statistics.- Specified by:
computeTotalValuein interfaceComputerEngine- Parameters:
project- the projectmonitor- the monitor- Returns:
- the status
-
compute
public org.eclipse.core.runtime.IStatus compute(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ComputerEngineComputing detailed statistics on the project, on all possible groupings and all resources.- Specified by:
computein interfaceComputerEngine- Parameters:
project- the projectmonitor- the monitor- Returns:
- the status
-
computeResource
public org.eclipse.core.runtime.IStatus computeResource(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ComputerEngineComputing detailed statistics to the resource.- Specified by:
computeResourcein interfaceComputerEngine- Parameters:
project- the projectpath- the relative path of this resource with respect to its projectmonitor- the monitor- Returns:
- the status
-
computeParents
public org.eclipse.core.runtime.IStatus computeParents(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath path, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ComputerEngineCompute statistics for the parents of the resource.- Specified by:
computeParentsin interfaceComputerEngine- Parameters:
project- the projectpath- the relative path of this parent with respect to its projectmonitor- the monitor- Returns:
- the status
-
computeGroup
public org.eclipse.core.runtime.IStatus computeGroup(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath group, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ComputerEngineCompute statistics for grouping.- Specified by:
computeGroupin interfaceComputerEngine- Parameters:
project- the projectgroup- the path of group, its may be the relative path of this group with respect to its projectmonitor- the monitor- Returns:
- the status
-