Bug 9556 Welcome Tab > Opens as a view in the Carbide perspective rather than a maximized tab
authorSteve Sobek <steve.sobek@nokia.com>
Tue, 11 Aug 2009 12:09:14 -0500
changeset 408 019f4256a973
parent 407 23f0709213fb
child 409 2bdd901b072d
Bug 9556 Welcome Tab > Opens as a view in the Carbide perspective rather than a maximized tab
project/com.nokia.carbide.cpp.project.core/src/com/nokia/carbide/cpp/internal/project/core/updater/UpdateTrigger.java
--- a/project/com.nokia.carbide.cpp.project.core/src/com/nokia/carbide/cpp/internal/project/core/updater/UpdateTrigger.java	Tue Aug 11 12:02:39 2009 -0500
+++ b/project/com.nokia.carbide.cpp.project.core/src/com/nokia/carbide/cpp/internal/project/core/updater/UpdateTrigger.java	Tue Aug 11 12:09:14 2009 -0500
@@ -34,24 +34,6 @@
 	// use the version of Carbide updating to as the trigger property
 	private static final String TRIGGER_PROPERTY = "1.2.0"; //$NON-NLS-1$
 	private static final String SYMBIAN_PERSPECTIVE_ID = "com.symbian.cdt.SymbianPerspective"; //$NON-NLS-1$
-	private static final String PROBLEM_VIEW_ID = "org.eclipse.ui.views.ProblemView"; //$NON-NLS-1$
-
-	private void resetProblemView() {
-		// Evidently, hiding and then reshowing the ProblemView seems to fix up the columns
-		IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
-		if (window != null) {
-			IWorkbenchPage page = window.getActivePage();
-			IViewPart part = page.findView(PROBLEM_VIEW_ID);
-			if (part != null) {
-				page.hideView(part);
-				
-				try {
-					page.showView(PROBLEM_VIEW_ID);
-				} catch (PartInitException e) {
-				}
-			}
-		}
-	}
 
 	@Override
 	protected String getLocalKey() {
@@ -89,7 +71,6 @@
 						break;
 					}
 				}
-				resetProblemView();
 			}
 		});
 	}