private boolean isViewerVisible(Viewer viewer) {
return viewer != null && !viewer.getControl().isDisposed() && viewer.getControl().isVisible();
}
private void makeActions() {
openBeanClassAction = new OpenBeanClassAction();
openBeanDefAction = new OpenBeanDefinitionAction();
connectApplicationAction = new ConnectToApplicationAction(this);
displayModeActions = new ToggleViewModeAction[] { new ToggleViewModeAction(this, DISPLAY_MODE_GRAPH),
new ToggleViewModeAction(this, DISPLAY_MODE_TREE) };
groupByActions = new ToggleGroupByAction[] { new ToggleGroupByAction(this, GROUP_BY_RESOURCE),