Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.MouseEvent


    case SWT.MouseEnter:
    case SWT.MouseExit:
    case SWT.MouseDoubleClick:
    case SWT.MouseWheel:
    case SWT.MouseHover:
      toString += new MouseEvent(event).toString();
      break;
    case SWT.Paint:
      toString += new PaintEvent(event).toString();
      break;
    case SWT.Move:
View Full Code Here


    case SWT.MouseEnter:
    case SWT.MouseExit:
    case SWT.MouseDoubleClick:
    case SWT.MouseWheel:
    case SWT.MouseHover:
      toString += new MouseEvent(event).toString();
      break;
    case SWT.Paint:
      toString += new PaintEvent(event).toString();
      break;
    case SWT.Move:
View Full Code Here

  /*
   * @see org.eclipse.jface.text.AbstractInformationControlManager#computeInformation()
   */
  protected void computeInformation() {
    fAllowMouseExit= false;
    MouseEvent event= getHoverEvent();
    IAnnotationHover hover= getHover(event);
    if (hover == null) {
      setInformation(null, null);
      return;
    }
View Full Code Here

  /*
   * @see org.eclipse.jface.text.AbstractInformationControlManager#computeLocation(org.eclipse.swt.graphics.Rectangle, org.eclipse.swt.graphics.Point, org.eclipse.jface.text.AbstractInformationControlManager.Anchor)
   * @since 3.0
   */
  protected Point computeLocation(Rectangle subjectArea, Point controlSize, Anchor anchor) {
    MouseEvent event= getHoverEvent();
    IAnnotationHover hover= getHover(event);

    boolean allowMouseExit= false;
    if (hover instanceof IAnnotationHoverExtension) {
      IAnnotationHoverExtension extension= (IAnnotationHoverExtension) hover;
View Full Code Here

  /*
   * @see org.eclipse.jface.text.AbstractInformationControlManager#computeInformation()
   */
  protected void computeInformation() {
    fAllowMouseExit= false;
    MouseEvent event= getHoverEvent();
    if ((event.stateMask & SWT.BUTTON_MASK) != 0) {
      setInformation(null, null);
      return;
    }
    IAnnotationHover hover= getHover(event);
View Full Code Here

  /*
   * @see org.eclipse.jface.text.AbstractInformationControlManager#computeInformationControlLocation(org.eclipse.swt.graphics.Rectangle, org.eclipse.swt.graphics.Point)
   * @since 3.7
   */
  protected Point computeInformationControlLocation(Rectangle subjectArea, Point controlSize) {
    MouseEvent event= getHoverEvent();
    IAnnotationHover hover= getHover(event);

    if (hover instanceof IAnnotationHoverExtension) {
      IAnnotationHoverExtension extension= (IAnnotationHoverExtension) hover;
      boolean allowMouseExit= extension.canHandleMouseCursor();
View Full Code Here

  /*
   * @see org.eclipse.jface.text.AbstractInformationControlManager#computeLocation(org.eclipse.swt.graphics.Rectangle, org.eclipse.swt.graphics.Point, org.eclipse.jface.text.AbstractInformationControlManager.Anchor)
   * @since 3.0
   */
  protected Point computeLocation(Rectangle subjectArea, Point controlSize, Anchor anchor) {
    MouseEvent event= getHoverEvent();
    IAnnotationHover hover= getHover(event);

    boolean allowMouseExit= false;
    if (hover instanceof IAnnotationHoverExtension) {
      IAnnotationHoverExtension extension= (IAnnotationHoverExtension) hover;
View Full Code Here

                        menuItem.addSelectionListener(new SelectionAdapter() {
                            @Override
                            public void widgetSelected(SelectionEvent event) {
                                NatEventData natEventData = MenuItemProviders
                                        .getNatEventData(event);
                                MouseEvent originalEvent = natEventData
                                        .getOriginalEvent();

                                int groupByColumnIndex = groupByHeaderLayer
                                        .getGroupByColumnIndexAtXY(
                                                originalEvent.x,
View Full Code Here

        dragMode = new CellSelectionDragMode();
        Event event = new Event();
        event.widget = new Shell();
        event.x = 100;
        event.y = 100;
        mouseEvent = new MouseEvent(event);

        listener = new LayerListenerFixture();
        gridLayer.addLayerListener(listener);
    }
View Full Code Here

    @Test
    public void shouldMatchCellsWithCustomLabels() throws Exception {
        CellLabelMouseEventMatcher matcher = new CellLabelMouseEventMatcher(
                GridRegion.BODY, MouseEventMatcher.LEFT_BUTTON, TEST_LABEL);

        boolean match = matcher.matches(natTableFixture, new MouseEvent(
                SWTUtils.getLeftClickEvent(100, 100, 0, natTableFixture)),
                new LabelStack(GridRegion.BODY));

        Assert.assertTrue(match);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.MouseEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.