blob: 9b352a4634395833f3728cb044b8f6260ad81928 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.ui.internal.dialogs;
import org.eclipse.jface.resource.ImageDescriptor;
/**
* A fake view action set.
*/
public class FakeWizardActionSet extends FakeActionSetDescriptor {
/**
* Constructs a new action set.
*/
public FakeWizardActionSet(WorkbenchWizardElement desc) {
super(desc.getID(), desc);
}
/**
* Returns the action image descriptor.
*/
protected ImageDescriptor getActionImageDescriptor() {
return getWizard().getImageDescriptor();
}
/**
* Returns the action text.
*/
protected String getActionLabel() {
WorkbenchWizardElement wizard = getWizard();
return wizard.getLabel(wizard);
}
/**
* Returns the descriptor
*/
public WorkbenchWizardElement getWizard() {
return (WorkbenchWizardElement)getData();
}
}