KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > preferences > ViewPreferencesAction


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 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.ui.preferences;
12
13 import org.eclipse.jface.action.Action;
14 import org.eclipse.ui.internal.WorkbenchMessages;
15
16 /**
17  * The ViewPreferencesAction is the action for opening
18  * a view preferences dialog on a class.
19  *
20  * @since 3.1
21  */

22 public abstract class ViewPreferencesAction extends Action {
23
24     /**
25      * Create a new instance of the receiver.
26      */

27     public ViewPreferencesAction() {
28         super(WorkbenchMessages.OpenPreferences_text);
29     }
30     
31     /* (non-Javadoc)
32      * @see org.eclipse.jface.action.Action#run()
33      */

34     public void run() {
35         openViewPreferencesDialog();
36     }
37
38     /**
39      * Open a view preferences dialog for the receiver.
40      */

41     public abstract void openViewPreferencesDialog();
42
43 }
44
Popular Tags