Quit
From NOA Documentation Wiki
IDocument document=officeApplication.getDocumentService().loadDocument(officeFrame,this.url, descriptor);
textDocument=(ITextDocument) document;
frame.validate();
if(officeFrame == null) {
officeFrame = document.getFrame();
}
// Now it is time to disable two commands in the frame
officeFrame.disableDispatch(GlobalCommands.CLOSE_DOCUMENT);
officeFrame.disableDispatch(GlobalCommands.QUIT_APPLICATION);
officeFrame.updateDispatches();

