import org.simantics.g2d.canvas.impl.CanvasContext;\r
import org.simantics.g2d.connection.IConnectionAdvisor;\r
import org.simantics.g2d.diagram.DiagramHints;\r
+import org.simantics.g2d.diagram.handler.PickRequest;\r
+import org.simantics.g2d.diagram.participant.DiagramParticipant;\r
+import org.simantics.g2d.diagram.participant.ElementInteractor;\r
import org.simantics.g2d.diagram.participant.ElementPainter;\r
+import org.simantics.g2d.diagram.participant.Selection;\r
+import org.simantics.g2d.diagram.participant.ZOrderHandler;\r
import org.simantics.g2d.diagram.participant.pointertool.PointerInteractor;\r
import org.simantics.g2d.element.ElementClass;\r
import org.simantics.g2d.element.ElementClasses;\r
import org.simantics.g2d.element.handler.impl.StaticObjectAdapter;\r
import org.simantics.g2d.participant.GridPainter;\r
import org.simantics.g2d.participant.RulerPainter;\r
+import org.simantics.g2d.tooltip.TerminalTooltipParticipant;\r
import org.simantics.jfreechart.chart.element.PopulateChartDropParticipant;\r
import org.simantics.modeling.mapping.ElementCopyAdvisor;\r
import org.simantics.modeling.mapping.MappedElementCopyAdvisor;\r
\r
@Override \r
protected PointerInteractor getPointerInteractor() {\r
- return new org.simantics.sysdyn.ui.editor.participant.SysdynPointerInteractor(true, true, true, false, true, false, synchronizer.getElementClassProvider());\r
+ return new org.simantics.sysdyn.ui.editor.participant.SysdynPointerInteractor(true, true, true, false, true, false, synchronizer.getElementClassProvider(), PickRequest.PickSorter.CONNECTIONS_FIRST);\r
}\r
\r
@Override\r
return new SysdynConnectionAdvisor(modelingRules, sessionContext.getSession());\r
}\r
\r
+ @Override\r
+ protected void addDiagramParticipants(ICanvasContext ctx) {\r
+ ctx.add(new ZOrderHandler());\r
+ ctx.add(getPointerInteractor());\r
+ ctx.add(new ElementInteractor(PickRequest.PickSorter.CONNECTIONS_FIRST));\r
+ ctx.add(new Selection());\r
+ ctx.add(new DiagramParticipant());\r
+ ctx.add(new ElementPainter());\r
+ //ctx.add(new ElementHeartbeater());\r
+ //ctx.add(new ZoomTransitionParticipant(TransitionFunction.SIGMOID));\r
+ //ctx.add(new TooltipParticipant());\r
+ ctx.add(new TerminalTooltipParticipant());\r
+ }\r
+ \r
}\r
import org.simantics.g2d.connection.IConnectionAdvisor;\r
import org.simantics.g2d.diagram.DiagramHints;\r
import org.simantics.g2d.diagram.handler.PickContext;\r
+import org.simantics.g2d.diagram.handler.PickRequest.PickSorter;\r
import org.simantics.g2d.diagram.participant.Selection;\r
import org.simantics.g2d.diagram.participant.TerminalPainter;\r
import org.simantics.g2d.diagram.participant.pointertool.PointerInteractor;\r
@Dependency MouseUtil mice;\r
@Reference TerminalPainter terminalPainter;\r
\r
- public SysdynPointerInteractor(boolean clickSelect, boolean boxSelect, boolean dragElement, boolean dndDragElement, boolean connect, boolean doubleClickEdit, IElementClassProvider newConnectionClassProvider) {\r
- super(clickSelect, boxSelect, dragElement, dndDragElement, connect, doubleClickEdit, newConnectionClassProvider);\r
+ public SysdynPointerInteractor(boolean clickSelect, boolean boxSelect, boolean dragElement, boolean dndDragElement, boolean connect, boolean doubleClickEdit, IElementClassProvider newConnectionClassProvider, PickSorter pickSorter) {\r
+ super(clickSelect, boxSelect, dragElement, dndDragElement, connect, doubleClickEdit, newConnectionClassProvider, pickSorter);\r
}\r
\r
@Override\r