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 71747 Details for
Bug 193318
Implement ToolItem.setMenu
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Snippets patch
swt.snippets patch.txt (text/plain), 998 bytes, created by
Bogdan Gheorghe
on 2007-06-19 10:28:11 EDT
(
hide
)
Description:
Snippets patch
Filename:
MIME Type:
Creator:
Bogdan Gheorghe
Created:
2007-06-19 10:28:11 EDT
Size:
998 bytes
patch
obsolete
>Index: src/org/eclipse/swt/snippets/Snippet67.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet67.java,v >retrieving revision 1.3 >diff -u -r1.3 Snippet67.java >--- src/org/eclipse/swt/snippets/Snippet67.java 16 Sep 2005 19:24:37 -0000 1.3 >+++ src/org/eclipse/swt/snippets/Snippet67.java 15 Jun 2007 07:49:11 -0000 >@@ -32,17 +32,7 @@ > item.setText ("Item " + i); > } > final ToolItem item = new ToolItem (toolBar, SWT.DROP_DOWN); >- item.addListener (SWT.Selection, new Listener () { >- public void handleEvent (Event event) { >- if (event.detail == SWT.ARROW) { >- Rectangle rect = item.getBounds (); >- Point pt = new Point (rect.x, rect.y + rect.height); >- pt = toolBar.toDisplay (pt); >- menu.setLocation (pt.x, pt.y); >- menu.setVisible (true); >- } >- } >- }); >+ item.setDropDownMenu(menu); > toolBar.pack (); > shell.pack (); > shell.open ();
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 193318
:
71745
|
71746
| 71747 |
71748
|
71749
|
72862
|
72863
|
72930
|
72931
|
90591
|
90592
|
91606
|
91607