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

import java.awt.event.ActionEvent;

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

public class SaveAction extends AbstractSystemAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5660460585305281982L;

	public SaveAction(ApplicationWindow frame) {
		super(/*propName*/"save", frame);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		super.actionPerformed(e);
		Editor editor = frame.getEditor();
		if (editor != null && editor.getCurFileName() != null) {
			editor.save();
		}
	}

}