/******************************************************************************* * Copyright (c) 2005, 2009 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.authoring.gef.edit.policies; import org.eclipse.draw2d.FlowLayout; import org.eclipse.gef.EditPart; import org.eclipse.gef.commands.Command; import org.eclipse.gef.editpolicies.FlowLayoutEditPolicy; import org.eclipse.gef.requests.CreateRequest; /** * EditPolicy to disable the editing feature in a {@link FlowLayout} * @author Shashidhar Kannoori * */ public class RoleTaskFlowLayoutEditPolicy extends FlowLayoutEditPolicy { /** * */ public RoleTaskFlowLayoutEditPolicy() { // TODO Auto-generated constructor stub } /* (non-Javadoc) * @see org.eclipse.gef.editpolicies.OrderedLayoutEditPolicy#createAddCommand(org.eclipse.gef.EditPart, org.eclipse.gef.EditPart) */ protected Command createAddCommand(EditPart child, EditPart after) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see org.eclipse.gef.editpolicies.OrderedLayoutEditPolicy#createMoveChildCommand(org.eclipse.gef.EditPart, org.eclipse.gef.EditPart) */ protected Command createMoveChildCommand(EditPart child, EditPart after) { // TODO Auto-generated method stub return null; } /* (non-Javadoc) * @see org.eclipse.gef.editpolicies.LayoutEditPolicy#getCreateCommand(org.eclipse.gef.requests.CreateRequest) */ protected Command getCreateCommand(CreateRequest request) { // TODO Auto-generated method stub return null; } }