public void setCursor(Cursor c) { super.setCursor(c); label.setCursor(c); }
public void deselect() { // hide the popup // fHoverManager.disposeInformationControl(); // deselect fSelection= null; resetViewerBackground(oldStyles); oldStyles= null; Display disp= fShell.getDisplay(); canvas.setCursor(null); // TODO: remove shading - for now: set standard background canvas.setBackground(disp.getSystemColor(SWT.COLOR_INFO_BACKGROUND)); }
public void deselect() { // hide the popup // fHoverManager.disposeInformationControl(); // deselect fSelection= null; resetViewerBackground(oldStyles); oldStyles= null; Display disp= fShell.getDisplay(); canvas.setCursor(null); // TODO: remove shading - for now: set standard background canvas.setBackground(disp.getSystemColor(SWT.COLOR_INFO_BACKGROUND)); }
private void doDispose() { disposeImageResources(); canvas.setCursor(null); for (Cursor cursor : cursors.values()) { cursor.dispose(); } }
public void deselect() { // hide the popup // fHoverManager.disposeInformationControl(); // deselect fSelection= null; resetViewerBackground(oldStyles); oldStyles= null; Display disp= fShell.getDisplay(); canvas.setCursor(null); // TODO: remove shading - for now: set standard background canvas.setBackground(disp.getSystemColor(SWT.COLOR_INFO_BACKGROUND)); }
/** * Handles mouse moves. * * @param event the mouse move event */ private void handleMouseMove(MouseEvent event) { if (fTextViewer != null) { int[] lines= toLineNumbers(event.y, true); Position p= getAnnotationPosition(lines); Cursor cursor= (p != null ? fHitDetectionCursor : null); if (cursor != fLastCursor) { fCanvas.setCursor(cursor); fLastCursor= cursor; } } }
/** * Handles mouse moves. * * @param event the mouse move event */ private void handleMouseMove(MouseEvent event) { if (fTextViewer != null) { int[] lines= toLineNumbers(event.y, true); Position p= getAnnotationPosition(lines); Cursor cursor= (p != null ? fHitDetectionCursor : null); if (cursor != fLastCursor) { fCanvas.setCursor(cursor); fLastCursor= cursor; } } }
@Override public void mouseMove(MouseEvent e) { Cursor cursor= null; Diff diff= handlemouseInBirdsEyeView(fBirdsEyeCanvas, e.y); if (diff != null && diff.getKind() != RangeDifference.NOCHANGE) cursor= e.widget.getDisplay().getSystemCursor(SWT.CURSOR_HAND); if (fLastCursor != cursor) { fBirdsEyeCanvas.setCursor(cursor); fLastCursor= cursor; } } }
/** * Handles mouse moves. * * @param event the mouse move event */ private void handleMouseMove(MouseEvent event) { fParentRuler.setLocationOfLastMouseButtonActivity(event.x, event.y); if (fCachedTextViewer != null) { int line= toDocumentLineNumber(event.y); Cursor cursor= (hasAnnotation(line) ? fHitDetectionCursor : null); if (cursor != fLastCursor) { fCanvas.setCursor(cursor); fLastCursor= cursor; } } }
/** * Handles mouse moves. * * @param event the mouse move event */ private void handleMouseMove(MouseEvent event) { fParentRuler.setLocationOfLastMouseButtonActivity(event.x, event.y); if (fCachedTextViewer != null) { int line= toDocumentLineNumber(event.y); Cursor cursor= (hasAnnotation(line) ? fHitDetectionCursor : null); if (cursor != fLastCursor) { fCanvas.setCursor(cursor); fLastCursor= cursor; } } }
public void selected() { Display disp= fShell.getDisplay(); canvas.setCursor(getHandCursor(disp)); // TODO: shade - for now: set grey background canvas.setBackground(getSelectionColor(disp)); // highlight the viewer background at its position oldStyles= setViewerBackground(fAnnotation); // set the selection fSelection= this; if (fHoverManager != null) fHoverManager.showInformation(); if (fInput.fAnnotationListener != null) { VerticalRulerEvent event= new VerticalRulerEvent(fAnnotation); fInput.fAnnotationListener.annotationSelected(event); } }
public void selected() { Display disp= fShell.getDisplay(); canvas.setCursor(fHandCursor); // TODO: shade - for now: set grey background canvas.setBackground(getSelectionColor(disp)); // highlight the viewer background at its position oldStyles= setViewerBackground(fAnnotation); // set the selection fSelection= this; if (fHoverManager != null) fHoverManager.showInformation(); if (fInput.fAnnotationListener != null) { VerticalRulerEvent event= new VerticalRulerEvent(fAnnotation); fInput.fAnnotationListener.annotationSelected(event); } }
public void selected() { Display disp= fShell.getDisplay(); canvas.setCursor(getHandCursor(disp)); // TODO: shade - for now: set grey background canvas.setBackground(getSelectionColor(disp)); // highlight the viewer background at its position oldStyles= setViewerBackground(fAnnotation); // set the selection fSelection= this; if (fHoverManager != null) fHoverManager.showInformation(); if (fInput.fAnnotationListener != null) { VerticalRulerEvent event= new VerticalRulerEvent(fAnnotation); fInput.fAnnotationListener.annotationSelected(event); } }
@Override public void dragStart(DragSourceEvent event) { Cursor cursor = cHeaderArea.getCursor(); if (cursor != null && cursor.equals(event.display.getSystemCursor(SWT.CURSOR_SIZEWE))) { event.doit = false; return; } cHeaderArea.setCursor(null); TableColumnCore tc = getTableColumnByOffset(event.x); isHeaderDragging = tc != null; if (isHeaderDragging) { eventData = tc.getName(); } //System.out.println("drag " + eventData); }
void doMouseLinkCursor(int x, int y) { int offset = getOffsetAtPoint(x, y, null, true); Display display = getDisplay(); Cursor newCursor = cursor; if (renderer.hasLink(offset)) { newCursor = display.getSystemCursor(SWT.CURSOR_HAND); } else { if (cursor == null) { int type = blockSelection ? SWT.CURSOR_CROSS : SWT.CURSOR_IBEAM; newCursor = display.getSystemCursor(type); } } if (newCursor != getCursor()) super.setCursor(newCursor); } /**
void doMouseLinkCursor(int x, int y) { int offset = getOffsetAtPoint(x, y, null, true); Display display = getDisplay(); Cursor newCursor = cursor; if (renderer.hasLink(offset)) { newCursor = display.getSystemCursor(SWT.CURSOR_HAND); } else { if (cursor == null) { int type = blockSelection ? SWT.CURSOR_CROSS : SWT.CURSOR_IBEAM; newCursor = display.getSystemCursor(type); } } if (newCursor != getCursor()) super.setCursor(newCursor); } /**
void doMouseLinkCursor(int x, int y) { int offset = getOffsetAtPoint(x, y, null, true); Display display = getDisplay(); Cursor newCursor = cursor; if (renderer.hasLink(offset)) { newCursor = display.getSystemCursor(SWT.CURSOR_HAND); } else { if (cursor == null) { int type = blockSelection ? SWT.CURSOR_CROSS : SWT.CURSOR_IBEAM; newCursor = display.getSystemCursor(type); } } if (newCursor != getCursor()) super.setCursor(newCursor); } /**
void doMouseLinkCursor(int x, int y) { int offset = getOffsetAtPoint(x, y, null, true); Display display = getDisplay(); Cursor newCursor = cursor; if (renderer.hasLink(offset)) { newCursor = display.getSystemCursor(SWT.CURSOR_HAND); } else { if (cursor == null) { int type = blockSelection ? SWT.CURSOR_CROSS : SWT.CURSOR_IBEAM; newCursor = display.getSystemCursor(type); } } if (newCursor != getCursor()) super.setCursor(newCursor); } /**
void doMouseLinkCursor(int x, int y) { int offset = getOffsetAtPoint(x, y, null, true); Display display = getDisplay(); Cursor newCursor = cursor; if (renderer.hasLink(offset)) { newCursor = display.getSystemCursor(SWT.CURSOR_HAND); } else { if (cursor == null) { int type = blockSelection ? SWT.CURSOR_CROSS : SWT.CURSOR_IBEAM; newCursor = display.getSystemCursor(type); } } if (newCursor != getCursor()) super.setCursor(newCursor); } /**