blob: bfb4691a942e03f9692d48348358a2a9349e70a8 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2005, 2008 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:
* Kentarou FUKUDA - initial API and implementation
*******************************************************************************/
package org.eclipse.actf.visualization.lowvision.ui.actions;
import org.eclipse.actf.util.ui.Messages;
import org.eclipse.actf.visualization.lowvision.LowVisionVizPlugin;
import org.eclipse.actf.visualization.lowvision.ui.internal.PartControlLowVision;
import org.eclipse.jface.action.Action;
public class LowVisionSaveAction extends Action {
private PartControlLowVision lowVisionCtrl;
public LowVisionSaveAction(PartControlLowVision lowVisionCtrl) {
setToolTipText(Messages.getString("Tooltip.Save")); //$NON-NLS-1$
setImageDescriptor(LowVisionVizPlugin.imageDescriptorFromPlugin(LowVisionVizPlugin.PLUGIN_ID, "icons/ButtonSave.png"));
setText(Messages.getString("MenuConst.Save")); //$NON-NLS-1$
this.lowVisionCtrl = lowVisionCtrl;
}
public void run() {
lowVisionCtrl.saveReport();
}
}