01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.preferences;
11:
12: import org.eclipse.jface.action.Action;
13: import org.eclipse.ui.internal.WorkbenchMessages;
14:
15: /**
16: * The ViewPreferencesAction is the action for opening
17: * a view preferences dialog on a class.
18: *
19: * @since 3.1
20: */
21: public abstract class ViewPreferencesAction extends Action {
22:
23: /**
24: * Create a new instance of the receiver.
25: */
26: public ViewPreferencesAction() {
27: super (WorkbenchMessages.OpenPreferences_text);
28: }
29:
30: /* (non-Javadoc)
31: * @see org.eclipse.jface.action.Action#run()
32: */
33: public void run() {
34: openViewPreferencesDialog();
35: }
36:
37: /**
38: * Open a view preferences dialog for the receiver.
39: */
40: public abstract void openViewPreferencesDialog();
41:
42: }
|