Révision 690
tmp/org.txm.tigersearch.rcp/META-INF/MANIFEST.MF (revision 690) | ||
---|---|---|
4 | 4 |
Bundle-SymbolicName: TIGERSearchRCP;singleton:=true |
5 | 5 |
Bundle-Version: 1.0.0.qualifier |
6 | 6 |
Bundle-Activator: tigersearch4txm.Activator |
7 |
Require-Bundle: org.txm.core;bundle-version="0.7.0", |
|
7 |
Require-Bundle: org.txm.rcp;bundle-version="0.7.8", |
|
8 |
org.txm.core;bundle-version="0.7.0", |
|
8 | 9 |
org.eclipse.ui, |
9 | 10 |
org.eclipse.core.runtime, |
10 | 11 |
org.eclipse.ui.editors;bundle-version="3.8.200", |
11 | 12 |
org.eclipse.swt, |
12 |
org.txm.rcp;bundle-version="0.7.8", |
|
13 | 13 |
org.txm.searchengine.core;bundle-version="1.0.0", |
14 | 14 |
org.txm.searchengine.cqp.core;bundle-version="1.1.0", |
15 | 15 |
org.txm.statsengine.core;bundle-version="1.0.0", |
... | ... | |
341 | 341 |
tigerAPI.tools, |
342 | 342 |
tigersearch4txm, |
343 | 343 |
tigersearch4txm.handlers |
344 |
Import-Package: ims.tiger.gui.tigergraphviewer.forest |
|
344 | 345 |
Bundle-Vendor: Textometrie.org |
345 |
Bundle-ClassPath: lib/, |
|
346 |
. |
tmp/org.txm.tigersearch.rcp/src/org/txm/tigersearch/editors/TSIndexEditor.java (revision 690) | ||
---|---|---|
70 | 70 |
import org.eclipse.ui.IEditorInput; |
71 | 71 |
import org.eclipse.ui.IEditorSite; |
72 | 72 |
import org.eclipse.ui.PartInitException; |
73 |
import org.txm.core.messages.TXMCoreMessages; |
|
73 | 74 |
import org.txm.core.preferences.TXMPreferences; |
74 | 75 |
import org.txm.core.results.TXMResult; |
75 | 76 |
import org.txm.function.tigersearch.TSIndex; |
... | ... | |
79 | 80 |
import org.txm.index.rcp.editors.LineLabelProvider; |
80 | 81 |
import org.txm.index.rcp.messages.IndexUIMessages; |
81 | 82 |
import org.txm.rcp.JobsTimer; |
82 |
import org.txm.rcp.RCPMessages; |
|
83 | 83 |
import org.txm.rcp.StatusLine; |
84 | 84 |
import org.txm.rcp.editors.TXMEditor; |
85 | 85 |
import org.txm.rcp.editors.TXMResultEditorInput; |
86 | 86 |
import org.txm.rcp.editors.TableKeyListener; |
87 |
import org.txm.rcp.messages.TXMUIMessages; |
|
87 | 88 |
import org.txm.rcp.preferences.RCPPreferences; |
88 | 89 |
import org.txm.rcp.swt.widget.NavigationWidget; |
89 | 90 |
import org.txm.rcp.swt.widget.PropertiesSelector; |
... | ... | |
133 | 134 |
protected Button go; |
134 | 135 |
|
135 | 136 |
/** The props area. */ |
136 |
protected PropertiesSelector<Property> propsArea;
|
|
137 |
protected PropertiesSelector propsArea; |
|
137 | 138 |
// seuils |
138 | 139 |
/** The Fmin spinner. */ |
139 | 140 |
protected Spinner FminSpinner; |
... | ... | |
362 | 363 |
if (index.getV() == 1) |
363 | 364 |
message= ("one result"); |
364 | 365 |
else if (index.getV() > 0) |
365 |
message= (IndexUIMessages.bind(RCPMessages.CreatePartition_55, index.getV(), index.getT()));
|
|
366 |
message= (IndexUIMessages.bind(TXMUIMessages.CreatePartition_5, index.getV(), index.getT()));
|
|
366 | 367 |
else |
367 | 368 |
message= (IndexUIMessages.IndexEditor_31); |
368 | 369 |
|
... | ... | |
401 | 402 |
} catch (Exception e) { |
402 | 403 |
System.out.println(e.getLocalizedMessage()); |
403 | 404 |
try { |
404 |
System.out.println(RCPMessages.LastCQPError+CQPEngine.getCqiClient().getLastCQPError());
|
|
405 |
System.out.println(TXMUIMessages.LastCQPError + CQPEngine.getCqiClient().getLastCQPError());
|
|
405 | 406 |
} catch (Exception e1) { |
406 | 407 |
System.out.println(IndexUIMessages.IndexEditor_10+e1); |
407 | 408 |
} |
... | ... | |
454 | 455 |
*/ |
455 | 456 |
@Override |
456 | 457 |
public void _createPartControl(final Composite parent) { |
457 |
|
|
458 |
|
|
458 | 459 |
FormLayout parentLayout = new FormLayout(); |
459 | 460 |
parent.setLayout(parentLayout); |
460 | 461 |
|
... | ... | |
862 | 863 |
nColumn.pack(); |
863 | 864 |
|
864 | 865 |
unitColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
865 |
unitColumn.setText(RCPMessages.ReferencerEditor_9);
|
|
866 |
unitColumn.setToolTipText(RCPMessages.ReferencerEditor_9);
|
|
866 |
unitColumn.setText(TXMCoreMessages.common_units);
|
|
867 |
unitColumn.setToolTipText(TXMCoreMessages.common_units);
|
|
867 | 868 |
unitColumn.setWidth(200); |
868 | 869 |
unitColumn.addSelectionListener(new SelectionListener() { |
869 | 870 |
@Override |
... | ... | |
895 | 896 |
freqColumn = new TableColumn(viewer.getTable(), SWT.RIGHT); |
896 | 897 |
try { |
897 | 898 |
if(partition != null) |
898 |
freqColumn.setText(RCPMessages.FrequencyListEditorInput_4+" T="+partition.getTotalSize()); //$NON-NLS-1$
|
|
899 |
freqColumn.setText(TXMUIMessages.FrequencyListEditorInput_4+" T="+partition.getTotalSize()); //$NON-NLS-1$
|
|
899 | 900 |
else |
900 |
freqColumn.setText(RCPMessages.FrequencyListEditorInput_4+" T="+corpus.getSize()); //$NON-NLS-1$
|
|
901 |
freqColumn.setText(TXMUIMessages.FrequencyListEditorInput_4+" T="+corpus.getSize()); //$NON-NLS-1$
|
|
901 | 902 |
} catch (CqiClientException e2) { |
902 | 903 |
Log.printStackTrace(e2); |
903 | 904 |
return; |
904 | 905 |
} |
905 |
freqColumn.setToolTipText(RCPMessages.FrequencyListEditorInput_4);
|
|
906 |
freqColumn.setToolTipText(TXMUIMessages.FrequencyListEditorInput_4);
|
|
906 | 907 |
freqColumn.setWidth(100); |
907 | 908 |
freqColumn.addSelectionListener(new SelectionListener() { |
908 | 909 |
@Override |
... | ... | |
1211 | 1212 |
return this.index; |
1212 | 1213 |
} |
1213 | 1214 |
|
1215 |
|
|
1214 | 1216 |
public Query getQuery() { |
1215 | 1217 |
return new Query(queryWidget.getText()); |
1216 | 1218 |
} |
1217 | 1219 |
|
1218 | 1220 |
@Override |
1219 | 1221 |
public void updateResultFromEditor() { |
1220 |
// TODO Auto-generated method stub
|
|
1221 |
|
|
1222 |
// FIXME: not yet implemented
|
|
1223 |
System.err.println("TSIndexEditor.updateResultFromEditor(): not yet implemented."); |
|
1222 | 1224 |
} |
1223 | 1225 |
|
1224 | 1226 |
@Override |
1225 | 1227 |
public void updateEditorFromResult(boolean update) { |
1226 |
// TODO Auto-generated method stub
|
|
1227 |
|
|
1228 |
// FIXME: not yet implemented
|
|
1229 |
System.err.println("TSIndexEditor.updateEditorFromResult(): not yet implemented."); |
|
1228 | 1230 |
} |
1231 |
|
|
1229 | 1232 |
} |
tmp/org.txm.tigersearch.rcp/src/org/txm/tigersearch/editors/TIGERSearchEditor.java (revision 690) | ||
---|---|---|
373 | 373 |
queryArea.forceFocus(); |
374 | 374 |
} |
375 | 375 |
|
376 |
/* (non-Javadoc) |
|
377 |
* @see org.eclipse.ui.part.EditorPart#doSave(org.eclipse.core.runtime.IProgressMonitor) |
|
378 |
*/ |
|
379 | 376 |
@Override |
380 |
public void doSave(IProgressMonitor monitor) { } |
|
381 |
|
|
382 |
/* (non-Javadoc) |
|
383 |
* @see org.eclipse.ui.part.EditorPart#doSaveAs() |
|
384 |
*/ |
|
385 |
@Override |
|
386 |
public void doSaveAs() { } |
|
387 |
|
|
388 |
/* (non-Javadoc) |
|
389 |
* @see org.eclipse.ui.part.EditorPart#init(org.eclipse.ui.IEditorSite, org.eclipse.ui.IEditorInput) |
|
390 |
*/ |
|
391 |
@Override |
|
392 | 377 |
public void init(IEditorSite site, IEditorInput input) |
393 | 378 |
throws PartInitException { |
394 | 379 |
setSite(site); |
... | ... | |
402 | 387 |
System.out.println("Error: "+e.getLocalizedMessage()); |
403 | 388 |
Log.printStackTrace(e); |
404 | 389 |
} //$NON-NLS-1$ //$NON-NLS-2$ |
405 |
Log.severe(""+svgFile);
|
|
390 |
Log.severe(svgFile.toString());
|
|
406 | 391 |
|
407 | 392 |
TIGERSearchEditorInput ii = (TIGERSearchEditorInput) input; |
408 | 393 |
source = ii.getSource(); |
... | ... | |
412 | 397 |
} |
413 | 398 |
} |
414 | 399 |
|
415 |
/* (non-Javadoc) |
|
416 |
* @see org.eclipse.ui.part.EditorPart#isDirty() |
|
417 |
*/ |
|
418 | 400 |
@Override |
419 |
public boolean isDirty() { |
|
420 |
return false; |
|
421 |
} |
|
422 |
|
|
423 |
/* (non-Javadoc) |
|
424 |
* @see org.eclipse.ui.part.EditorPart#isSaveAsAllowed() |
|
425 |
*/ |
|
426 |
@Override |
|
427 |
public boolean isSaveAsAllowed() { |
|
428 |
return false; |
|
429 |
} |
|
430 |
|
|
431 |
@Override |
|
432 | 401 |
public void updateResultFromEditor() { |
433 |
// TODO Auto-generated method stub
|
|
434 |
|
|
402 |
// FIXME: not yet implemented
|
|
403 |
System.err.println("TIGERSearchEditor.updateResultFromEditor(): not yet implemented."); |
|
435 | 404 |
} |
436 | 405 |
|
437 | 406 |
@Override |
438 | 407 |
public void updateEditorFromResult(boolean update) { |
439 |
// TODO Auto-generated method stub
|
|
440 |
|
|
408 |
// FIXME: not yet implemented
|
|
409 |
System.err.println("TIGERSearchEditor.updateEditorFromResult(): not yet implemented."); |
|
441 | 410 |
} |
411 |
|
|
412 |
|
|
442 | 413 |
} |
tmp/org.txm.tigersearch.rcp/src/org/txm/function/tigersearch/TIGERSearch.java (revision 690) | ||
---|---|---|
5 | 5 |
import java.util.List; |
6 | 6 |
|
7 | 7 |
import org.eclipse.core.runtime.IAdaptable; |
8 |
import org.eclipse.core.runtime.IProgressMonitor; |
|
8 | 9 |
import org.eclipse.jface.resource.ImageDescriptor; |
9 | 10 |
import org.eclipse.ui.model.IWorkbenchAdapter; |
10 | 11 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
11 |
import org.eclipse.core.runtime.IProgressMonitor; |
|
12 | 12 |
import org.txm.core.results.TXMParameters; |
13 | 13 |
import org.txm.core.results.TXMResult; |
14 | 14 |
import org.txm.searchengine.cqp.corpus.Corpus; |
... | ... | |
206 | 206 |
public void clean() { |
207 | 207 |
|
208 | 208 |
} |
209 |
|
|
210 |
@Override |
|
211 |
public boolean delete() { |
|
212 |
return corpus.removeResult(this); |
|
213 |
} |
|
209 | 214 |
|
210 | 215 |
/** |
211 | 216 |
* |
... | ... | |
243 | 248 |
|
244 | 249 |
@Override |
245 | 250 |
public boolean setParameters(TXMParameters parameters) { |
251 |
// FIXME: not yet implemented |
|
252 |
System.err.println("TIGERSearch.setParameters(): not yet implemented."); |
|
246 | 253 |
return false; |
247 | 254 |
} |
248 | 255 |
|
249 | 256 |
@Override |
250 | 257 |
public boolean saveParameters() throws Exception { |
251 |
// TODO Auto-generated method stub |
|
258 |
// FIXME: not yet implemented |
|
259 |
System.err.println("TIGERSearch.saveParameters(): not yet implemented."); |
|
252 | 260 |
return false; |
253 | 261 |
} |
254 | 262 |
|
255 | 263 |
@Override |
256 | 264 |
public boolean loadParameters() throws Exception { |
257 |
// TODO Auto-generated method stub |
|
265 |
// FIXME: not yet implemented |
|
266 |
System.err.println("TIGERSearch.loadParameters(): not yet implemented."); |
|
258 | 267 |
return false; |
259 | 268 |
} |
260 | 269 |
|
261 | 270 |
@Override |
262 | 271 |
protected boolean _compute() throws Exception { |
263 |
// TODO Auto-generated method stub |
|
272 |
// FIXME: not yet implemented |
|
273 |
System.err.println("TIGERSearch._compute(): not yet implemented."); |
|
264 | 274 |
return false; |
265 | 275 |
} |
266 | 276 |
} |
Formats disponibles : Unified diff