Package edu.pitt.terminology.client

Examples of edu.pitt.terminology.client.IndexFinderRepository


    }
  }
 
  private Terminology [] getTerminologies() {
    if(repository == null)
      repository =  new IndexFinderRepository();
    Terminology [] terms =  repository.getTerminologies();
    Arrays.sort(terms,new Comparator<Terminology>() {
      public int compare(Terminology o1, Terminology o2) {
        return o1.getName().compareTo(o2.getName());
      }
View Full Code Here


      public void run(){
        try{
          URL url = new URL(DEFAULT_TERMINOLOGY_DOWNLOAD);
          InputStream is = url.openStream();
          unzip(is,IndexFinderTerminology.getPersistenceDirectory());
          repository =  new IndexFinderRepository();
          SwingUtilities.invokeLater(new Runnable() {
            public void run() {
              DefaultComboBoxModel<Terminology> model = new DefaultComboBoxModel<Terminology>();
              for(Terminology t: repository.getTerminologies()){
                model.addElement(t);
View Full Code Here

 
  /**
   * @param args
   */
  public static void main(String[] args) throws Exception {
    TerminologyExporter importer = new TerminologyExporter(new IndexFinderRepository());
    JDialog d = importer.showExportWizard(null);
   
  }
View Full Code Here

  public static void main(String[] args) {
    RepositoryManager manager = new RepositoryManager();
    manager.getFrame().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //NobleCoderTerminology.setPersistenceDirectory(new File("/home/tseytlin/Data/Terminologies/IndexFinder"));
    //NobleCoderTerminology.setCachingEnabled(false);
    manager.start(new IndexFinderRepository());

  }
View Full Code Here

TOP

Related Classes of edu.pitt.terminology.client.IndexFinderRepository

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.