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

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

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

import application.ApplicationLanguage;
import application.ApplicationWindow;
import application.editor.Editor;

public abstract class AbstractSystemAction extends AbstractAction {

	protected ApplicationWindow frame;

	public AbstractSystemAction(String propName, ApplicationWindow frame) {
		super(ApplicationLanguage.getInstance().getOptionByPropName(propName));
		this.frame = frame;
	}

	public void setFrame(ApplicationWindow frame) {
		this.frame = frame;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		ApplicationWindow.logger.log(Level.INFO, (String) getValue(Action.NAME));
	}
}