getButtons().remove(button);
buttonMap.remove(ID);
} else {
- Display.getDefault().syncExec(new Runnable() {
- @Override
- public void run() {
- getButtons().remove(button);
- buttonMap.remove(ID);
- button.setGradationColor(DAButton.STATE_DISABLE,
- ColorResources.TAB_NORMAL_COLOR_START,
- ColorResources.TAB_NORMAL_COLOR_END);
- button.setButtonEnabled(false);
- tabAnimation(button, false);
- }
- });
+ getButtons().remove(button);
+ buttonMap.remove(ID);
+ button.setGradationColor(DAButton.STATE_DISABLE,
+ ColorResources.TAB_NORMAL_COLOR_START,
+ ColorResources.TAB_NORMAL_COLOR_END);
+ button.setButtonEnabled(false);
+ tabAnimation(button, false);
}
}
} else {
data.width -= (tabWidth / 10);
tabComposite.layout();
+ stackLayout.topControl = childrenMap.get(TimelinePage.ID);
+ contentsComposite.layout();
if (data.width <= 0) {
cancel();
}