1 11 package org.eclipse.ui.internal.presentations.defaultpresentation; 12 13 import org.eclipse.swt.widgets.Composite; 14 import org.eclipse.ui.internal.presentations.util.StandardEditorSystemMenu; 15 import org.eclipse.ui.internal.presentations.util.StandardViewSystemMenu; 16 import org.eclipse.ui.internal.presentations.util.TabbedStackPresentation; 17 import org.eclipse.ui.presentations.AbstractPresentationFactory; 18 import org.eclipse.ui.presentations.IStackPresentationSite; 19 import org.eclipse.ui.presentations.StackPresentation; 20 21 24 public class NativePresentationFactory extends AbstractPresentationFactory { 25 26 31 public StackPresentation createEditorPresentation(Composite parent, 32 IStackPresentationSite site) { 33 return new TabbedStackPresentation(site, new NativeTabFolder(parent), new StandardEditorSystemMenu(site)); 34 } 35 36 41 public StackPresentation createViewPresentation(Composite parent, 42 IStackPresentationSite site) { 43 return new TabbedStackPresentation(site, new NativeTabFolder(parent), new StandardViewSystemMenu(site)); 44 } 45 46 51 public StackPresentation createStandaloneViewPresentation(Composite parent, 52 IStackPresentationSite site, boolean showTitle) { 53 return new TabbedStackPresentation(site, new NativeTabFolder(parent), 55 new StandardViewSystemMenu(site)); 56 } 57 58 } 59 | Popular Tags |