blob: d9f606b66ec37c9ca44abf57dad194cdfa6dc794 [file] [log] [blame]
/*******************************************************************************
* 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 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* 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);
}
}