Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 239736 | Differences between
and this patch

Collapse All | Expand All

(-)vm_swt/org/eclipse/ve/internal/jface/targetvm/WorkbenchPartHost.java (-2 / +7 lines)
Lines 72-79 Link Here
72
			setSimpleMethod.invoke(folder, new Object[] { Boolean.valueOf(traditionalTabs)});
72
			setSimpleMethod.invoke(folder, new Object[] { Boolean.valueOf(traditionalTabs)});
73
		} catch (Exception e) {
73
		} catch (Exception e) {
74
		}
74
		}
75
		folder.setTabPosition(tabPosition);
75
		
76
76
		if (tabPosition != SWT.TOP && tabPosition != SWT.BOTTOM) {
77
			folder.setTabPosition(SWT.TOP);
78
		} else {
79
			folder.setTabPosition(tabPosition);
80
		}
81
		
77
		// Editor parts don't need the viewform, but viewparts will (this is where their toolbar goes).
82
		// Editor parts don't need the viewform, but viewparts will (this is where their toolbar goes).
78
		ViewForm viewForm = new ViewForm(folder, SWT.NONE);
83
		ViewForm viewForm = new ViewForm(folder, SWT.NONE);
79
		viewForm.marginHeight = 0;
84
		viewForm.marginHeight = 0;
(-)vm_vcelauncher/org/eclipse/ve/internal/java/vce/launcher/remotevm/ViewPartHost.java (-2 / +8 lines)
Lines 28-34 Link Here
28
import org.eclipse.swt.graphics.Point;
28
import org.eclipse.swt.graphics.Point;
29
import org.eclipse.swt.layout.FillLayout;
29
import org.eclipse.swt.layout.FillLayout;
30
import org.eclipse.swt.widgets.*;
30
import org.eclipse.swt.widgets.*;
31
import org.eclipse.ui.part.*;
31
import org.eclipse.ui.part.EditorPart;
32
import org.eclipse.ui.part.WorkbenchPart;
32
33
33
public class ViewPartHost {
34
public class ViewPartHost {
34
35
Lines 53-59 Link Here
53
	    folder.setMaximizeVisible(true);
54
	    folder.setMaximizeVisible(true);
54
	    folder.setMinimizeVisible(true);
55
	    folder.setMinimizeVisible(true);
55
56
56
		folder.setTabPosition(fTabPosition);
57
	    if (fTabPosition != SWT.TOP && fTabPosition != SWT.BOTTOM) {
58
	    	folder.setTabPosition(SWT.TOP);
59
		} else {
60
			folder.setTabPosition(fTabPosition);
61
	    }
62
	    
57
		// The method CTabFolder.setSimple(boolean) is only available in 3.1 and higher so we must use reflection
63
		// The method CTabFolder.setSimple(boolean) is only available in 3.1 and higher so we must use reflection
58
		// to simulat the method call folder.setSimple(fTraditionalTabs);
64
		// to simulat the method call folder.setSimple(fTraditionalTabs);
59
		try{
65
		try{

Return to bug 239736