Esempio n. 1
0
 @Override
 public JComponent getView() {
   try {
     FileDirectoryHandler.open(getFile());
   } catch (Exception e) {
     Log.Debug(e);
   }
   return null;
 }
Esempio n. 2
0
 /**
  * Fetches the physical file from db
  *
  * @return
  */
 public synchronized File getFile() {
   if (file == null) {
     try {
       file =
           QueryHandler.instanceOf()
               .clone(Context.getFiles())
               .retrieveFile(filename, new File(FileDirectoryHandler.getTempDir() + getCname()));
     } catch (Exception e) {
       Log.Debug(e);
     }
   }
   return file;
 }
 protected boolean hasData() {
   File x = new File(FileDirectoryHandler.getTempDir() + saveFile);
   return x.exists() && x.canWrite() && x.canRead();
 }