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 209357 Details for
Bug 368428
cyclical setTimeout from qx.ui.core.Widget._autoFlushHelper
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.
Run it and Press Do It button.
Simple.java (text/plain), 2.49 KB, created by
Andrei Neshcheret
on 2012-01-12 04:59:09 EST
(
hide
)
Description:
Run it and Press Do It button.
Filename:
MIME Type:
Creator:
Andrei Neshcheret
Created:
2012-01-12 04:59:09 EST
Size:
2.49 KB
patch
obsolete
>package ru.infinet; > >import org.eclipse.jface.action.Action; >import org.eclipse.jface.action.IAction; >import org.eclipse.jface.action.ToolBarManager; >import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.swt.SWT; >import org.eclipse.swt.events.SelectionAdapter; >import org.eclipse.swt.events.SelectionEvent; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Button; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Group; >import org.eclipse.swt.widgets.Shell; >import org.eclipse.swt.widgets.ToolBar; > >public class Simple implements IEntryPoint >{ > private ToolBarManager manager; > Action action; > > /** > * @wbp.parser.entryPoint > */ > @SuppressWarnings( "serial" ) > @Override > public int createUI() > { > Display display = new Display(); > Shell shell = new Shell( display ); > shell.setSize( 449, 472 ); > shell.setLayout( new GridLayout( 1, false ) ); > > { > final Composite composite = new Composite( shell, SWT.NONE ); > composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true, 1, 1 ) ); > composite.setLayout( new GridLayout( 1, false ) ); > { > final Group leftGroup = new Group(composite, SWT.NONE); > leftGroup.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); > leftGroup.setText("Left"); > leftGroup.setLayout(new GridLayout(2, false)); > { > final Button doItButton = new Button(leftGroup, SWT.NONE); > doItButton.addSelectionListener(new SelectionAdapter() { > @Override > public void widgetSelected(SelectionEvent e) { > action.setText( "None " ); // Trailing <SPACE> is very important to reproduce a bug!!! > manager.update( true ); > } > }); > doItButton.setText("Do It"); > } > { > final ToolBar toolBar = new ToolBar(leftGroup, SWT.FLAT | SWT.RIGHT); > toolBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1)); > manager = new ToolBarManager( toolBar ); > > action = new Action("None", IAction.AS_DROP_DOWN_MENU ) {}; > manager.add( action ); > manager.update( true ); > } > } > } > 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 368428
: 209357 |
209371
|
209372
|
209427