use of net.sourceforge.processdash.data.SaveableData in project processdash by dtuma.
the class PercentSpentIndicator method shouldBeVisible.
private boolean shouldBeVisible(String path) {
if (path == null)
return false;
SaveableData enabledVal = dashCtx.getData().getInheritableValue(path, ENABLED_DATA_NAME);
if (enabledVal == null)
return Settings.getBool(ENABLED_SETTING_NAME, true);
SimpleData enabled = enabledVal.getSimpleValue();
return (enabled != null && enabled.test());
}
use of net.sourceforge.processdash.data.SaveableData in project processdash by dtuma.
the class EVReportSettings method lookupPathFilter.
private void lookupPathFilter() {
SaveableData sval = data.getInheritableValue(prefix, "Earned_Value//Path_Filter");
if (sval == null)
sval = data.getInheritableValue(prefix, "Earned_Value_Path_Filter");
SimpleData val = (sval == null ? null : sval.getSimpleValue());
parameters.put(PATH_FILTER_PARAM, val == null ? "" : val.format());
sval = data.getInheritableValue(prefix, "Earned_Value//Merged_Path_Filter");
if (sval == null)
sval = data.getInheritableValue(prefix, "Earned_Value_Merged_Path_Filter");
val = (sval == null ? null : sval.getSimpleValue());
parameters.put(MERGED_PATH_FILTER_PARAM, val == null ? "" : val.format());
}
use of net.sourceforge.processdash.data.SaveableData in project processdash by dtuma.
the class EVReportSettings method lookupLabelFilter.
private void lookupLabelFilter() {
SaveableData sval = data.getInheritableValue(prefix, "Label//Filter");
SimpleData val = (sval == null ? null : sval.getSimpleValue());
parameters.put(LABEL_FILTER_PARAM, val == null ? "" : val.format());
}
Aggregations