Community
Participate
Working Groups
setSimpleMethod.invoke(folder, new Object[] { Boolean.valueOf(traditionalTabs)});
} catch (Exception e) {
}
folder.setTabPosition(tabPosition);
if (tabPosition != SWT.TOP && tabPosition != SWT.BOTTOM) {
folder.setTabPosition(SWT.TOP);
} else {
// Editor parts don't need the viewform, but viewparts will (this is where their toolbar goes).
ViewForm viewForm = new ViewForm(folder, SWT.NONE);
viewForm.marginHeight = 0;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.*;
import org.eclipse.ui.part.*;
import org.eclipse.ui.part.EditorPart;
import org.eclipse.ui.part.WorkbenchPart;
public class ViewPartHost {
folder.setMaximizeVisible(true);
folder.setMinimizeVisible(true);
folder.setTabPosition(fTabPosition);
if (fTabPosition != SWT.TOP && fTabPosition != SWT.BOTTOM) {
// The method CTabFolder.setSimple(boolean) is only available in 3.1 and higher so we must use reflection
// to simulat the method call folder.setSimple(fTraditionalTabs);
try{