示例#1
0
 protected void end() {
   if (feedbackService != null) {
     if (targetParent != null) {
       feedbackService.removeSelection(targetParent.getFigure());
     }
     feedbackService = null;
   }
   targetParent = null;
   super.end();
 }
示例#2
0
 protected void onMoving(Point currentPos, MouseDragEvent me) {
   super.onMoving(currentPos, me);
   ITopicPart newParent = findTopicPart(me.target);
   if (newParent != targetParent) {
     if (feedbackService != null) {
       if (targetParent != null) {
         feedbackService.removeSelection(targetParent.getFigure());
       }
       if (newParent != null) {
         SelectionFigure selection = feedbackService.addSelection(newParent.getFigure());
         selection.setPreselectionColor(ColorUtils.getColor(MindMapUI.COLOR_WARNING));
         selection.setPreselectionFillAlpha(0);
         selection.setPreselectionFillColor(null);
         selection.setPreselected(true);
       }
     }
   }
   targetParent = newParent;
 }