01: /*******************************************************************************
02: * Copyright (c) 2004, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui;
11:
12: /**
13: * Represents the layout info for a view or placeholder in an {@link IPageLayout}.
14: * <p>
15: * This interface is not intended to be implemented by clients.
16: * </p>
17: *
18: * @since 3.0
19: */
20: public interface IViewLayout {
21:
22: /**
23: * Returns whether the view is closeable.
24: * The default is <code>true</code>.
25: *
26: * @return <code>true</code> if the view is closeable, <code>false</code> if not
27: */
28: public boolean isCloseable();
29:
30: /**
31: * Sets whether the view is closeable.
32: *
33: * @param closeable <code>true</code> if the view is closeable, <code>false</code> if not
34: */
35: public void setCloseable(boolean closeable);
36:
37: /**
38: * Returns whether the view is moveable.
39: * The default is <code>true</code>.
40: *
41: * @return <code>true</code> if the view is moveable, <code>false</code> if not
42: */
43: public boolean isMoveable();
44:
45: /**
46: * Sets whether the view is moveable.
47: *
48: * @param moveable <code>true</code> if the view is moveable, <code>false</code> if not
49: */
50: public void setMoveable(boolean moveable);
51:
52: /**
53: * Returns whether the view is a standalone view.
54: *
55: * @see IPageLayout#addStandaloneView
56: */
57: public boolean isStandalone();
58:
59: /**
60: * Returns whether the view shows its title.
61: * This is only applicable to standalone views.
62: *
63: * @see IPageLayout#addStandaloneView
64: */
65: public boolean getShowTitle();
66: }
|