1 11 package org.eclipse.swt.events; 12 13 14 import org.eclipse.swt.widgets.Event; 15 16 24 25 public final class MenuDetectEvent extends TypedEvent { 26 27 31 public int x; 32 33 37 public int y; 38 39 43 public boolean doit; 44 45 private static final long serialVersionUID = -3061660596590828941L; 46 47 53 public MenuDetectEvent(Event e) { 54 super(e); 55 this.x = e.x; 56 this.y = e.y; 57 this.doit = e.doit; 58 } 59 60 66 public String toString() { 67 String string = super.toString (); 68 return string.substring (0, string.length() - 1) + " x=" + x 70 + " y=" + y 71 + " doit=" + doit 72 + "}"; 73 } 74 } 75 | Popular Tags |