Révision 1653
tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/workspace/LoadBinaryCorpus.java (revision 1653) | ||
---|---|---|
152 | 152 |
return false; |
153 | 153 |
} |
154 | 154 |
|
155 |
try { |
|
156 |
SearchEnginesManager.getCQPSearchEngine().stop(); |
|
157 |
} catch (Exception e1) { |
|
158 |
// TODO Auto-generated catch block |
|
159 |
e1.printStackTrace(); |
|
160 |
} |
|
155 |
// try {
|
|
156 |
// SearchEnginesManager.getCQPSearchEngine().stop();
|
|
157 |
// } catch (Exception e1) {
|
|
158 |
// // TODO Auto-generated catch block
|
|
159 |
// e1.printStackTrace();
|
|
160 |
// }
|
|
161 | 161 |
|
162 | 162 |
//build binary dir path |
163 | 163 |
String basedirname = Zip.getRoot(zipFile).toUpperCase(); |
... | ... | |
187 | 187 |
} |
188 | 188 |
|
189 | 189 |
if (corpusdir.exists()) { |
190 |
System.out.println("Error: previous binary corpus directory was not deleted: "+corpusdir); |
|
191 |
try { |
|
192 |
SearchEnginesManager.getCQPSearchEngine().start(null); |
|
193 |
} catch (Exception e) { |
|
194 |
// TODO Auto-generated catch block |
|
195 |
e.printStackTrace(); |
|
196 |
} |
|
190 |
// System.out.println("Error: previous binary corpus directory was not deleted: "+corpusdir);
|
|
191 |
// try {
|
|
192 |
// SearchEnginesManager.getCQPSearchEngine().start(null);
|
|
193 |
// } catch (Exception e) {
|
|
194 |
// // TODO Auto-generated catch block
|
|
195 |
// e.printStackTrace();
|
|
196 |
// }
|
|
197 | 197 |
return false; |
198 | 198 |
} |
199 | 199 |
} else { |
200 |
try { |
|
201 |
SearchEnginesManager.getCQPSearchEngine().start(null); |
|
202 |
} catch (Exception e) { |
|
203 |
// TODO Auto-generated catch block |
|
204 |
e.printStackTrace(); |
|
205 |
} |
|
200 |
// try {
|
|
201 |
// SearchEnginesManager.getCQPSearchEngine().start(null);
|
|
202 |
// } catch (Exception e) {
|
|
203 |
// // TODO Auto-generated catch block
|
|
204 |
// e.printStackTrace();
|
|
205 |
// }
|
|
206 | 206 |
return false; // abandon |
207 | 207 |
} |
208 | 208 |
} |
... | ... | |
219 | 219 |
@Override |
220 | 220 |
public void run() { |
221 | 221 |
|
222 |
try { |
|
223 |
SearchEnginesManager.getCQPSearchEngine().start(); |
|
224 |
} catch (Exception e) { |
|
225 |
e.printStackTrace(); |
|
226 |
} |
|
222 |
// try {
|
|
223 |
// SearchEnginesManager.getCQPSearchEngine().start();
|
|
224 |
// } catch (Exception e) {
|
|
225 |
// e.printStackTrace();
|
|
226 |
// }
|
|
227 | 227 |
|
228 | 228 |
if (newProject2 != null) { |
229 | 229 |
newProject2.compute(); |
Formats disponibles : Unified diff