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 268627 Details for
Bug 517414
Missing result TabFolder#getItem(Point)
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.
Possible solution
TabFolder.java (text/x-java), 1.24 KB, created by
Pavel Matveev
on 2017-05-30 06:05:17 EDT
(
hide
)
Description:
Possible solution
Filename:
MIME Type:
Creator:
Pavel Matveev
Created:
2017-05-30 06:05:17 EDT
Size:
1.24 KB
patch
obsolete
>public TabItem getItem(Point point) { > checkWidget(); > if (point == null) > error(SWT.ERROR_NULL_ARGUMENT); > long /*int*/ list = OS.gtk_container_get_children(handle); > if (list == 0) > return null; > int itemCount = OS.g_list_length(list); > OS.g_list_free(list); > int selectedIndex = getSelectionIndex(); > if (selectedIndex != -1) { > TabItem selectedItem = getItem(selectedIndex); > Rectangle selectedBounds = selectedItem.getBounds(); > if (selectedBounds.contains(point)) { > return selectedItem; > } > for (int i = selectedIndex + 1; i < itemCount; i++) { > TabItem item = getItem(i); > Rectangle itemBounds = item.getBounds(); > if (itemBounds.x < selectedBounds.x + selectedBounds.width) { > break; > } > if (itemBounds.contains(point)) { > return item; > } > } > for (int i = selectedIndex - 1; i >= 0; i--) { > TabItem item = getItem(i); > Rectangle itemBounds = item.getBounds(); > if (itemBounds.x + itemBounds.width > selectedBounds.x) { > break; > } > if (itemBounds.contains(point)) { > return item; > } > } > } else { > for (int i = 0; i < itemCount; i++) { > TabItem item = items[i]; > Rectangle rect = item.getBounds(); > if (rect.contains(point)) > return item; > } > } > > return null; >}
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 517414
:
268625
|
268626
| 268627