| /******************************************************************************* |
| * Copyright (c) 2007, 2012 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 - Initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.ocl.examples.interpreter.actions; |
| |
| import org.eclipse.ocl.examples.interpreter.console.OCLConsole; |
| import org.eclipse.ocl.examples.interpreter.console.TargetMetamodel; |
| |
| |
| /** |
| * Action delegate that ensures that the OCL Console is active and set to |
| * target the Ecore metamodel. |
| * |
| * @deprecated Use ShowEcoreConsoleHandler |
| */ |
| @Deprecated |
| public class ShowEcoreConsoleDelegate |
| extends ShowConsoleDelegate { |
| |
| /** |
| * Initializes me. |
| */ |
| public ShowEcoreConsoleDelegate() { |
| super(); |
| } |
| |
| @Override |
| protected void consoleOpened(OCLConsole console) { |
| console.setTargetMetamodel(TargetMetamodel.Ecore); |
| } |
| |
| } |