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 244329 Details for
Bug 410427
org.eclipse.swt.widgets.Table.getTopIndex() returns wrong value when selecting the last not fully visible row
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.
TestSnippet to reproduce this problem
Bug410427.java (text/x-java), 975 bytes, created by
Niraj Modi
on 2014-06-18 09:15:07 EDT
(
hide
)
Description:
TestSnippet to reproduce this problem
Filename:
MIME Type:
Creator:
Niraj Modi
Created:
2014-06-18 09:15:07 EDT
Size:
975 bytes
patch
obsolete
>import java.io.*; > >import org.eclipse.swt.*; >import org.eclipse.swt.events.*; >import org.eclipse.swt.layout.*; >import org.eclipse.swt.widgets.*; > >public class Bug410427 { > public static void main(String[] args) throws FileNotFoundException { > Display display = new Display(); > Shell shell = new Shell(display); > shell.setText("KeyDown_MouseClick_PartialVissibleRow"); > shell.setSize(400, 125); > shell.setLayout(new FillLayout()); > final Table table = new Table(shell, SWT.FULL_SELECTION); > table.addSelectionListener(new SelectionAdapter() { > @Override > public void widgetSelected(SelectionEvent e) { > System.out.println("Selected: [" + table.getTopIndex() + "]"); > } > }); > for (int i = 0; i < 20; i++) { > TableItem item = new TableItem(table, SWT.NONE); > item.setText("Item: " + i); > } > table.setSelection(0); > shell.open(); > while (!shell.isDisposed()) { > if (!display.readAndDispatch()) { > display.sleep(); > } > } > display.dispose(); > } >}
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 410427
: 244329