package application.actions; import java.awt.event.ActionEvent; import java.util.logging.Level; import javax.swing.AbstractAction; import javax.swing.Action; import com.mxgraph.model.mxCell; import com.mxgraph.swing.mxGraphComponent; import application.ApplicationLanguage; import application.ApplicationWindow; 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(ApplicationLanguage.getInstance().getOptionByPropName(propName)); this.graphComponent = graphComponent; this.targetCell = targetCell; } public void updateTargetCell(final mxCell targetCell) { this.targetCell = targetCell; } @Override public void actionPerformed(ActionEvent e) { ApplicationWindow.logger.log(Level.INFO, (String) getValue(Action.NAME)); } }