| /***************************************************************************** |
| * 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 |
| * |
| *****************************************************************************/ |
| package org.eclipse.papyrus.sysml.service.types.matcher; |
| |
| import org.eclipse.emf.ecore.EObject; |
| import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher; |
| import org.eclipse.gmf.runtime.emf.type.core.IElementType; |
| |
| /** |
| * This matcher can be used to avoid {@link IElementType} to interfere in commands. |
| */ |
| public class NoMatcher implements IElementMatcher { |
| |
| public boolean matches(EObject eObject) { |
| return false; |
| } |
| |
| } |