Search in sources :

Example 6 with CodeSmellType

use of org.eclipse.titanium.markers.types.CodeSmellType 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

CodeSmellType (org.eclipse.titanium.markers.types.CodeSmellType)6 TaskType (org.eclipse.titanium.markers.types.TaskType)6 List (java.util.List)2 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 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 HashMap (java.util.HashMap)1 HSSFWorkbook (org.apache.poi.hssf.usermodel.HSSFWorkbook)1 POIFSFileSystem (org.apache.poi.poifs.filesystem.POIFSFileSystem)1 CellStyle (org.apache.poi.ss.usermodel.CellStyle)1