//------------------------------------------------------------------------------ // Copyright (c) 2005, 2006 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.epf.authoring.gef.edit.NodeContainerEditPart; import org.eclipse.gef.commands.Command; import org.eclipse.gef.editpolicies.ContainerEditPolicy; import org.eclipse.gef.requests.CreateRequest; /** * A EditPolicy for {@link NodeContainerEditPart} for disabling direct child creation. * @author Phong Nguyen Le * @since 1.0 */ public class NodeContainerEditPolicy extends ContainerEditPolicy { /** * @see org.eclipse.gef.editpolicies.ContainerEditPolicy#getCreateCommand(CreateRequest) */ protected Command getCreateCommand(CreateRequest request) { return null; } }