Search in sources :

Example 6 with TaskType

use of org.eclipse.titanium.markers.types.TaskType in project titan.EclipsePlug-ins by eclipse.

the class RepairTimePage method performOk.

@Override
public boolean performOk() {
    for (final TaskType actSmell : TaskType.values()) {
        final TimeDataEntry value = storedValues.get(actSmell);
        if (value != null) {
            setAvgValue(actSmell, value.avgTime);
            setMinValue(actSmell, value.minTime);
            setMaxValue(actSmell, value.maxTime);
        }
    }
    for (final CodeSmellType actSmell : CodeSmellType.values()) {
        final TimeDataEntry value = storedValues.get(actSmell);
        if (value != null) {
            setAvgValue(actSmell, value.avgTime);
            setMinValue(actSmell, value.minTime);
            setMaxValue(actSmell, value.maxTime);
        }
    }
    return super.performOk();
}
Also used : CodeSmellType(org.eclipse.titanium.markers.types.CodeSmellType) TaskType(org.eclipse.titanium.markers.types.TaskType)

Example 7 with TaskType

use of org.eclipse.titanium.markers.types.TaskType in project titan.EclipsePlug-ins by eclipse.

the class RepairTimePage method performDefaults.

@Override
protected void performDefaults() {
    for (final TaskType actSmell : TaskType.values()) {
        setAvgValue(actSmell, actSmell.getAvgDefaultTime());
        setMinValue(actSmell, actSmell.getMinDefaultTime());
        setMaxValue(actSmell, actSmell.getMaxDefaultTime());
    }
    for (final CodeSmellType actSmell : CodeSmellType.values()) {
        setAvgValue(actSmell, actSmell.getAvgDefaultTime());
        setMinValue(actSmell, actSmell.getMinDefaultTime());
        setMaxValue(actSmell, actSmell.getMaxDefaultTime());
    }
    refresh();
    super.performDefaults();
}
Also used : CodeSmellType(org.eclipse.titanium.markers.types.CodeSmellType) TaskType(org.eclipse.titanium.markers.types.TaskType)

Aggregations

TaskType (org.eclipse.titanium.markers.types.TaskType)7 CodeSmellType (org.eclipse.titanium.markers.types.CodeSmellType)6 List (java.util.List)3 HSSFCell (org.apache.poi.hssf.usermodel.HSSFCell)2 HSSFSheet (org.apache.poi.hssf.usermodel.HSSFSheet)2 Cell (org.apache.poi.ss.usermodel.Cell)2 Row (org.apache.poi.ss.usermodel.Row)2 IMarker (org.eclipse.core.resources.IMarker)2 IProject (org.eclipse.core.resources.IProject)2 CoreException (org.eclipse.core.runtime.CoreException)2 SubMonitor (org.eclipse.core.runtime.SubMonitor)2 MarkerHandler (org.eclipse.titanium.markers.handler.MarkerHandler)2 File (java.io.File)1 FileInputStream (java.io.FileInputStream)1 FileOutputStream (java.io.FileOutputStream)1 FileWriter (java.io.FileWriter)1 IOException (java.io.IOException)1 PrintWriter (java.io.PrintWriter)1 ArrayList (java.util.ArrayList)1 EnumMap (java.util.EnumMap)1