featuretoggleGroup.getButton(featurName).getTooltipButton().setBackground(ColorResources.FEATURE_FEATURELISTCOMP_NORMAL_BACKGROUND);
}
}
+
+ private Listener toggleDownListener = new Listener() {
+ @Override
+ public void handleEvent(Event event) {
+ DACustomFeatureToggleButton toggleButton = (DACustomFeatureToggleButton) event.widget;
+ if (toggleButton.isToggled()) {
+ toggleButton.getParent().setBackground(ColorResources.FEATURE_FEATURELISTCOMP_NORMAL_BACKGROUND);
+ toggleButton.getTooltipButton().setBackground(ColorResources.FEATURE_FEATURELISTCOMP_NORMAL_BACKGROUND);
+ }
+ }
+ };
private Listener toggleListener = new Listener() {
@Override
// TODO: Set title, description, page font size
featuretoggleGroup.addToggleButton(toggle);
toggle.addListener(SWT.MouseUp, toggleListener);
+ toggle.addListener(SWT.MouseDown, toggleDownListener);
}
if (target.isSelectedFlatFeature(feature.getName())) {
featuretoggleGroup.setSelection(feature.getName(), true);