// the set of actors to be debugged.
// If the object is not contained by the associated
// composite, then find an object above it in the hierarchy
// that is.
DebugProfile debugProfile = getDebugProfile((Executable) objToHighlight);
BasicGraphController graphController = debugProfile
.getGraphController();
AbstractBasicGraphModel graphModel = (AbstractBasicGraphModel) graphController
.getGraphModel();
NamedObj toplevel = graphModel.getPtolemyModel();
while ((objToHighlight != null)
&& (objToHighlight.getContainer() != toplevel)) {
objToHighlight = objToHighlight.getContainer();
}
if (objToHighlight == null) {
return;
}
Object location = objToHighlight.getAttribute("_location");
if (location != null) {
Figure figure = graphController.getFigure(location);
if (figure != null) {
// If the user has chosen to break on one of
// the firing events, highlight the actor and
// wait for the user to press the Resume