diff --git a/designer-chart/src/main/java/com/fr/design/module/ChartPreStyleListPane.java b/designer-chart/src/main/java/com/fr/design/module/ChartPreStyleListPane.java index 906e11784..0c3f85b1b 100644 --- a/designer-chart/src/main/java/com/fr/design/module/ChartPreStyleListPane.java +++ b/designer-chart/src/main/java/com/fr/design/module/ChartPreStyleListPane.java @@ -9,19 +9,16 @@ import com.fr.design.gui.controlpane.JListControlPane; import com.fr.design.gui.controlpane.NameObjectCreator; import com.fr.design.gui.controlpane.NameableCreator; import com.fr.design.gui.controlpane.ShortCut4JControlPane; - import com.fr.design.gui.ilist.JNameEdList; -import com.fr.design.gui.ilist.ModNameActionListener; import com.fr.design.i18n.Toolkit; import com.fr.design.menu.ShortCut; import com.fr.general.ComparatorUtils; import com.fr.general.NameObject; import com.fr.stable.Nameable; import com.fr.stable.StringUtils; + import javax.swing.JOptionPane; import javax.swing.SwingUtilities; -import javax.swing.event.ListSelectionEvent; -import javax.swing.event.ListSelectionListener; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; @@ -34,12 +31,8 @@ import java.util.List; */ public class ChartPreStyleListPane extends JListControlPane { - ChartPreStyleManagerPane chartPreStyleManagerPane; - - public ChartPreStyleListPane(ChartPreStyleManagerPane chartPreStyleManagerPane) { + public ChartPreStyleListPane() { super(); - this.chartPreStyleManagerPane = chartPreStyleManagerPane; - initListener(); addModNameActionListener((int index, String oldName, String newName) -> { if (ComparatorUtils.equals(oldName, newName)) { return;