| //------------------------------------------------------------------------------ |
| // 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.diagramming.base.actions; |
| |
| import java.util.ArrayList; |
| import java.util.List; |
| |
| import org.eclipse.gef.EditPart; |
| import org.eclipse.gef.requests.LocationRequest; |
| |
| /** |
| * Request is communication object for command and ui. Orientation Request is |
| * for vertical or horizontal orientation of EditPart |
| */ |
| public class OrientationRequest extends LocationRequest { |
| |
| protected List editParts; |
| |
| public OrientationRequest(String type) { |
| super(type); |
| } |
| |
| public void setSelected(List editParts){ |
| this.editParts = new ArrayList(editParts); |
| } |
| public List getSelected(){ |
| return editParts; |
| } |
| } |