blob: 24f9219b3656c847720a23f3197f44c1290f5fcf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*****************************************************************************
* Copyright (c) 2014 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
*
* Contributors:
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.moka.dummyexample;
import org.eclipse.papyrus.moka.debug.MokaDebugTarget;
import org.eclipse.papyrus.moka.debug.MokaStackFrame;
public class PresentationUtils {
public static MokaStackFrame getMokaStackFrame(DummyVisitor visitor) {
MokaStackFrame stackFrame = new MokaStackFrame((MokaDebugTarget)visitor.thread.getDebugTarget()) ;
stackFrame.setModelElement(visitor.currentlyVisited) ;
stackFrame.setThread(visitor.thread) ;
stackFrame.setName(visitor.currentlyVisited.getName()) ;
return stackFrame;
}
}
|