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.internal.r21presentation.presentations;
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: * A presentation factory that creates a look similar to previous verisons of eclipse.
19: */
20: public class R21PresentationFactory extends AbstractPresentationFactory {
21:
22: /* (non-Javadoc)
23: * @see org.eclipse.ui.presentations.AbstractPresentationFactory
24: */
25: public StackPresentation createEditorPresentation(Composite parent,
26: IStackPresentationSite site) {
27: return new R21EditorStackPresentation(parent, site);
28: }
29:
30: /* (non-Javadoc)
31: * @see org.eclipse.ui.presentations.AbstractPresentationFactory
32: */
33: public StackPresentation createViewPresentation(Composite parent,
34: IStackPresentationSite site) {
35: return new R21ViewStackPresentation(parent, site);
36: }
37:
38: /* (non-Javadoc)
39: * @see org.eclipse.ui.presentations.AbstractPresentationFactory
40: */
41: public StackPresentation createStandaloneViewPresentation(
42: Composite parent, IStackPresentationSite site,
43: boolean showTitle) {
44: // TODO: honour showTitle
45: return new R21ViewStackPresentation(parent, site);
46: }
47:
48: }
|