public void mouseUp(IBNAView view, MouseEvent evt, IThing t, int worldX, int worldY) { isDown = false; if (downOnCursor) { Object src = evt.getSource(); if (src != null && src instanceof BNAComposite) { BNAComposite bnaComposite = (BNAComposite) src; bnaComposite.setCursor(null); } } downOnCursor = false; }
public void mouseMove(IBNAView view, MouseEvent e, IThing t, int worldX, int worldY) { if (!isDown) { Object src = e.getSource(); if (src != null && src instanceof BNAComposite) { BNAComposite bnaComposite = (BNAComposite) src; if (t instanceof IHasStandardCursor) { IHasStandardCursor sct = (IHasStandardCursor) t; int cursor = sct.getStandardCursor(); if (cursor == SWT.NONE) { bnaComposite.setCursor(null); return; } else { bnaComposite.setCursor(e.display.getSystemCursor(cursor)); return; } } if (bnaComposite != null && !bnaComposite.isDisposed()) { bnaComposite.setCursor(null); return; } } } }