diff options
author | Tor Norbye <tnorbye@google.com> | 2012-04-19 15:05:27 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-04-19 15:05:28 -0700 |
commit | 7d5e809721ca0f3460afcd8ae32fa366c86ec978 (patch) | |
tree | f456b9a3b7e64bee9a8f9980f58c641aa6dc3a7e /propertysheet/src/org/eclipse/wb/core/controls/flyout/MemoryFlyoutPreferences.java | |
parent | 710a161c9c528b5e5cb5cd6d0d41736881c9697f (diff) | |
parent | 4b1a9d7baa71df312585022c22e8025fafaba95a (diff) | |
download | eclipse-windowbuilder-jb-dev.tar.gz |
Merge "Add support for window docking in the property sheet code"android-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1jb-releasejb-mr0-releasejb-dev
Diffstat (limited to 'propertysheet/src/org/eclipse/wb/core/controls/flyout/MemoryFlyoutPreferences.java')
-rw-r--r-- | propertysheet/src/org/eclipse/wb/core/controls/flyout/MemoryFlyoutPreferences.java | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/propertysheet/src/org/eclipse/wb/core/controls/flyout/MemoryFlyoutPreferences.java b/propertysheet/src/org/eclipse/wb/core/controls/flyout/MemoryFlyoutPreferences.java new file mode 100644 index 0000000..8591589 --- /dev/null +++ b/propertysheet/src/org/eclipse/wb/core/controls/flyout/MemoryFlyoutPreferences.java @@ -0,0 +1,63 @@ +/******************************************************************************* + * Copyright (c) 2011 Google, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Google, Inc. - initial API and implementation + *******************************************************************************/ +package org.eclipse.wb.core.controls.flyout; + +/** + * Implementation of {@link IFlyoutPreferences} for keeping settings in memory. + * + * @author scheglov_ke + * @coverage core.control + */ +public final class MemoryFlyoutPreferences implements IFlyoutPreferences { + private int m_dockLocation; + private int m_state; + private int m_width; + + //////////////////////////////////////////////////////////////////////////// + // + // Constructor + // + //////////////////////////////////////////////////////////////////////////// + public MemoryFlyoutPreferences(int dockLocation, int state, int width) { + m_dockLocation = dockLocation; + m_state = state; + m_width = width; + } + + //////////////////////////////////////////////////////////////////////////// + // + // IFlyoutPreferences + // + //////////////////////////////////////////////////////////////////////////// + public int getDockLocation() { + return m_dockLocation; + } + + public int getState() { + return m_state; + } + + public int getWidth() { + return m_width; + } + + public void setDockLocation(int location) { + m_dockLocation = location; + } + + public void setState(int state) { + m_state = state; + } + + public void setWidth(int width) { + m_width = width; + } +}
\ No newline at end of file |