public void showContextMenu(Menu menu) { if (fInput.fAnnotationListener != null) { VerticalRulerEvent event= new VerticalRulerEvent(fAnnotation); fInput.fAnnotationListener.annotationContextMenuAboutToShow(event, menu); } }
public void defaultSelected() { if (fInput.fAnnotationListener != null) { VerticalRulerEvent event= new VerticalRulerEvent(fAnnotation); fInput.fAnnotationListener.annotationDefaultSelected(event); } dispose(); }
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(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 defaultSelected(MouseEvent e) { if (fInput.fAnnotationListener != null) { Event swtEvent= new Event(); swtEvent.type= SWT.MouseDown; swtEvent.display= e.display; swtEvent.widget= e.widget; swtEvent.time= e.time; swtEvent.data= e.data; swtEvent.x= e.x; swtEvent.y= e.y; swtEvent.button= e.button; swtEvent.stateMask= e.stateMask; swtEvent.count= e.count; VerticalRulerEvent event= new VerticalRulerEvent(fAnnotation, swtEvent); fInput.fAnnotationListener.annotationDefaultSelected(event); } dispose(); }
public void defaultSelected(MouseEvent e) { if (fInput.fAnnotationListener != null) { Event swtEvent= new Event(); swtEvent.type= SWT.MouseDown; swtEvent.display= e.display; swtEvent.widget= e.widget; swtEvent.time= e.time; swtEvent.data= e.data; swtEvent.x= e.x; swtEvent.y= e.y; swtEvent.button= e.button; swtEvent.stateMask= e.stateMask; swtEvent.count= e.count; VerticalRulerEvent event= new VerticalRulerEvent(fAnnotation, swtEvent); fInput.fAnnotationListener.annotationDefaultSelected(event); } dispose(); }