private DACustomCombo makeDACustomCombo(Composite parent) {
DACustomCombo returnCombo = new DACustomCombo(parent, SWT.NONE);
returnCombo.setComboGradation(ColorResources.TOOLBAR_COMBO_NORMAL_START,
- ColorResources.TOOLBAR_COMBO_NORMAL_END, ColorResources.TOOLBAR_COMBO_PUSH_START,
- ColorResources.TOOLBAR_COMBO_PUSH_END, ColorResources.TOOLBAR_COMBO_HOVER_START,
- ColorResources.TOOLBAR_COMBO_HOVER_END, ColorResources.TOOLBAR_COMBO_DISABLE_START,
- ColorResources.TOOLBAR_COMBO_DISABLE_END);
+ ColorResources.TOOLBAR_COMBO_NORMAL_START, ColorResources.TOOLBAR_COMBO_PUSH_START,
+ ColorResources.TOOLBAR_COMBO_PUSH_START, ColorResources.TOOLBAR_COMBO_HOVER_START,
+ ColorResources.TOOLBAR_COMBO_HOVER_START, ColorResources.TOOLBAR_COMBO_DISABLE_START,
+ ColorResources.TOOLBAR_COMBO_DISABLE_START);
returnCombo.setOutlineColors(ColorResources.TOOLBAR_COMBO_OUTLINE_NORMAL_IN_COLOR,
ColorResources.TOOLBAR_COMBO_OUTLINE_PUSH_IN_COLOR,
- ColorResources.TOOLBAR_COMBO_OUTLINE_HOVER_IN_COLOR,
+ ColorResources.TOOLBAR_COMBO_OUTLINE_DISABLE_IN_COLOR,
ColorResources.TOOLBAR_COMBO_OUTLINE_DISABLE_IN_COLOR);
returnCombo.setComboImages(ImageResources.TOOLBAR_COMBO_BUTTON_NORMAL,
ImageResources.TOOLBAR_COMBO_BUTTON_NORMAL,
processCombo.initCombo();
processCombo.add(ALL_PROCESS);
processCombo.select(0);
+ processCombo.setVisible(false);
}
public int getSelectedPid() {
} else if (fState == DAState.DONE || fState == DAState.INIT) {
toggleStartButtonUI(false);
setAllControlState(true);
+ checkProcessList();
} else {
// known state
setAllControlState(false);
return button.isButtonEnabled();
}
+ private void checkProcessList() {
+ Project project = Global.getProject();
+ if (null == project) {
+ return;
+ }
+
+ int pidsize = project.getProcessIDs().length;
+
+ if( pidsize > 1 )
+ processCombo.setVisible(true);
+ else
+ processCombo.setVisible(false);
+ }
+
}