/*
  * (non-Javadoc)
  *
  * @see
  * org.xmind.ui.tools.DummyCreateTool#destroyDummy(org.eclipse.draw2d.IFigure
  * )
  */
 protected void destroyDummy(IFigure dummy) {
   if (branchDummy != null) {
     branchDummy.dispose();
     branchDummy = null;
   }
   super.destroyDummy(dummy);
 }
 /*
  * (non-Javadoc)
  *
  * @see
  * org.xmind.gef.tool.AbstractTool#onActivated(org.xmind.gef.tool.ITool)
  */
 protected void onActivated(ITool prevTool) {
   request = null;
   if (prevTool instanceof IGraphicalTool) {
     setCursorPosition(((IGraphicalTool) prevTool).getCursorPosition());
   }
   super.onActivated(prevTool);
   createDummy();
 }
  /*
   * (non-Javadoc)
   *
   * @see
   * org.xmind.gef.tool.CreateTool#internalHandleRequest(org.xmind.gef.Request
   * )
   */
  @Override
  protected void internalHandleRequest(Request request) {
    if (!getStatus().isStatus(GEF.ST_ACTIVE)) return;

    if (this.request == null && MindMapUI.REQ_CREATE_FLOAT.equals(request.getType())) {
      this.request = request;
      pack();
    } else {
      super.internalHandleRequest(request);
    }
  }
 /*
  * (non-Javadoc)
  *
  * @see
  * org.xmind.gef.tool.AbstractTool#onDeactivated(org.xmind.gef.tool.ITool)
  */
 protected void onDeactivated(ITool nextTool) {
   super.onDeactivated(nextTool);
   request = null;
 }