Skip to main content
summaryrefslogtreecommitdiffstats
blob: f15b84790af1be72226b65ba7dc3b33fd2010228 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*******************************************************************************
 * Copyright (c) 2004, 2007 Boeing.
 * 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:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.ote.ui.mux.actions;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.osee.framework.ui.swt.Displays;
import org.eclipse.osee.ote.ui.mux.view.MuxView;
import org.eclipse.ui.PlatformUI;

public class OpenMuxViewAction extends Action {

	public OpenMuxViewAction() {
		super("Open Mux View");
	}

	@Override
	public void run() {
		try {
			PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView(MuxView.VIEW_ID);
		} catch (Exception e) {
			MessageDialog.openError(Displays.getActiveShell(), "Error", "got an exception");
		}
	}

}

Back to the top