Newer
Older
AlgebraicDataflowArchitectureModel / AlgebraicDataflowArchitectureModel / src / application / actions / AbstractViewerAction.java
package application.actions;

import java.awt.event.ActionEvent;
import java.util.logging.Level;

import javax.swing.AbstractAction;
import javax.swing.Action;

import com.mxgraph.swing.mxGraphComponent;

import application.ApplicationLanguage;
import application.ApplicationWindow;

public abstract class AbstractViewerAction extends AbstractAction {

	protected mxGraphComponent graphComponent = null;

	public AbstractViewerAction(String propName, mxGraphComponent graphComponent) {
		super(ApplicationLanguage.getInstance().getOptionByPropName(propName));
		this.graphComponent = graphComponent;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		ApplicationWindow.logger.log(Level.INFO, (String) getValue(Action.NAME));
	}
}