|
|
@ -35,7 +35,7 @@ public class FileSearchManager implements AlphaFineSearchProvider { |
|
|
|
private static final String DS_NAME = "dsname=\""; |
|
|
|
private static final String DS_NAME = "dsname=\""; |
|
|
|
private static final String FRM_PREFIX = "k:frm "; |
|
|
|
private static final String FRM_PREFIX = "k:frm "; |
|
|
|
private static final String CPT_PREFIX = "k:cpt "; |
|
|
|
private static final String CPT_PREFIX = "k:cpt "; |
|
|
|
private static FileSearchManager fileSearchManager = null; |
|
|
|
private static FileSearchManager fileSearchManager; |
|
|
|
private SearchResult filterModelList; |
|
|
|
private SearchResult filterModelList; |
|
|
|
private SearchResult lessModelList; |
|
|
|
private SearchResult lessModelList; |
|
|
|
private SearchResult moreModelList; |
|
|
|
private SearchResult moreModelList; |
|
|
@ -47,15 +47,17 @@ public class FileSearchManager implements AlphaFineSearchProvider { |
|
|
|
private boolean isContainCpt = true; |
|
|
|
private boolean isContainCpt = true; |
|
|
|
private boolean isContainFrm = true; |
|
|
|
private boolean isContainFrm = true; |
|
|
|
|
|
|
|
|
|
|
|
public synchronized static FileSearchManager getInstance() { |
|
|
|
public static FileSearchManager getInstance() { |
|
|
|
init(); |
|
|
|
synchronized (FileSearchManager.class) { |
|
|
|
|
|
|
|
if (fileSearchManager == null) { |
|
|
|
|
|
|
|
fileSearchManager = new FileSearchManager(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return fileSearchManager; |
|
|
|
return fileSearchManager; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public synchronized static void init() { |
|
|
|
public synchronized static void init() { |
|
|
|
if (fileSearchManager == null) { |
|
|
|
|
|
|
|
fileSearchManager = new FileSearchManager(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|