Revision 1641

tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/MemCqiClient.java (revision 1641)
371 371

  
372 372
	@Override
373 373
	public void dropCorpus(String arg0) throws Exception {
374
		Log.finest(NLS.bind("Deleting corpus {0}...", arg0)); //$NON-NLS-1$
374
		Log.finest(NLS.bind("Droping corpus {0}...", arg0)); //$NON-NLS-1$
375 375
		
376 376
		Boolean ret = server.dropCorpus(arg0);
377 377
		if(ret == null || !ret) {
......
381 381

  
382 382
	@Override
383 383
	public void dropSubCorpus(String arg0) throws IOException, UnexpectedAnswerException, CqiServerError {
384
		Log.finest(NLS.bind(SearchEngineCoreMessages.deletingSubcorpusP0, arg0));
384
		Log.finest(NLS.bind("Droping subcorpus {0}...", arg0)); //$NON-NLS-1$
385 385

  
386 386
		Boolean ret = server.dropSubCorpus(arg0);
387 387
		if (ret == null || !ret) {
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/MemCqiServer.java (revision 1641)
37 37
import java.util.ArrayList;
38 38
import java.util.Arrays;
39 39

  
40
import org.apache.commons.lang.ArrayUtils;
41 40
import org.apache.commons.lang.StringUtils;
42
import org.txm.core.preferences.TXMPreferences;
43 41
import org.txm.libs.cqp.CQPLibPreferences;
44 42
import org.txm.searchengine.cqp.clientExceptions.ServerNotFoundException;
45 43
import org.txm.searchengine.cqp.clientExceptions.UnexpectedAnswerException;
......
166 164
			Field LIBRARIES = ClassLoader.class.getDeclaredField("loadedLibraryNames"); //$NON-NLS-1$
167 165
			LIBRARIES.setAccessible(true);
168 166

  
167
			// FIXME: Debug
168
			System.err.println(">>>>>>>>>>>>>>>>>>>> MemCqiServer.start() " + this.getClass().getClassLoader());
169
			
169 170
			try {
170 171

  
171 172
				String cqplibpath = CQPLibPreferences.getInstance().getString(CQPLibPreferences.CQI_SERVER_PATH_TO_CQPLIB);
tmp/org.txm.core/src/java/org/txm/objects/Project.java (revision 1641)
55 55
import org.osgi.service.prefs.BackingStoreException;
56 56
import org.osgi.service.prefs.Preferences;
57 57
import org.txm.Toolbox;
58
import org.txm.core.engines.EngineType;
58 59
import org.txm.core.engines.ImportEngine;
59 60
import org.txm.core.engines.ImportEngines;
60 61
import org.txm.core.messages.TXMCoreMessages;
......
911 912
	public void clean() {
912 913
		if (rcpProject != null) {
913 914
			try {
915
				Toolbox.getEngineManager(EngineType.SEARCH).getEngine("CQP").stop(); //$NON-NLS-1$
916
				
914 917
				rcpProject.delete(true, new LogMonitor("Cleaning "+this));
915
			} catch (CoreException e) {
918
				
919
				
920
				Toolbox.getEngineManager(EngineType.SEARCH).getEngine("CQP").start(null); //$NON-NLS-1$
921
				
922
			} catch (Exception e) {
916 923
				// TODO Auto-generated catch block
917 924
				e.printStackTrace();
918 925
			}
926
			
927
			
928
			
919 929
		}
920 930

  
921 931
		Toolbox.notifyEngines(this, "clean");

Also available in: Unified diff