Newer
Older
AlgebraicDataflowArchitectureModel / AlgebraicDataflowArchitectureModel / src / application / actions / AbstractPopupAction.java
Shohei Yamagiwa 17 days ago 710 bytes Add control flow modeling implementation for now
package application.actions;

import com.mxgraph.model.mxCell;
import com.mxgraph.swing.mxGraphComponent;

import javax.swing.*;
import java.awt.event.ActionEvent;

public abstract class AbstractPopupAction extends AbstractAction {
	protected mxGraphComponent graphComponent = null;
	protected mxCell targetCell = null;
	
	public AbstractPopupAction(final String propName, final mxCell targetCell, final mxGraphComponent graphComponent) {
		super(propName);
		this.graphComponent = graphComponent;
		this.targetCell = targetCell;
	}
	
	public void updateTargetCell(final mxCell targetCell) {
		this.targetCell = targetCell;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO: Logging
	}
}