us.ihmc.simulationconstructionset.gui.actions.SelectGUIConfigFromFileAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simulation-construction-set
Show all versions of simulation-construction-set
Simulation Construction Set
package us.ihmc.simulationconstructionset.gui.actions;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import us.ihmc.simulationconstructionset.commands.SelectGUIConfigFromFileCommandExecutor;
public class SelectGUIConfigFromFileAction extends AbstractAction
{
private static final long serialVersionUID = -8579530834957317679L;
private final String fullPath;
private final SelectGUIConfigFromFileCommandExecutor executor;
public SelectGUIConfigFromFileAction(String fullPath, String name, SelectGUIConfigFromFileCommandExecutor executor)
{
super(name);
this.fullPath = fullPath;
this.executor = executor;
}
@Override
public void actionPerformed(ActionEvent actionEvent)
{
executor.selectGUIConfigFromFile(fullPath);
}
}