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 176546 Details for
Bug 322146
[Forms] FormToolbar renders a separator using ControlContributions
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.
Simple snippet to reproduce it
Bug322146Snippet.java (text/plain), 1.41 KB, created by
Ivan Furnadjiev
on 2010-08-13 08:01:51 EDT
(
hide
)
Description:
Simple snippet to reproduce it
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2010-08-13 08:01:51 EDT
Size:
1.41 KB
patch
obsolete
>package rap.bugs.entrypoint; > >import org.eclipse.jface.layout.GridLayoutFactory; >import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.swt.SWT; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.ToolBar; >import org.eclipse.swt.widgets.ToolItem; > >public class Bug322146Snippet implements IEntryPoint { > > private void createContents( final Composite parent ) { > parent.setLayout( GridLayoutFactory.fillDefaults().create() ); > parent.setBackgroundMode( SWT.INHERIT_DEFAULT ); > ToolBar toolbar = new ToolBar( parent, SWT.HORIZONTAL | SWT.FLAT ); > ToolItem toolItem = new ToolItem( toolbar, SWT.SEPARATOR ); > Label label = new Label( toolbar, SWT.NONE ); > label.setText( "Test" ); > label.setBackground( null ); > toolItem.setControl( label ); > toolItem.setWidth( label.computeSize( SWT.DEFAULT, SWT.DEFAULT ).x ); > } > > public int createUI() { > Display display = new Display(); > Shell shell = new Shell( display ); > shell.setText( "Bug 322146" ); > createContents( shell ); > shell.setSize( 800, 600 ); > shell.setLocation( 20, 20 ); > shell.open(); > while( !shell.isDisposed() ) { > if( !display.readAndDispatch() ) { > display.sleep(); > } > } > display.dispose(); > 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 322146
: 176546