import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
import org.tizen.dynamicanalyzer.project.AppInfo;
import org.tizen.dynamicanalyzer.project.PackageInfo;
+import org.tizen.dynamicanalyzer.setting.FlatFeature;
import org.tizen.dynamicanalyzer.setting.FlatPreferences;
import org.tizen.dynamicanalyzer.setting.PrimitiveFeature;
import org.tizen.dynamicanalyzer.setting.SettingDataManager;
private static boolean selectFeatures(TracingArguments args) {
// drop previous settings
UILayoutDataManager.INSTANCE.setSelectedChartSet(new HashSet<String>());
+ TargetData target = SettingDataManager.INSTANCE.getTarget(null);
+ target.setSelectedFlatFeatures(new HashSet<FlatFeature>());
selectScreenshotFeature(args.getScreenshotPeriod(),
args.isScreenshotPeriodSpecified());
args.getFeatures().remove(PrimitiveFeature.SCREENSHOT);//This feature added to target by selectScreenshotFeature().
- TargetData target = SettingDataManager.INSTANCE.getTarget(null);
-
for (PrimitiveFeature feature : args.getFeatures()) {
target.addSelectedFlatFeature(feature.getName());
UILayoutDataManager.INSTANCE.addSelectedChart(feature.getChart());
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
+import java.util.Set;
import org.tizen.dynamicanalyzer.constant.CommonConstants;
import org.tizen.dynamicanalyzer.protocol.Protocol;
dest.add(source.get(i));
}
}
+
+ public void setSelectedFlatFeatures(Set<FlatFeature> set) {
+ selectedFlatFeatureList.clear();
+ selectedFlatFeatureList.addAll(set);
+ }
}