예제 #1
0
  /** Pop the cursor on top of the cursorStack and set it as the canvas cursor. */
  public void popCursor() {
    if (curCursor != null) {
      // We must manually dispose of cursors under SWT
      curCursor.dispose();
    }

    if (cursorStack.isEmpty()) {
      curCursor = null;
    } else {
      curCursor = (Cursor) cursorStack.pop();
    }

    // This sets the cursor back to default
    setCursor(curCursor);
  }