Package org.jmule.core.jkad.search

Examples of org.jmule.core.jkad.search.Search


  private KadTask lookupTaskToKadTask(LookupTask task) {
    KadTask kad_task = new KadTask();
    if (task.getRequestType() == RequestType.FIND_NODE) {
      kad_task.task_type = _._("mainwindow.kadtab.node_lookup");
     
      Search search = _jkad.getSearch();
      SearchTask search_task = search.getSearchTask(task.getTargetID());
      if (search_task==null) return null;
      kad_task.task_info = Utils.KadFileIDToFileName(search_task.getSearchID());
    }
    if (task.getRequestType() == RequestType.FIND_VALUE) {
      kad_task.task_type = _._("mainwindow.kadtab.keyword_search");
      Search search = _jkad.getSearch();
      SearchTask search_task = search.getSearchTask(task.getTargetID());
      if (search_task==null) return null;
      if (search_task instanceof NoteSearchTask) {
        //TODO : Add note
        return null;
      }
View Full Code Here

TOP

Related Classes of org.jmule.core.jkad.search.Search

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.