Backing out of change for 16302
diff --git a/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Perspective.java b/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Perspective.java
index 08e5707..663cb55 100644
--- a/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Perspective.java
+++ b/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Perspective.java
@@ -813,13 +813,14 @@
}
mapFastViewToWidthRatio.put(viewID, ratio);
- IViewReference ref = viewFactory.getView(viewID);
- if(ref == null) {
- WorkbenchPlugin.log("Could not create view: '" + viewID + "'."); //$NON-NLS-1$
- continue;
- }
- page.addPart(ref);
- fastViews.add(ref.getPart(true));
+ // Create and open the view.
+ try {
+ IViewReference ref = viewFactory.createView(viewID);
+ page.addPart(ref);
+ fastViews.add(ref.getPart(true));
+ } catch (PartInitException e) {
+ errors.add(e.getStatus());
+ }
}
}