import org.eclipse.ui.IViewReference;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
+import org.eclipse.ui.PartInitException;
import org.eclipse.ui.internal.Perspective;
import org.eclipse.ui.internal.WorkbenchPage;
import org.eclipse.ui.part.IShowInTarget;
if (ref != null) {
view = ref.getView(true);
}
+ if (view == null && forceDBGPreview) {
+ try {
+ view = persp.showView(BrowserView.ID_BROWSER, null);
+ persp.bringToTop(persp.findView(
+ BrowserView.ID_BROWSER, null));
+ } catch (PartInitException e) {
+ WebUI.log(e);
+ }
+ }
if (view != null) {
IShowInTarget target = getShowInTarget(view);
if (target != null && target.show(context)) {