|
|
@ -1149,10 +1149,9 @@ public abstract class JTemplate<T extends BaseBook, U extends BaseUndoState<?>> |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void addJTemplateActionListener(JTemplateActionListener l) { |
|
|
|
public void addJTemplateActionListener(JTemplateActionListener l) { |
|
|
|
List<Object> list = Arrays.asList(this.listenerList.getListeners(JTemplateActionListener.class)); |
|
|
|
List<Object> list = Arrays.asList(this.listenerList.getListeners(JTemplateActionListener.class)); |
|
|
|
if (list.contains(l)) { |
|
|
|
if (!list.contains(l)) { |
|
|
|
this.listenerList.remove(JTemplateActionListener.class, l); |
|
|
|
this.listenerList.add(JTemplateActionListener.class, l); |
|
|
|
} |
|
|
|
} |
|
|
|
this.listenerList.add(JTemplateActionListener.class, l); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|