| /***************************************************************************** |
| * Copyright (c) 2011 CEA LIST. |
| * |
| * 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: |
| * |
| * CEA LIST - Initial API and implementation |
| * Laurent Wouters (CEA LIST) laurent.wouters@cea.fr - Viewpoints application |
| * |
| *****************************************************************************/ |
| package org.eclipse.papyrus.sysml.diagram.blockdefinition; |
| |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.papyrus.infra.ui.extension.commands.PerspectiveContextDependence; |
| |
| /** |
| * BlockDefinitionDiagramCondition to set conditions for the diagram creation |
| */ |
| public class BlockDefinitionDiagramCondition extends PerspectiveContextDependence { |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| public boolean create(EObject selectedElement) { |
| return false; |
| } |
| } |