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 144371 Details for
Bug 286506
[CoolBar] Single item not visible
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 to reproduce
clipboard.txt (text/plain), 1.04 KB, created by
Ralf Sternberg
on 2009-08-13 09:00:39 EDT
(
hide
)
Description:
Snippet to reproduce
Filename:
MIME Type:
Creator:
Ralf Sternberg
Created:
2009-08-13 09:00:39 EDT
Size:
1.04 KB
patch
obsolete
>package org.eclipse.rap.snippets; > >import org.eclipse.swt.SWT; >import org.eclipse.swt.graphics.Point; >import org.eclipse.swt.graphics.Rectangle; >import org.eclipse.swt.widgets.*; > > >public class CoolBarSnippet { > > private static final int ITEM_COUNT = 1; > > public static int createUI() { > Display display = new Display(); > Shell shell = new Shell( display ); > CoolBar coolBar = new CoolBar( shell, SWT.BORDER ); > for( int i = 0; i < ITEM_COUNT; i++ ) { > CoolItem item = new CoolItem( coolBar, SWT.NONE ); > Button button = new Button( coolBar, SWT.PUSH ); > button.setText( "Button " + i ); > Point size = button.computeSize( SWT.DEFAULT, SWT.DEFAULT ); > item.setPreferredSize( item.computeSize( size.x, size.y ) ); > item.setControl( button ); > } > coolBar.pack(); > Rectangle clientArea = shell.getClientArea(); > coolBar.setLocation( clientArea.x, clientArea.y ); > shell.open(); > while( !shell.isDisposed() ) { > if( !display.readAndDispatch() ) { > display.sleep(); > } > } > return 0; > } >}
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 286506
: 144371 |
145786