Package net.sf.jabref.imports

Examples of net.sf.jabref.imports.ImportMenuItem$MyWorker


  private void setUpImportMenu(JMenu importMenu, boolean intoNew_) {
      final boolean intoNew = intoNew_;
      importMenu.removeAll();

      // Add a menu item for autodetecting import format:
      importMenu.add(new ImportMenuItem(JabRefFrame.this, intoNew));

      // Add custom importers
      importMenu.addSeparator();

      SortedSet<ImportFormat> customImporters = Globals.importFormatReader.getCustomImportFormats();
      JMenu submenu = new JMenu(Globals.lang("Custom importers"));
      submenu.setMnemonic(KeyEvent.VK_S);
     
      // Put in all formatters registered in ImportFormatReader:
        for (ImportFormat imFo : customImporters){
            submenu.add(new ImportMenuItem(JabRefFrame.this, intoNew, imFo));
        }
     
      if (customImporters.size() > 0)
          submenu.addSeparator();
     
      submenu.add(customImpAction);

      importMenu.add(submenu);
      importMenu.addSeparator();

      // Put in all formatters registered in ImportFormatReader:
      for (ImportFormat imFo : Globals.importFormatReader.getBuiltInInputFormats()){
          importMenu.add(new ImportMenuItem(JabRefFrame.this, intoNew, imFo));
      }
  }
View Full Code Here


    fw.write(dropStr);
    fw.close();

    // System.out.println("importing from " + tmpfile.getAbsolutePath());

    ImportMenuItem importer = new ImportMenuItem(frame, false);
    importer.automatedImport(new String[] { tmpfile.getAbsolutePath() });

    return true;
  }
View Full Code Here

      String[] toImport = new String[notBibFiles.size()];
      notBibFiles.toArray(toImport);

      // Import into new if entryTable==null, otherwise into current
      // database:
      ImportMenuItem importer = new ImportMenuItem(frame, (entryTable == null));
      importer.automatedImport(toImport);
    }
  }
View Full Code Here

    // System.out.println("Temp file: "+tmpfile.getAbsolutePath());

    new URLDownload(entryTable, dropLink, tmpfile).download();

    // Import into new if entryTable==null, otherwise into current database:
    ImportMenuItem importer = new ImportMenuItem(frame, (entryTable == null));
    importer.automatedImport(new String[] { tmpfile.getAbsolutePath() });

    return true;
  }
View Full Code Here

TOP

Related Classes of net.sf.jabref.imports.ImportMenuItem$MyWorker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.