package org.tizen.dynamicanalyzer.ui.interactive.chart;
import java.util.ArrayList;
+import java.util.HashSet;
import java.util.List;
+import java.util.Set;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TableItem;
setOkButtonListener(okButtonListener);
}
+ @Override
+ protected Set<String> getSelectedChartSet() {
+ Set<String> chartNameList = new HashSet<String>();
+ List<TimelineChart> selectedChartList = InteractiveDataManager.getInstance().getShowTimelineChartList();
+ for (int i = 0; i < selectedChartList.size(); i++) {
+ chartNameList.add(selectedChartList.get(i).getChartName());
+ }
+ return chartNameList;
+ }
+
private DACustomButtonClickEventListener okButtonListener = new DACustomButtonClickEventListener() {
@Override
public void handleClickEvent(DACustomButton button) {
this.okButtonListener = okButtonListener;
}
+ protected Set<String> getSelectedChartSet() {
+ return UILayoutDataManager.INSTANCE.getSelectedChartSet();
+ }
+
protected boolean run() {
shell.setText(TimelineChartLabels.EDIT_CHART_DLG_TITLE);
shell.setBackground(ColorResources.WINDOW_BG_COLOR);
// Column for Title text
new TableColumn(chartTableViewer.getTable(), SWT.NONE).setWidth(TEXT_COLUMN_WIDTH);
- Set<String> selectedChartSet = UILayoutDataManager.INSTANCE.getSelectedChartSet();
+ Set<String> selectedChartSet = getSelectedChartSet();
GC gc = new GC(Display.getCurrent());
gc.setFont(FontResources.EDIT_CHART_DLG_ITEM_SUB_NAME);