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 148910 Details for
Bug 291506
Display dispose event is not filtered
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.
[patch]
testcase
clipboard.txt (text/plain), 1.15 KB, created by
Benjamin Muskalla
on 2009-10-06 11:43:33 EDT
(
hide
)
Description:
testcase
Filename:
MIME Type:
Creator:
Benjamin Muskalla
Created:
2009-10-06 11:43:33 EDT
Size:
1.15 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.rwt.test >Index: src/org/eclipse/swt/widgets/Display_Test.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.test/src/org/eclipse/swt/widgets/Display_Test.java,v >retrieving revision 1.32 >diff -u -r1.32 Display_Test.java >--- src/org/eclipse/swt/widgets/Display_Test.java 6 Oct 2009 15:03:27 -0000 1.32 >+++ src/org/eclipse/swt/widgets/Display_Test.java 6 Oct 2009 15:41:57 -0000 >@@ -986,6 +986,21 @@ > assertFalse( display.isDisposed() ); > } > >+ public void testDisposeEventFilter() { >+ final Display display = new Display(); >+ final StringBuffer log = new StringBuffer(); >+ Listener disposeListener = new Listener() { >+ public void handleEvent( Event event ) { >+ assertSame( display, event.display ); >+ assertNull( event.widget ); >+ log.append( "disposed" ); >+ } >+ }; >+ display.addFilter( SWT.Dispose, disposeListener ); >+ display.dispose(); >+ assertEquals( "disposed", log.toString() ); >+ } >+ > protected void setUp() throws Exception { > RWTFixture.setUp(); > }
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 291506
: 148910