Search in sources :

Example 36 with SaveableData

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());
}
Also used : SimpleData(net.sourceforge.processdash.data.SimpleData) SaveableData(net.sourceforge.processdash.data.SaveableData)

Example 37 with SaveableData

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());
}
Also used : SimpleData(net.sourceforge.processdash.data.SimpleData) SaveableData(net.sourceforge.processdash.data.SaveableData)

Example 38 with SaveableData

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());
}
Also used : SimpleData(net.sourceforge.processdash.data.SimpleData) SaveableData(net.sourceforge.processdash.data.SaveableData)

Aggregations

SaveableData (net.sourceforge.processdash.data.SaveableData)38 SimpleData (net.sourceforge.processdash.data.SimpleData)14 EscapeString (net.sourceforge.processdash.util.EscapeString)11 MalformedValueException (net.sourceforge.processdash.data.MalformedValueException)6 Iterator (java.util.Iterator)5 FileNotFoundException (java.io.FileNotFoundException)4 IOException (java.io.IOException)4 ConcurrentModificationException (java.util.ConcurrentModificationException)4 HashMap (java.util.HashMap)4 PatternSyntaxException (java.util.regex.PatternSyntaxException)4 DoubleData (net.sourceforge.processdash.data.DoubleData)4 CompilationException (net.sourceforge.processdash.data.compiler.CompilationException)4 ExecutionException (net.sourceforge.processdash.data.compiler.ExecutionException)4 LexerException (net.sourceforge.processdash.data.compiler.lexer.LexerException)4 ParserException (net.sourceforge.processdash.data.compiler.parser.ParserException)4 Map (java.util.Map)3 WeakHashMap (java.util.WeakHashMap)3 DateData (net.sourceforge.processdash.data.DateData)3 NumberData (net.sourceforge.processdash.data.NumberData)3 StringData (net.sourceforge.processdash.data.StringData)3