Ejemplo n.º 1
0
 /** Save a Drawing in a file */
 protected void saveDrawing(StorageFormat storeFormat, String file) {
   // Need a better alert than this.
   if (view() == null) {
     return;
   }
   try {
     String name = storeFormat.store(file, view().drawing());
     view().drawing().setTitle(name);
     setDrawingTitle(name);
   } catch (IOException e) {
     showStatus(e.toString());
   }
 }