1 11 package org.eclipse.ui.presentations; 12 13 import org.eclipse.jface.action.IStatusLineManager; 14 import org.eclipse.jface.action.StatusLineManager; 15 import org.eclipse.swt.SWT; 16 import org.eclipse.swt.widgets.Composite; 17 import org.eclipse.swt.widgets.Control; 18 19 25 public abstract class AbstractPresentationFactory { 26 27 40 public abstract StackPresentation createEditorPresentation( 41 Composite parent, IStackPresentationSite site); 42 43 56 public abstract StackPresentation createViewPresentation(Composite parent, 57 IStackPresentationSite site); 58 59 77 public abstract StackPresentation createStandaloneViewPresentation( 78 Composite parent, IStackPresentationSite site, boolean showTitle); 79 80 86 public IStatusLineManager createStatusLineManager() { 87 return new StatusLineManager(); 88 } 89 90 98 public Control createStatusLineControl(IStatusLineManager statusLine, 99 Composite parent) { 100 return ((StatusLineManager) statusLine).createControl(parent, SWT.NONE); 101 } 102 103 110 public String getId() { 111 return this.getClass().getName(); 112 } 113 } 114 | Popular Tags |