Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 2045 Details for
Bug 23997
Tracker moves mouse cursor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
test case
Bug_23997.java (text/plain), 1.16 KB, created by
Knut Radloff
on 2002-09-23 16:54:05 EDT
(
hide
)
Description:
test case
Filename:
MIME Type:
Creator:
Knut Radloff
Created:
2002-09-23 16:54:05 EDT
Size:
1.16 KB
patch
obsolete
>package kr.PR; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.graphics.Point; >import org.eclipse.swt.graphics.Rectangle; >import org.eclipse.swt.layout.FillLayout; >import org.eclipse.swt.widgets.*; > >public class Bug_23997 { > >public static void main(String arguments[]) { > final Shell shell = new Shell(); > final boolean[] track = {false}; > > shell.addListener(SWT.DragDetect, new Listener() { > public void handleEvent(Event event) { > track[0] = true; > } > }); > shell.addListener(SWT.MouseMove, new Listener() { > public void handleEvent(Event event) { > if (track[0] == false) > return; > Display display = shell.getDisplay(); > Tracker tracker= new Tracker(display, SWT.NULL); > Point p = display.getCursorLocation(); > tracker.setRectangles(new Rectangle[] {new Rectangle(p.x - 10, p.y - 10, 100, 100)}); > tracker.open(); > tracker.dispose(); > } > }); > shell.addListener(SWT.MouseUp, new Listener() { > public void handleEvent(Event event) { > track[0] = false; > } > }); > > shell.open(); > > Display display = shell.getDisplay (); > while (!shell.isDisposed ()) > if (!display.readAndDispatch ()) display.sleep (); >} >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 23997
: 2045