File tree 2 files changed +6
-6
lines changed
src/org/jetuml/diagram/builder
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -480,7 +480,7 @@ private Runnable createDetachOperation(Node pNode)
480
480
{
481
481
return ()->
482
482
{
483
- Rectangle parentBound = packageNodeViewer ().getBounds (parent );
483
+ Rectangle parentBound = packageNodeRenderer ().getBounds (parent );
484
484
pNode .detach ();
485
485
parent .removeChild (pNode );
486
486
parent .translate ( parentBound .getX ()-parent .position ().getX (), parentBound .getY ()-parent .position ().getY () );
@@ -493,9 +493,9 @@ private Runnable createDetachOperation(Node pNode)
493
493
};
494
494
}
495
495
496
- private PackageNodeRenderer packageNodeViewer ()
496
+ private PackageNodeRenderer packageNodeRenderer ()
497
497
{
498
- return (PackageNodeRenderer )DiagramType . newRendererInstanceFor ( aDiagramRenderer . diagram ()) .rendererFor (PackageNode .class );
498
+ return (PackageNodeRenderer )aDiagramRenderer .rendererFor (PackageNode .class );
499
499
}
500
500
501
501
private Point computePosition (Dimension pDimension , Point pRequestedPosition )
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ private Optional<ImplicitParameterNode> insideTargetArea(Point pPoint)
248
248
{
249
249
if ( node instanceof ImplicitParameterNode && aDiagramRenderer .contains (node , pPoint ) )
250
250
{
251
- if ( !(pPoint .getY () < implicitParameterNodeViewer ().getTopRectangle (node ).getMaxY () + CALL_NODE_YGAP ) )
251
+ if ( !(pPoint .getY () < implicitParameterRenderer ().getTopRectangle (node ).getMaxY () + CALL_NODE_YGAP ) )
252
252
{
253
253
return Optional .of ( (ImplicitParameterNode )node );
254
254
}
@@ -257,9 +257,9 @@ private Optional<ImplicitParameterNode> insideTargetArea(Point pPoint)
257
257
return Optional .empty ();
258
258
}
259
259
260
- private ImplicitParameterNodeRenderer implicitParameterNodeViewer ()
260
+ private ImplicitParameterNodeRenderer implicitParameterRenderer ()
261
261
{
262
- return (ImplicitParameterNodeRenderer )DiagramType . newRendererInstanceFor ( aDiagramRenderer . diagram ()) .rendererFor (ImplicitParameterNode .class );
262
+ return (ImplicitParameterNodeRenderer )aDiagramRenderer .rendererFor (ImplicitParameterNode .class );
263
263
}
264
264
265
265
/**
You can’t perform that action at this time.
0 commit comments