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 137621 Details for
Bug 278361
[Combo] Overlays text after changing items
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.
Snippet in create part control
createPartControl.java (text/x-java), 781 bytes, created by
Markus Krüger
on 2009-05-29 06:25:43 EDT
(
hide
)
Description:
Snippet in create part control
Filename:
MIME Type:
Creator:
Markus Krüger
Created:
2009-05-29 06:25:43 EDT
Size:
781 bytes
patch
obsolete
>@Override >public void createPartControl( final Composite parent ) { > final Combo c = new Combo( parent, SWT.READ_ONLY ); > final String[] texts = new String[]{ > "AAAAA", > "BBBBBB", > "CCCCC", > "DDDDDD", > "EEEEEEE", > "FFFFFFFFF", > "GGGGG", > "HHHHH", > "IIIIIII", > "JJJJJJJ" > }; > c.setVisibleItemCount( texts.length ); > for( int i = 0; i < texts.length; i++ ) { > c.add( texts[ i ].toLowerCase() ); > } > Button b = new Button( parent, SWT.PUSH ); > b.setText( "update items" ); > b.addSelectionListener( new SelectionAdapter() { > > @Override > public void widgetSelected( SelectionEvent e ) { > c.removeAll(); > for( int i = 0; i < texts.length; i++ ) { > c.add( texts[ i ] ); > } > } > } ); >}
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 278361
:
137620
| 137621 |
137629
|
137649
|
137972