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 159161 Details for
Bug 300681
Mouseover highlighting of List's in ExpandItem's fails with new list model
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.
Entry point used to reproduce the bug
ApplicationTesterEntryPoint.java (text/plain), 2.28 KB, created by
Ivan Furnadjiev
on 2010-02-16 05:31:58 EST
(
hide
)
Description:
Entry point used to reproduce the bug
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2010-02-16 05:31:58 EST
Size:
2.28 KB
patch
obsolete
>package rap.bugs.entrypoint; > >import org.eclipse.jface.layout.GridLayoutFactory; >import org.eclipse.rwt.lifecycle.IEntryPoint; >import org.eclipse.rwt.lifecycle.WidgetUtil; >import org.eclipse.swt.SWT; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.ExpandBar; >import org.eclipse.swt.widgets.ExpandItem; >import org.eclipse.swt.widgets.List; >import org.eclipse.swt.widgets.Shell; > >public class ApplicationTesterEntryPoint implements IEntryPoint { > > private ExpandBar expandBar; > private ExpandItem expandItem; > private List menuList; > > private void createContents( final Composite parent ) { > parent.setLayout( GridLayoutFactory.fillDefaults().create() ); > this.expandBar = new ExpandBar( parent, SWT.V_SCROLL ); > this.expandBar.setSpacing( 4 ); > this.expandItem = new ExpandItem( this.expandBar, SWT.NONE ); > this.expandItem.setText( "Title" ); // title of expand item > this.menuList = new List( this.expandBar, SWT.SINGLE ); > this.menuList.add( "Item 1" ); > this.menuList.add( "Item 2" ); > redrawItem(); > // the ExpandItems's onmouseover hovering effect works fine > this.menuList = new List( this.expandBar, SWT.SINGLE ); > this.menuList.add( "Item 3" ); > this.menuList.add( "Item 4" ); > this.menuList.add( "Item 5" ); > this.menuList.add( "Item 6" ); > redrawItem(); > } > > public void redrawItem() { > this.menuList.setData( WidgetUtil.CUSTOM_VARIANT, "EXAMPLES" ); //$NON-NLS-1$ > this.expandItem.setControl( this.menuList ); > int height = this.menuList.getItemHeight() * this.menuList.getItemCount(); > this.expandItem.setHeight( height ); > this.expandItem.setExpanded( true ); > // desperately updating, doesn't change anything > this.expandBar.update(); > this.expandBar.redraw(); > this.expandBar.layout(); > } > > public int createUI() { > Display display = new Display(); > Shell shell = new Shell( display ); > shell.setText( "Application Tester" ); > createContents( shell ); > shell.setSize( 600, 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 300681
: 159161