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 228214 Details for
Bug 402954
[ProgressBar][Client] Selection is not correctly mapped to indicator size
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 the issue
clipboard.txt (text/plain), 1.22 KB, created by
Ralf Sternberg
on 2013-03-11 13:58:40 EDT
(
hide
)
Description:
Snippet to reproduce the issue
Filename:
MIME Type:
Creator:
Ralf Sternberg
Created:
2013-03-11 13:58:40 EDT
Size:
1.22 KB
patch
obsolete
>package org.eclipse.rap.snippets; > >import org.eclipse.rap.rwt.application.AbstractEntryPoint; >import org.eclipse.swt.SWT; >import org.eclipse.swt.layout.GridData; >import org.eclipse.swt.layout.GridLayout; >import org.eclipse.swt.widgets.Composite; >import org.eclipse.swt.widgets.Display; >import org.eclipse.swt.widgets.Label; >import org.eclipse.swt.widgets.ProgressBar; >import org.eclipse.swt.widgets.Shell; > > >public class ProgressBarSnippet extends AbstractEntryPoint { > > @Override > protected Shell createShell( Display display ) { > return new Shell( display ); > } > > @Override > public void createContents( Composite parent ) { > parent.setLayout( new GridLayout( 2, false ) ); > for( int i = 0; i <= 100; i += 10 ) { > createProgressBar( parent, i ); > } > } > > private static ProgressBar createProgressBar( Composite parent, int selection ) { > Label label = new Label( parent, SWT.NONE ); > label.setText( selection + "%" ); > ProgressBar progressBar = new ProgressBar( parent, SWT.HORIZONTAL ); > progressBar.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) ); > progressBar.setMinimum( 0 ); > progressBar.setMaximum( 100 ); > progressBar.setSelection( selection ); > return progressBar; > } > >}
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 402954
: 228214 |
228215