getListener().run();
try { getListener().run();
try { getListener().run();
private StyledDocument openDocumentCheckIOE() throws IOException { StyledDocument doc = openDocumentImpl(); IOException ioe = getListener().checkLoadException(); if (ioe != null) { throw ioe; } return doc; }
/** Accessor to the <code>Listener</code> instance, lazy created on demand. * The instance serves as a listener on document, environment * and also provides document initialization task for this support. * @see Listener */ private Listener getListener () { // Should not need to lock; it is always first // called within a synchronized(getLock()) block anyway. if(listener == null) { listener = new Listener(); } return listener; }
/** Resets listening on <code>UndoRedo</code>, * and in case next undo edit comes, schedules processesing of it. * Used to revert modification e.g. of document of [read-only] env. */ private void revertUpcomingUndo() { Listener l = getListener(); l.setUndoTask(createUndoTask()); UndoRedo ur = getUndoRedo(); ur.removeChangeListener(l); ur.addChangeListener(l); }
/** Resets listening on <code>UndoRedo</code>, * and in case next undo edit comes, schedules processesing of it. * Used to revert modification e.g. of document of [read-only] env. */ private void revertUpcomingUndo() { Listener l = getListener(); l.setUndoTask(createUndoTask()); UndoRedo ur = getUndoRedo(); ur.removeChangeListener(l); ur.addChangeListener(l); }
private StyledDocument openDocumentCheckIOE() throws IOException { StyledDocument doc = openDocumentImpl(); IOException ioe = getListener().checkLoadException(); if (ioe != null) { throw ioe; } return doc; }
private StyledDocument openDocumentCheckIOE() throws IOException { StyledDocument locDoc = openDocumentImpl(); IOException ioe = getListener().checkLoadException(); if (ioe != null) { throw ioe; } return locDoc; }
/** Accessor to the <code>Listener</code> instance, lazy created on demand. * The instance serves as a listener on document, environment * and also provides document initialization task for this support. * @see Listener */ private Listener getListener () { // Should not need to lock; it is always first // called within a synchronized(getLock()) block anyway. if(listener == null) { listener = new Listener(); } return listener; }
/** Accessor to the <code>Listener</code> instance, lazy created on demand. * The instance serves as a listener on document, environment * and also provides document initialization task for this support. * @see Listener */ private Listener getListener() { // Should not need to lock; it is always first // called within a synchronized(getLock()) block anyway. if (listener == null) { listener = new Listener(); } return listener; }