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();
}
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();
}
Aggregations