KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > actions > ViewManagementAction


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.debug.internal.ui.actions;
12
13 import org.eclipse.debug.internal.ui.SWTFactory;
14 import org.eclipse.jface.action.IAction;
15 import org.eclipse.ui.IViewActionDelegate;
16 import org.eclipse.ui.IViewPart;
17 import org.eclipse.ui.actions.ActionDelegate;
18
19 /**
20  * An action which opens the view management preference page.
21  */

22 public class ViewManagementAction extends ActionDelegate implements IViewActionDelegate {
23     
24     /* (non-Javadoc)
25      * @see org.eclipse.ui.IActionDelegate#run(org.eclipse.jface.action.IAction)
26      */

27     public void run(IAction action) {
28         SWTFactory.showPreferencePage("org.eclipse.debug.ui.ViewManagementPreferencePage"); //$NON-NLS-1$
29
}
30
31     /* (non-Javadoc)
32      * @see org.eclipse.ui.IViewActionDelegate#init(org.eclipse.ui.IViewPart)
33      */

34     public void init(IViewPart view) {
35     }
36 }
37
Popular Tags