| /******************************************************************************* |
| * Copyright (c) 2007, 2010 BMW Car IT, Technische Universitaet Muenchen, 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: |
| * BMW Car IT - Initial API and implementation |
| * Technische Universitaet Muenchen - Major refactoring and extension |
| *******************************************************************************/ |
| package org.eclipse.emf.edapt.migration.ui; |
| |
| import org.eclipse.emf.edapt.internal.migration.internal.IDebugger; |
| import org.eclipse.emf.edapt.spi.migration.Instance; |
| import org.eclipse.emf.edapt.spi.migration.Model; |
| |
| /** |
| * Debugger that shows the state of the model to the user |
| * |
| * @author herrmama |
| * @author $Author$ |
| * @version $Rev$ |
| * @levd.rating RED Rev: |
| */ |
| public class InteractiveDebugger implements IDebugger { |
| |
| /** |
| * {@inheritDoc} |
| */ |
| @Override |
| public void debug(Instance instance, String message) { |
| |
| final Model model = instance.getType().getModel(); |
| model.setReflection(true); |
| |
| final DebugDialog dialog = new DebugDialog(instance, message); |
| dialog.open(); |
| |
| model.setReflection(false); |
| } |
| |
| } |