us.ihmc.simulationconstructionset.gui.actions.PackBufferAction 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 java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import us.ihmc.simulationconstructionset.commands.PackBufferCommandExecutor;
public class PackBufferAction extends AbstractAction
{
private static final long serialVersionUID = 3740016405361627977L;
private PackBufferCommandExecutor executor;
public PackBufferAction(PackBufferCommandExecutor executor)
{
super("Pack Buffer to In/Out");
this.executor = executor;
putValue(Action.MNEMONIC_KEY, new Integer(KeyEvent.VK_C));
putValue(Action.LONG_DESCRIPTION, "Long Description");
putValue(Action.SHORT_DESCRIPTION, "Short Description");
}
@Override
public void actionPerformed(ActionEvent e)
{
executor.packBuffer();
}
}