/FileExtraction/Java_unseen/rubato-composer_rubato-composer/java/src/org/rubato/rubettes/bigbang/view/controller/general/InsertOperationAction.java
package org.rubato.rubettes.bigbang.view.controller.general;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import org.rubato.rubettes.bigbang.controller.BigBangController;
import org.rubato.rubettes.bigbang.model.graph.CompositionState;

public class InsertOperationAction extends AbstractAction {

	BigBangController controller;
	CompositionState compositionState;
	
	public InsertOperationAction(BigBangController controller, CompositionState compositionState) {
		this.controller = controller;
		this.compositionState = compositionState;
	}
	
	public void actionPerformed(ActionEvent event) {
		this.controller.insertOperation(this.compositionState.getIndex());
	}

}
