/** * Discard of any buffered contents. This must be called * when the local element is no longer needed but is dirty since a * the element will connect to a shared document when a merge viewer * flushes its contents to the element and it must be disconnected or the * buffer will remain. * #see {@link #isDirty()} */ public void discardBuffer() { if (sharedDocumentAdapter != null) sharedDocumentAdapter.releaseBuffer(); super.discardBuffer(); }
/** * Discard of any buffered contents. This must be called * when the local element is no longer needed but is dirty since a * the element will connect to a shared document when a merge viewer * flushes its contents to the element and it must be disconnected or the * buffer will remain. * #see {@link #isDirty()} */ @Override public void discardBuffer() { if (sharedDocumentAdapter != null) sharedDocumentAdapter.releaseBuffer(); super.discardBuffer(); }