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 105827 Details for
Bug 228022
[CommonNavigator] Allow content providers to explicitly specify their ordering
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.
[patch]
simple priority sort patch
priority.patch (text/plain), 1.42 KB, created by
Xiang Qinxian
on 2008-06-25 14:20:39 EDT
(
hide
)
Description:
simple priority sort patch
Filename:
MIME Type:
Creator:
Xiang Qinxian
Created:
2008-06-25 14:20:39 EDT
Size:
1.42 KB
patch
obsolete
>Index: src/org/eclipse/ui/internal/navigator/actions/CommonActionDescriptorManager.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/actions/CommonActionDescriptorManager.java,v >retrieving revision 1.10 >diff -u -r1.10 CommonActionDescriptorManager.java >--- src/org/eclipse/ui/internal/navigator/actions/CommonActionDescriptorManager.java 18 Sep 2006 05:46:36 -0000 1.10 >+++ src/org/eclipse/ui/internal/navigator/actions/CommonActionDescriptorManager.java 25 Jun 2008 18:15:28 -0000 >@@ -11,6 +11,7 @@ > package org.eclipse.ui.internal.navigator.actions; > > import java.util.ArrayList; >+import java.util.Arrays; > import java.util.Collection; > import java.util.HashSet; > import java.util.Iterator; >@@ -92,6 +93,14 @@ > * > */ > protected void computeOrdering() { >+ Object[] providerDescriptors=rootDescriptors.values().toArray(); >+ Arrays.sort(providerDescriptors, CommonActionProviderDescriptor.CommonActionProviderDescriptorCompator.INSTANCE); >+ rootDescriptors.clear(); >+ int length = providerDescriptors.length; >+ for (int i = 0; i < length; i++) { >+ Object object = providerDescriptors[i]; >+ rootDescriptors.put(((CommonActionProviderDescriptor)object).getDefinedId(), object); >+ } > CommonActionProviderDescriptor dependentDescriptor; > CommonActionProviderDescriptor requiredDescriptor; >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228022
:
105827
|
133258
|
161171
|
161238