Exemplo n.º 1
0
 /*
  * (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);
 }
Exemplo n.º 2
0
 /*
  * (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();
 }
Exemplo n.º 3
0
  /*
   * (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);
    }
  }
Exemplo n.º 4
0
 /*
  * (non-Javadoc)
  *
  * @see
  * org.xmind.gef.tool.AbstractTool#onDeactivated(org.xmind.gef.tool.ITool)
  */
 protected void onDeactivated(ITool nextTool) {
   super.onDeactivated(nextTool);
   request = null;
 }