blob: 7e79d49b0927d9876b68702d41b977ef5ffa11ac [file] [log] [blame]
/**********************************************************************
* Copyright (c) 2005,2010 IBM Corporation.
* 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ptp.pldt.common.util;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
/**
* @deprecated Replaced by the more properly spelled {@link ViewActivator}
*/
@Deprecated
public class ViewActivater
{
/**
* Activate the view identified by the view id.
*
* @param strViewId
*/
public static void activateView(String strViewId)
{
assert strViewId!=null;
IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
try {
page.showView(strViewId);
} catch (PartInitException e) {
e.printStackTrace();
}
// page.activate(page.findView(strViewId));
}
}