CTabItem tabItem = items[i];
tabItem.getControl().setVisible(false);
}
form.layout();
IView view = getActiveSubView();
if (view instanceof IViewExtension) {
((IViewExtension) view).viewDeactivated();
}
configMan.setParameter(sPropertiesPrefix + ".subViews.minimized", true);
}
public void restore(CTabFolderEvent event) {
tabFolder.setMinimized(false);
CTabItem selection = tabFolder.getSelection();
if (selection != null) {
selection.getControl().setVisible(true);
}
form.notifyListeners(SWT.Resize, null);
IView view = getActiveSubView();
if (view instanceof IViewExtension) {
((IViewExtension) view).viewActivated();
}
refreshSelectedSubView();
configMan.setParameter(sPropertiesPrefix + ".subViews.minimized", false);
}
};
tabFolder.addCTabFolder2Listener(folderListener);
tabFolder.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
// make sure its above
try {
((CTabItem) e.item).getControl().setVisible(true);
((CTabItem) e.item).getControl().moveAbove(null);
// TODO: Need to viewDeactivated old one
IView view = getActiveSubView();
if (view instanceof IViewExtension) {
((IViewExtension)view).viewActivated();
}
} catch (Exception t) {