import org.tizen.dynamicanalyzer.project.PackageInfo;
import org.tizen.dynamicanalyzer.setting.FeatureValueData;
import org.tizen.dynamicanalyzer.setting.SettingDataManager;
+import org.tizen.dynamicanalyzer.setting.TargetData;
import org.tizen.dynamicanalyzer.setting.Template;
import org.tizen.dynamicanalyzer.setting.UILayoutDataManager;
import org.tizen.dynamicanalyzer.util.InternalLogger;
// features instead of templates
if (template == Template.TEMPLATE_CUSTOM)
return false;
+ TargetData target = SettingDataManager.INSTANCE.getTarget(null);
+ target.setSelectedTemplate(template);
+ target.changeSelectedFeatureList(template);
+
Set<String> selectedChartSet = new HashSet<String>();
for (FeatureValueData feature : template.getData().getFeatureList()) {
if (featureList.get(i).getPage() != null)
selectedPageList.add(featureList.get(i).getPage());
}
+ // FIXME support for previous 'Feature' format,
+ // to be removed when CLI supports FlatFeatures
+ if (Global.isCLIMode()) {
+ for (FeatureValueData featureVal : target.getSelectedFeatureList()) {
+ selectedPageList.addAll(featureVal.getKey().getData().getPageList());
+ }
+ }
} else {
Logger.debug("Does not exist targetName : " + targetName);
}