/*******************************************************************************
* 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
* E.D.Willink - rework Delegate as Handler - 386701
*******************************************************************************/
package org.eclipse.ocl.examples.interpreter.actions;
import org.eclipse.ocl.examples.interpreter.console.OCLConsole;
import org.eclipse.ocl.examples.interpreter.console.TargetMetamodel;
/**
* Action handler that ensures that the OCL Console is active and set to
* target the Ecore metamodel.
* @since 3.3
*/
public class ShowEcoreConsoleHandler extends ShowConsoleHandler
{
@Override
protected void consoleOpened(OCLConsole console) {
console.setTargetMetamodel(TargetMetamodel.Ecore);
}
}