diff options
author | Curtis D'Entremont | 2007-02-06 19:17:19 +0000 |
---|---|---|
committer | Curtis D'Entremont | 2007-02-06 19:17:19 +0000 |
commit | 5982e397bcbd9affa219486ac85c5226a1c83557 (patch) | |
tree | 4907684076af702e7c44fc083488ad107118b356 | |
parent | c498d849ef69feb77bd640661df662097885b7d3 (diff) | |
download | eclipse.platform.ua-5982e397bcbd9affa219486ac85c5226a1c83557.tar.gz eclipse.platform.ua-5982e397bcbd9affa219486ac85c5226a1c83557.tar.xz eclipse.platform.ua-5982e397bcbd9affa219486ac85c5226a1c83557.zip |
API adjustments based on feedback
-rw-r--r-- | org.eclipse.help/src/org/eclipse/help/internal/index/IndexManager.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.help/src/org/eclipse/help/internal/index/IndexManager.java b/org.eclipse.help/src/org/eclipse/help/internal/index/IndexManager.java index baad5e103..c428ef6f4 100644 --- a/org.eclipse.help/src/org/eclipse/help/internal/index/IndexManager.java +++ b/org.eclipse.help/src/org/eclipse/help/internal/index/IndexManager.java @@ -33,6 +33,7 @@ import org.eclipse.help.IIndex; import org.eclipse.help.IIndexContribution; import org.eclipse.help.internal.HelpData; import org.eclipse.help.internal.HelpPlugin; +import org.eclipse.help.internal.UAElementFactory; public class IndexManager { @@ -88,7 +89,12 @@ public class IndexManager { HelpPlugin.logError(msg); } else { - contributions.add(contrib[j]); + IndexContribution contribution = new IndexContribution(); + contribution.setId(contrib[j].getId()); + contribution.setLocale(contrib[j].getLocale()); + IIndex index = contrib[j].getIndex(); + contribution.setIndex(index instanceof Index ? (Index)index : (Index)UAElementFactory.newElement(index)); + contributions.add(contribution); } } } |