package smart_gs.swingui.toolbar.action;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;

import javax.swing.JDialog;

import smart_gs.drawing_tool.ImageLabel;
import smart_gs.logical.Region;
import smart_gs.logical.Spread;
import smart_gs.smleditor.swingui.GSEditorFrame;
import smart_gs.swingui.AbstractGSWindow;
import smart_gs.swingui.LineSegmentsEditingFrame;
import smart_gs.swingui.SearchDialog;

public class LineSegmentsActionListener implements ActionListener {

	private GSEditorFrame parent;
	public LineSegmentsActionListener (GSEditorFrame parent) {
		this.parent = parent;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		ImageLabel.setLineVisible(true);
		LineSegmentsEditingFrame editingFrame = LineSegmentsEditingFrame.getInstance((AbstractGSWindow)parent);
		editingFrame.setVisible(true);
	}
}

