| //------------------------------------------------------------------------------ |
| // Copyright (c) 2005, 2007 IBM Corporation and others. |
| // 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: |
| // IBM Corporation - initial implementation |
| //------------------------------------------------------------------------------ |
| package org.eclipse.epf.library.edit; |
| |
| /** |
| * Stores (in memory only) the Flat/Hierarchical plugin-package layout |
| * @author Jeff Hardy |
| * |
| */ |
| public class PluginUIPackageContext { |
| public static final PluginUIPackageContext INSTANCE = new PluginUIPackageContext(); |
| |
| private boolean isFlatLayout = false; |
| |
| // private static final int HIERARCHICAL_LAYOUT= 0x1; |
| // private static final int FLAT_LAYOUT= 0x2; |
| |
| |
| public boolean isFlatLayout() { |
| return isFlatLayout; |
| } |
| |
| public void toggleLayout() { |
| isFlatLayout = !isFlatLayout; |
| } |
| } |