Example #1
0
 /**
  * Invoke the save operation.
  *
  * @throws IOException if the object could not be saved
  */
 public void save() throws java.io.IOException {
   // Do not use findCloneableOpenSupport; it will not work if the
   // DataObject has both an EditorSupport and an OpenSupport attached
   // at once.
   EditorSupport es = (EditorSupport) getDataObject().getCookie(EditorSupport.class);
   if (es == null) throw new IOException("no EditorSupport found on this data object"); // NOI18N
   else es.saveDocument();
 }