Steps to extract an IMouseListener (as requested in #475):
- Add an interface
IMouseListener with all the relevant methods from MouseListener
- Add an
IMouseListener entry on TYPES (or reuse or replace the existing MouseListener one)
- Update
MouseTool
- either additionally inject
TYPES.IMouseListener or update the existing TYPES.MouseListener (depending on the chosen option from 2.)
- Replace
MouseListener by IMouseListener basically everywhere in this class
I personally would probably chose the "replace TYPES.MouseListener" option on the next major release, as this is imho the cleanest one
Steps to extract an
IMouseListener(as requested in #475):IMouseListenerwith all the relevant methods fromMouseListenerIMouseListenerentry onTYPES(or reuse or replace the existingMouseListenerone)MouseToolTYPES.IMouseListeneror update the existingTYPES.MouseListener(depending on the chosen option from 2.)MouseListenerbyIMouseListenerbasically everywhere in this classI personally would probably chose the "replace
TYPES.MouseListener" option on the next major release, as this is imho the cleanest one