01: /*******************************************************************************
02: * Copyright (c) 2004 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Common Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/cpl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.examples.presentation.barebones;
11:
12: import org.eclipse.swt.widgets.Composite;
13: import org.eclipse.ui.presentations.AbstractPresentationFactory;
14: import org.eclipse.ui.presentations.IStackPresentationSite;
15: import org.eclipse.ui.presentations.StackPresentation;
16:
17: /**
18: * Presentation factory for the bare-bones presentation
19: */
20: public class BareBonesPresentationFactory extends
21: AbstractPresentationFactory {
22:
23: public StackPresentation createEditorPresentation(Composite parent,
24: IStackPresentationSite site) {
25: return new BareBonesPartPresentation(parent, site);
26: }
27:
28: public StackPresentation createViewPresentation(Composite parent,
29: IStackPresentationSite site) {
30: return new BareBonesPartPresentation(parent, site);
31: }
32:
33: public StackPresentation createStandaloneViewPresentation(
34: Composite parent, IStackPresentationSite site,
35: boolean showTitle) {
36: return new BareBonesPartPresentation(parent, site);
37: }
38: }
|