/** * Get the document associated with this cookie. It is an instance of Swing's {@link * StyledDocument} but it should also understand the NetBeans {@link NbDocument#GUARDED} to * prevent certain lines from being edited by the user. * * <p>If the document is not loaded the method blocks until it is. * * @return the styled document for this cookie that understands the guarded attribute * @exception IOException if the document could not be loaded */ public StyledDocument openDocument() throws IOException { return del.openDocument(); }