Skip to content
Snippets Groups Projects
Commit 9ec9dfcb authored by Lukas Ladenberger's avatar Lukas Ladenberger
Browse files

check observer of tracks

parent aeb4d6ac
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ import java.util.List;
import org.eclipse.draw2d.ColorConstants;
import de.bmotionstudio.gef.editor.Animation;
import de.bmotionstudio.gef.editor.AttributeConstants;
import de.bmotionstudio.gef.editor.attribute.AbstractAttribute;
import de.bmotionstudio.gef.editor.attribute.BAttributeLineStyle;
......@@ -117,4 +118,18 @@ public class TrackNode extends BControl {
super.populateVisualization(visualization);
}
@Override
public void checkObserver(Animation animation) {
super.checkObserver(animation);
// TODO: Currently connection observer are checked twice (source +
// target) => change this, so that observer are checked only on time per
// state!!!
for (Track t : getTargetTracks()) {
t.checkObserver(animation);
}
for (Track t : getSourceTracks()) {
t.checkObserver(animation);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment