List<Integer> tabViewList = new ArrayList<Integer>();
tabViewList.add(CommonConstants.PAGE_TIME_LINE); // default : timeline tab
- // thread tab
- if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_THREAD)) {
- tabViewList.add(CommonConstants.PAGE_THREAD);
- } // else nothing
-
- // network tab
- if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_NETWORK)) {
- tabViewList.add(CommonConstants.PAGE_NETWORK);
- } // else nothing
-
- // file tab
- if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_FILE)) {
- tabViewList.add(CommonConstants.PAGE_FILE);
- } // else nothing
+ if (selectedPageList != null) {
+ // thread tab
+ if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_THREAD)) {
+ tabViewList.add(CommonConstants.PAGE_THREAD);
+ } // else nothing
+
+ // network tab
+ if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_NETWORK)) {
+ tabViewList.add(CommonConstants.PAGE_NETWORK);
+ } // else nothing
+
+ // file tab
+ if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_FILE)) {
+ tabViewList.add(CommonConstants.PAGE_FILE);
+ } // else nothing
+
+ // openGL tab
+ if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_OPENGL)) {
+ tabViewList.add(CommonConstants.PAGE_GRAPHICS);
+ } // else nothing
+
+ // kernel tab
+ if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_KERNEL)) {
+ tabViewList.add(CommonConstants.PAGE_KERNEL);
+ } // else nothing
+ }
- // openGL tab
- if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_OPENGL)) {
- tabViewList.add(CommonConstants.PAGE_GRAPHICS);
- } // else nothing
-
- // kernel tab
- if (selectedPageList.contains(ConfigureLabels.PAGE_NAME_KERNEL)) {
- tabViewList.add(CommonConstants.PAGE_KERNEL);
- } // else nothing
-
tabViewList.add(CommonConstants.PAGE_SUMMARY); // default : summary tab
addTabViewPage(tabViewList);
}
compData.bottom = new FormAttachment(100, 0);
tabView.setLayoutData(compData);
- SettingDialogTemplatePage templatesPage = new SettingDialogTemplatePage(
+ templatesPage = new SettingDialogTemplatePage(
tabView.getContentComposite(), SWT.NONE);
tabView.addView(templatesPage, false);
// set feature
if (initFeatureList != null) {
initFeatureList.clear();
+ initFeatureList.addAll(selectedFeatureList);
}
- initFeatureList.addAll(selectedFeatureList);
}
public void revertSettingData() {
// set feature
if (selectedFeatureList != null) {
selectedFeatureList.clear();
+ selectedFeatureList.addAll(initFeatureList);
}
- selectedFeatureList.addAll(initFeatureList);
+
}
}