blob: a81b5ab6b98c13e9aa276d98ad2c2a29c7758adf [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2006 IBM Corporation and others.
* 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.ui.preferences;
import org.eclipse.jface.action.Action;
import org.eclipse.ui.internal.WorkbenchMessages;
/**
* The ViewPreferencesAction is the action for opening
* a view preferences dialog on a class.
*
* @since 3.1
*/
public abstract class ViewPreferencesAction extends Action {
/**
* Create a new instance of the receiver.
*/
public ViewPreferencesAction() {
super(WorkbenchMessages.OpenPreferences_text);
}
/* (non-Javadoc)
* @see org.eclipse.jface.action.Action#run()
*/
public void run() {
openViewPreferencesDialog();
}
/**
* Open a view preferences dialog for the receiver.
*/
public abstract void openViewPreferencesDialog();
}