Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Moffatt2013-04-05 17:49:25 +0000
committerEric Moffatt2013-04-05 17:49:25 +0000
commitf5392cb888caa6b0e52155bca9bb6fd01c29c01c (patch)
tree60607f5f08348f472c516854ea65a1f9efb10b42
parent79af43ff4a53deab4d0568cea065d311993fac32 (diff)
downloadeclipse.platform.ui-f5392cb888caa6b0e52155bca9bb6fd01c29c01c.tar.gz
eclipse.platform.ui-f5392cb888caa6b0e52155bca9bb6fd01c29c01c.tar.xz
eclipse.platform.ui-f5392cb888caa6b0e52155bca9bb6fd01c29c01c.zip
Fix (1) for Bug 401709 - Secondary Problems view doesn't have a view
menu -> not configurable (multiple views)
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
index e65956ff100..a4f35d7d44f 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
@@ -1895,7 +1895,12 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
*/
public IViewReference findViewReference(String viewId, String secondaryId) {
for (IViewReference reference : getViewReferences()) {
- if (viewId.equals(reference.getId())) {
+ // If the id contains a ':' use the part before it as the descriptor
+ // id
+ int colonIndex = reference.getId().indexOf(':');
+ String descId = colonIndex == -1 ? viewId : viewId.substring(0, colonIndex);
+
+ if (viewId.equals(descId)) {
String refSecondaryId = reference.getSecondaryId();
if (refSecondaryId == null) {
if (secondaryId == null) {

Back to the top