[229193] Show in menu should open views
diff --git a/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/view/servers/ShowInConsoleAction.java b/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/view/servers/ShowInConsoleAction.java
index 7e37e90..5b0bf53 100644
--- a/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/view/servers/ShowInConsoleAction.java
+++ b/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/view/servers/ShowInConsoleAction.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others.
+ * Copyright (c) 2007, 2008 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -16,6 +16,7 @@
 import org.eclipse.ui.IWorkbenchPage;
 import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.console.ConsolePlugin;
 import org.eclipse.ui.console.IConsole;
@@ -78,6 +79,13 @@
 			IWorkbenchPage page = window.getActivePage();
 			if (page != null) {
 				IWorkbenchPart part = page.findView(IConsoleConstants.ID_CONSOLE_VIEW);
+				if (part == null) {
+					try {
+						part = page.showView(IConsoleConstants.ID_CONSOLE_VIEW);
+					} catch (PartInitException e) {
+						Trace.trace(Trace.SEVERE, "Could not open console view");
+					}
+				}
 				if (part != null) {
 					IConsoleView view = (IConsoleView) part.getAdapter(IConsoleView.class);
 					if (view != null) {
diff --git a/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/view/servers/ShowInDebugAction.java b/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/view/servers/ShowInDebugAction.java
index 4a87044..a542cb5 100644
--- a/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/view/servers/ShowInDebugAction.java
+++ b/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/view/servers/ShowInDebugAction.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others.
+ * Copyright (c) 2007, 2008 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -20,6 +20,7 @@
 import org.eclipse.ui.IWorkbenchPage;
 import org.eclipse.ui.IWorkbenchPart;
 import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PartInitException;
 import org.eclipse.ui.PlatformUI;
 import org.eclipse.ui.views.IViewDescriptor;
 import org.eclipse.ui.views.IViewRegistry;
@@ -62,6 +63,13 @@
 			IWorkbenchPage page = window.getActivePage();
 			if (page != null) {
 				IWorkbenchPart part = page.findView(IDebugUIConstants.ID_DEBUG_VIEW);
+				if (part == null) {
+					try {
+						part = page.showView(IDebugUIConstants.ID_DEBUG_VIEW);
+					} catch (PartInitException e) {
+						Trace.trace(Trace.SEVERE, "Could not open debug view");
+					}
+				}
 				if (part != null) {
 					IDebugView view = (IDebugView)part.getAdapter(IDebugView.class);
 					if (view != null) {