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 1788 Details for
Bug 22142
[Coolbar] Reset Perspective and original order bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
code snippet
22142.txt (text/plain), 992 bytes, created by
Lynne Kues
on 2002-08-03 11:56:01 EDT
(
hide
)
Description:
code snippet
Filename:
MIME Type:
Creator:
Lynne Kues
Created:
2002-08-03 11:56:01 EDT
Size:
992 bytes
patch
obsolete
> if (layout == null) { > coolBar.setRedraw(false); > CoolItem[] coolItems = coolBar.getItems(); > int[] newItemOrder = new int[coolItems.length]; > // Reset the coolitem order to their original order. This order is > // based on the order of the ContributionItems. Note that the only > // way to reset item order is to setItemLayout (no setItemOrder API). > IContributionItem[] items = getItems(); > int j = 0; > int[] oldItemOrder = coolBar.getItemOrder(); > for (int i = 0; i < items.length; i++) { > CoolBarContributionItem item = (CoolBarContributionItem)items[i]; > CoolItem coolItem = findCoolItem(item); > if (coolItem != null) { > int visualIndex = coolBar.indexOf(coolItem); > int creationIndex = oldItemOrder[visualIndex]; > newItemOrder[j] = creationIndex; > j++; > } > } > coolBar.setItemLayout(newItemOrder, coolBar.getWrapIndices(), coolBar.getItemSizes()); > redoLayout(); > coolBar.setRedraw(true); > return; > }
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 22142
: 1788