Revision 562
tmp/org.txm.index.core/src/org/txm/index/core/functions/Index.java (revision 562) | ||
---|---|---|
287 | 287 |
return true; |
288 | 288 |
} |
289 | 289 |
|
290 |
|
|
291 | 290 |
@Override |
292 |
public boolean saveParameters() { |
|
293 |
// TODO Auto-generated method stub |
|
294 |
System.err.println("Index.saveParameters(): not yet implemented."); |
|
295 |
return true; |
|
296 |
} |
|
297 |
|
|
298 |
@Override |
|
299 | 291 |
public boolean loadParameters() { |
300 | 292 |
// TODO Auto-generated method stub |
301 | 293 |
System.err.println("Index.loadParameters(): not yet implemented."); |
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/editor/DiagnosticEditor.java (revision 562) | ||
---|---|---|
53 | 53 |
} |
54 | 54 |
|
55 | 55 |
@Override |
56 |
public void refresh(boolean update) {
|
|
56 |
public void updateEditorFromResult(boolean update) {
|
|
57 | 57 |
File file = diag.getHTMLFile(); |
58 | 58 |
if (file.exists()) { |
59 | 59 |
browser.setUrl(file.getAbsolutePath()); |
tmp/org.txm.cooccurrence.core/src/org/txm/cooccurrence/core/functions/Cooccurrence.java (revision 562) | ||
---|---|---|
343 | 343 |
|
344 | 344 |
return true; |
345 | 345 |
} |
346 |
|
|
347 | 346 |
|
348 | 347 |
@Override |
349 |
public boolean saveParameters() { |
|
350 |
// TODO Auto-generated method stub |
|
351 |
System.err.println("Cooccurrence.saveParameters(): not yet implemented."); |
|
352 |
return true; |
|
353 |
} |
|
354 |
|
|
355 |
|
|
356 |
|
|
357 |
@Override |
|
358 | 348 |
public void clean() { |
359 | 349 |
try { |
360 | 350 |
if (writer != null) { |
tmp/org.txm.lexicaltable.rcp/src/org/txm/lexicaltable/rcp/editors/LexicalTableEditor.java (revision 562) | ||
---|---|---|
455 | 455 |
} |
456 | 456 |
|
457 | 457 |
@Override |
458 |
public void refresh(boolean update) {
|
|
458 |
public void updateEditorFromResult(boolean update) {
|
|
459 | 459 |
this.refreshTable(); |
460 | 460 |
this.refreshInfos(); |
461 | 461 |
super.refresh(update); |
tmp/org.txm.cah.core/src/org/txm/cah/core/functions/AHC.java (revision 562) | ||
---|---|---|
152 | 152 |
&& Arrays.binarySearch(AHC.getMetrics(), pMetric) >= 0 |
153 | 153 |
&& pNCluster >= 2; |
154 | 154 |
} |
155 |
|
|
156 |
|
|
157 |
@Override |
|
158 |
public boolean saveParameters() { |
|
159 |
// TODO Auto-generated method stub |
|
160 |
System.err.println("AHC.saveParameters(): not yet implemented."); |
|
161 |
return true; |
|
162 |
} |
|
163 | 155 |
|
164 | 156 |
@Override |
165 | 157 |
public boolean setParameters(TXMParameters parameters) { |
... | ... | |
168 | 160 |
return true; |
169 | 161 |
} |
170 | 162 |
|
171 |
|
|
172 |
|
|
173 | 163 |
/** |
174 | 164 |
* Resets the cached data so the next getter calls will request the values from R. |
175 | 165 |
*/ |
tmp/org.txm.index.rcp/src/org/txm/index/rcp/editors/IndexEditor.java (revision 562) | ||
---|---|---|
208 | 208 |
* Computes index. |
209 | 209 |
*/ |
210 | 210 |
@Override |
211 |
public void refresh(final boolean update) {
|
|
211 |
public void updateEditorFromResult(final boolean update) {
|
|
212 | 212 |
|
213 | 213 |
//System.out.println("PROPERTIES: "+properties); |
214 | 214 |
// title = "Index..."; |
tmp/org.txm.partition.core/src/org/txm/partition/core/functions/PartitionDimensions.java (revision 562) | ||
---|---|---|
186 | 186 |
return false; |
187 | 187 |
} |
188 | 188 |
|
189 |
|
|
190 |
|
|
191 |
@Override |
|
192 |
public boolean saveParameters() { |
|
193 |
// TODO Auto-generated method stub |
|
194 |
System.err.println("PartitionDimensions.saveParameters(): not yet implemented."); |
|
195 |
return true; |
|
196 |
} |
|
197 |
|
|
198 |
|
|
199 |
|
|
200 | 189 |
} |
tmp/org.txm.concordance.rcp/src/org/txm/concordance/rcp/editors/ConcordanceEditor.java (revision 562) | ||
---|---|---|
1176 | 1176 |
* @param top |
1177 | 1177 |
* @param bottom |
1178 | 1178 |
*/ |
1179 |
public void refresh(boolean update) {
|
|
1179 |
public void updateEditorFromResult(boolean update) {
|
|
1180 | 1180 |
StatusLine.setMessage(Messages.ConcordancesEditor_56); |
1181 | 1181 |
|
1182 | 1182 |
//if (true)// concordance==null || concordance.getQuery()!=query) |
tmp/org.txm.searchengine.cqp.core/src/org/txm/functions/summary/Summary.java (revision 562) | ||
---|---|---|
265 | 265 |
} |
266 | 266 |
|
267 | 267 |
@Override |
268 |
public boolean saveParameters() { |
|
269 |
// TODO Auto-generated method stub |
|
270 |
System.err.println("Summary.saveParameters(): not yet implemented."); |
|
271 |
return true; |
|
272 |
} |
|
273 |
|
|
274 |
@Override |
|
275 | 268 |
public boolean setParameters(TXMParameters parameters) { |
276 | 269 |
// TODO Auto-generated method stub |
277 | 270 |
System.err.println("Summary.setParameters(): not yet implemented."); |
tmp/org.txm.searchengine.cqp.core/src/org/txm/functions/preview/Preview.java (revision 562) | ||
---|---|---|
92 | 92 |
} |
93 | 93 |
|
94 | 94 |
@Override |
95 |
public boolean saveParameters() { |
|
96 |
// TODO Auto-generated method stub |
|
97 |
System.err.println("Preview.saveParameters(): not yet implemented."); |
|
98 |
return true; |
|
99 |
} |
|
100 |
|
|
101 |
@Override |
|
102 | 95 |
public boolean setParameters(TXMParameters parameters) { |
103 | 96 |
// TODO Auto-generated method stub |
104 | 97 |
System.err.println("Preview.setParameters(): not yet implemented."); |
tmp/org.txm.searchengine.cqp.core/src/org/txm/functions/diagnostic/Diagnostic.java (revision 562) | ||
---|---|---|
657 | 657 |
public boolean canCompute() { |
658 | 658 |
return corpus != null; |
659 | 659 |
} |
660 |
|
|
661 | 660 |
|
662 | 661 |
@Override |
663 |
public boolean saveParameters() { |
|
664 |
// TODO Auto-generated method stub |
|
665 |
System.err.println("Diagnostic.saveParameters(): not yet implemented."); |
|
666 |
return true; |
|
667 |
} |
|
668 |
|
|
669 |
@Override |
|
670 | 662 |
public boolean setParameters(TXMParameters parameters) { |
671 | 663 |
// TODO Auto-generated method stub |
672 | 664 |
System.err.println("Diagnostic.setParameters(): not yet implemented."); |
tmp/org.txm.searchengine.cqp.core/src/org/txm/functions/selection/Selection.java (revision 562) | ||
---|---|---|
494 | 494 |
} |
495 | 495 |
|
496 | 496 |
@Override |
497 |
public boolean saveParameters() { |
|
498 |
// TODO Auto-generated method stub |
|
499 |
System.err.println("Selection.saveParameters(): not yet implemented."); |
|
500 |
return true; |
|
501 |
} |
|
502 |
|
|
503 |
@Override |
|
504 | 497 |
public boolean setParameters(TXMParameters parameters) { |
505 | 498 |
// TODO Auto-generated method stub |
506 | 499 |
System.err.println("Selection.setParameters(): not yet implemented."); |
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/Partition.java (revision 562) | ||
---|---|---|
722 | 722 |
return getCorpus() != null; |
723 | 723 |
} |
724 | 724 |
|
725 |
|
|
726 | 725 |
@Override |
727 |
public boolean saveParameters() { |
|
728 |
// TODO Auto-generated method stub |
|
729 |
System.err.println("Partition.saveParameters(): not yet implemented."); |
|
730 |
return true; |
|
731 |
} |
|
732 |
|
|
733 |
@Override |
|
734 | 726 |
public boolean setParameters(TXMParameters parameters) { |
735 | 727 |
// TODO Auto-generated method stub |
736 | 728 |
System.err.println("Partition.setParameters(): not yet implemented."); |
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/MainCorpus.java (revision 562) | ||
---|---|---|
615 | 615 |
} |
616 | 616 |
|
617 | 617 |
@Override |
618 |
public boolean saveParameters() { |
|
619 |
// TODO Auto-generated method stub |
|
620 |
System.err.println("MainCorpus.saveParameters(): not yet implemented."); |
|
621 |
return true; |
|
622 |
} |
|
623 |
|
|
624 |
@Override |
|
625 | 618 |
public boolean setParameters(TXMParameters parameters) { |
626 | 619 |
// TODO Auto-generated method stub |
627 | 620 |
System.err.println("MainCorpus.setParameters(): not yet implemented."); |
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/Subcorpus.java (revision 562) | ||
---|---|---|
540 | 540 |
} |
541 | 541 |
|
542 | 542 |
@Override |
543 |
public boolean saveParameters() { |
|
544 |
// TODO Auto-generated method stub |
|
545 |
System.err.println("Subcorpus.saveParameters(): not yet implemented."); |
|
546 |
return true; |
|
547 |
} |
|
548 |
|
|
549 |
@Override |
|
550 | 543 |
public boolean setParameters(TXMParameters parameters) { |
551 | 544 |
// TODO Auto-generated method stub |
552 | 545 |
System.err.println("Subcorpus.setParameters(): not yet implemented."); |
tmp/org.txm.ca.core/src/org/txm/ca/core/functions/CA.java (revision 562) | ||
---|---|---|
857 | 857 |
System.err.println("CA.loadParameters(): not yet implemented."); |
858 | 858 |
return true; |
859 | 859 |
} |
860 |
|
|
861 | 860 |
} |
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/functions/LexicalTable.java (revision 562) | ||
---|---|---|
377 | 377 |
return this.parent != null; // can be computed on partition or corpus |
378 | 378 |
} |
379 | 379 |
|
380 |
|
|
381 | 380 |
@Override |
382 |
public boolean saveParameters() { |
|
383 |
// TODO Auto-generated method stub |
|
384 |
System.err.println("LexicalTable.saveParameters(): not yet implemented."); |
|
385 |
return true; |
|
386 |
} |
|
387 |
|
|
388 |
@Override |
|
389 | 381 |
public boolean setParameters(TXMParameters parameters) { |
390 | 382 |
// TODO Auto-generated method stub |
391 | 383 |
System.err.println("LexicalTable.setParameters(): not yet implemented."); |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditorPart.java (revision 562) | ||
---|---|---|
485 | 485 |
* This method should be overridden to update the editor result UI area after the result computing. |
486 | 486 |
* @param update |
487 | 487 |
*/ |
488 |
public void refresh(boolean update) { |
|
489 |
this.firePropertyChange(IEditorPart.PROP_DIRTY); |
|
488 |
public final void refresh(boolean update) { |
|
489 |
if (this.getResultData() != null) { |
|
490 |
this.setPartName(this.getResultData().getName()); |
|
491 |
firePropertyChange(TXMEditorPart.PROP_DIRTY); |
|
492 |
} |
|
490 | 493 |
this.updateEditorFromResult(update); |
491 | 494 |
CorporaView.refreshObject(this); |
492 | 495 |
} |
... | ... | |
501 | 504 |
* Synchronizes the editor with the result. |
502 | 505 |
* Dedicated to dynamically change the editor informations (as the part name) from the stored result. |
503 | 506 |
*/ |
504 |
public void updateEditorFromResult(boolean update) { |
|
505 |
try { |
|
506 |
if (this.getResultData() != null) { |
|
507 |
this.setPartName(this.getResultData().getName()); |
|
508 |
firePropertyChange(TXMEditorPart.PROP_DIRTY); |
|
509 |
} |
|
510 |
} catch(Exception e) { |
|
511 |
System.out.println("Error while refreshing editor content: " + e.getLocalizedMessage()); |
|
512 |
} |
|
513 |
} |
|
507 |
public abstract void updateEditorFromResult(boolean update); |
|
514 | 508 |
|
515 | 509 |
/** |
516 | 510 |
* Deletes the linked TXM result. |
tmp/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/CooccurrencesEditor.java (revision 562) | ||
---|---|---|
715 | 715 |
// } |
716 | 716 |
|
717 | 717 |
@Override |
718 |
public void refresh(boolean update) {
|
|
718 |
public void updateEditorFromResult(boolean update) {
|
|
719 | 719 |
|
720 | 720 |
// FIXME: new method |
721 | 721 |
Display.getDefault().syncExec(new Runnable() { |
tmp/org.txm.specificities.core/src/org/txm/specificities/core/functions/Specificities.java (revision 562) | ||
---|---|---|
599 | 599 |
public void setMaxScore(int maxScore) { |
600 | 600 |
this.pMaxScore = maxScore; |
601 | 601 |
} |
602 |
|
|
603 |
|
|
604 |
@Override |
|
605 |
public boolean saveParameters() { |
|
606 |
// TODO Auto-generated method stub |
|
607 |
System.err.println("Specificities.saveParameters(): not yet implemented."); |
|
608 |
return true; |
|
609 |
} |
|
610 | 602 |
|
611 | 603 |
@Override |
612 | 604 |
public boolean setParameters(TXMParameters parameters) { |
... | ... | |
615 | 607 |
return true; |
616 | 608 |
} |
617 | 609 |
|
618 |
|
|
619 |
|
|
620 |
|
|
621 | 610 |
@Override |
622 | 611 |
public boolean loadParameters() { |
623 | 612 |
// TODO Auto-generated method stub |
tmp/org.txm.specificities.core/src/org/txm/specificities/core/functions/SpecificitiesSelection.java (revision 562) | ||
---|---|---|
143 | 143 |
return true; |
144 | 144 |
} |
145 | 145 |
|
146 |
|
|
147 | 146 |
@Override |
148 |
public boolean saveParameters() { |
|
149 |
// TODO Auto-generated method stub |
|
150 |
System.err.println("SpecificitiesSelection.saveParameters(): not yet implemented."); |
|
151 |
return true; |
|
152 |
} |
|
153 |
|
|
154 |
@Override |
|
155 | 147 |
public boolean setParameters(TXMParameters parameters) { |
156 | 148 |
// TODO Auto-generated method stub |
157 | 149 |
System.err.println("SpecificitiesSelection.setParameters(): not yet implemented."); |
tmp/org.txm.specificities.core/src/org/txm/functions/contrasts/Specificites2.java (revision 562) | ||
---|---|---|
53 | 53 |
public boolean canCompute() { |
54 | 54 |
return itable != null; |
55 | 55 |
} |
56 |
|
|
57 |
@Override |
|
58 |
public boolean saveParameters() { |
|
59 |
// TODO Auto-generated method stub |
|
60 |
System.err.println("Specificites2.saveParameters(): not yet implemented."); |
|
61 |
return true; |
|
62 |
} |
|
63 | 56 |
|
64 | 57 |
@Override |
65 | 58 |
public boolean setParameters(TXMParameters parameters) { |
tmp/org.txm.specificities.core/src/org/txm/functions/contrasts/RelativeFrequency.java (revision 562) | ||
---|---|---|
57 | 57 |
} |
58 | 58 |
|
59 | 59 |
@Override |
60 |
public boolean saveParameters() { |
|
61 |
// TODO Auto-generated method stub |
|
62 |
System.err.println("RelativeFrequency.saveParameters(): not yet implemented."); |
|
63 |
return true; |
|
64 |
} |
|
65 |
|
|
66 |
@Override |
|
67 | 60 |
public boolean setParameters(TXMParameters parameters) { |
68 | 61 |
// TODO Auto-generated method stub |
69 | 62 |
System.err.println("RelativeFrequency.setParameters(): not yet implemented."); |
tmp/org.txm.specificities.core/src/org/txm/functions/contrasts/AbsoluteFrequency.java (revision 562) | ||
---|---|---|
55 | 55 |
} |
56 | 56 |
|
57 | 57 |
@Override |
58 |
public boolean saveParameters() { |
|
59 |
// TODO Auto-generated method stub |
|
60 |
System.err.println("AbsoluteFrequency.saveParameters(): not yet implemented."); |
|
61 |
return true; |
|
62 |
} |
|
63 |
|
|
64 |
@Override |
|
65 | 58 |
public boolean setParameters(TXMParameters parameters) { |
66 | 59 |
// TODO Auto-generated method stub |
67 | 60 |
System.err.println("AbsoluteFrequency.setParameters(): not yet implemented."); |
tmp/org.txm.specificities.core/src/org/txm/functions/contrasts/Chi2.java (revision 562) | ||
---|---|---|
58 | 58 |
} |
59 | 59 |
|
60 | 60 |
@Override |
61 |
public boolean saveParameters() { |
|
62 |
// TODO Auto-generated method stub |
|
63 |
System.err.println("Chi2.saveParameters(): not yet implemented."); |
|
64 |
return true; |
|
65 |
} |
|
66 |
|
|
67 |
@Override |
|
68 | 61 |
public boolean setParameters(TXMParameters parameters) { |
69 | 62 |
// TODO Auto-generated method stub |
70 | 63 |
System.err.println("Chi2.setParameters(): not yet implemented."); |
tmp/org.txm.core/src/java/org/txm/objects/TxmObject.java (revision 562) | ||
---|---|---|
276 | 276 |
// TODO Auto-generated method stub |
277 | 277 |
return false; |
278 | 278 |
} |
279 |
|
|
280 |
@Override |
|
281 |
public boolean saveParameters() { |
|
282 |
// TODO Auto-generated method stub |
|
283 |
System.err.println("TxmObject.saveParameters(): not yet implemented."); |
|
284 |
return true; |
|
285 |
} |
|
286 | 279 |
|
287 | 280 |
@Override |
288 | 281 |
public boolean setParameters(TXMParameters parameters) { |
tmp/org.txm.chartsengine.rcp/src/org/txm/chartsengine/rcp/editors/ChartEditorPart.java (revision 562) | ||
---|---|---|
8 | 8 |
|
9 | 9 |
import org.eclipse.core.runtime.CoreException; |
10 | 10 |
import org.eclipse.core.runtime.IConfigurationElement; |
11 |
import org.eclipse.core.runtime.IProgressMonitor; |
|
12 |
import org.eclipse.core.runtime.IStatus; |
|
13 | 11 |
import org.eclipse.core.runtime.Platform; |
14 |
import org.eclipse.core.runtime.Status; |
|
15 |
import org.eclipse.core.runtime.jobs.Job; |
|
16 | 12 |
import org.eclipse.swt.SWT; |
17 | 13 |
import org.eclipse.swt.layout.GridData; |
18 | 14 |
import org.eclipse.swt.widgets.Composite; |
19 | 15 |
import org.eclipse.swt.widgets.Group; |
20 |
import org.eclipse.ui.IEditorInput; |
|
21 |
import org.eclipse.ui.IEditorSite; |
|
22 | 16 |
import org.eclipse.ui.IPartListener; |
23 | 17 |
import org.eclipse.ui.IWorkbenchPart; |
24 |
import org.eclipse.ui.PartInitException; |
|
25 | 18 |
import org.eclipse.ui.PlatformUI; |
26 | 19 |
import org.eclipse.ui.part.EditorPart; |
27 | 20 |
import org.eclipse.ui.part.MultiPageEditorPart; |
... | ... | |
33 | 26 |
import org.txm.chartsengine.rcp.swt.AdvancedChartEditorToolBar; |
34 | 27 |
import org.txm.chartsengine.rcp.swt.ChartComposite; |
35 | 28 |
import org.txm.chartsengine.rcp.swt.ChartEditorToolBar; |
36 |
import org.txm.core.results.TXMResult; |
|
37 | 29 |
import org.txm.rcp.editors.TXMEditorPart; |
38 | 30 |
import org.txm.rcp.editors.TXMEditorToolBar; |
39 |
import org.txm.rcp.utils.JobHandler; |
|
40 | 31 |
import org.txm.utils.logger.Log; |
41 | 32 |
|
42 | 33 |
/** |
... | ... | |
46 | 37 |
*/ |
47 | 38 |
public class ChartEditorPart extends TXMEditorPart { |
48 | 39 |
|
49 |
|
|
50 | 40 |
/** |
51 | 41 |
* The tool bar. |
52 | 42 |
*/ |
... | ... | |
201 | 191 |
|
202 | 192 |
|
203 | 193 |
@Override |
204 |
public void refresh(boolean update) { |
|
205 |
super.refresh(update); |
|
194 |
public void updateEditorFromResult(boolean update) { |
|
206 | 195 |
|
207 | 196 |
// loading chart |
208 | 197 |
this.getResultData().subTask("loading chart"); |
tmp/org.txm.progression.core/src/org/txm/progression/core/functions/Progression.java (revision 562) | ||
---|---|---|
156 | 156 |
return true; |
157 | 157 |
} |
158 | 158 |
|
159 |
|
|
160 |
|
|
161 | 159 |
@Override |
162 |
public boolean saveParameters() { |
|
163 |
// TODO Auto-generated method stub |
|
164 |
System.err.println("Progression.saveParameters(): not yet implemented."); |
|
165 |
return true; |
|
166 |
} |
|
167 |
|
|
168 |
@Override |
|
169 | 160 |
public boolean setParameters(TXMParameters parameters) { |
170 | 161 |
// TODO Auto-generated method stub |
171 | 162 |
System.err.println("Progression.setParameters(): not yet implemented."); |
tmp/org.txm.referencer.rcp/src/org/txm/rcp/editors/referencer/ReferencerEditor.java (revision 562) | ||
---|---|---|
615 | 615 |
} |
616 | 616 |
} |
617 | 617 |
|
618 |
if (selectedProps.size() == 0) { // no referencer result was selected |
|
619 |
for (int i = 0 ; i < availables2.size() ; i++) { |
|
620 |
Property p = availables2.get(i); |
|
621 |
if (p.getQualifiedName().endsWith("text_id")) { |
|
622 |
selectedProps.add(availables2.get(i)); |
|
623 |
availables2.remove(i); |
|
624 |
} |
|
625 |
} |
|
626 |
} |
|
627 |
|
|
628 | 618 |
this.patternArea.setProperties(availables2, selectedProps); |
629 | 619 |
} catch (CqiClientException e1) { |
630 | 620 |
org.txm.rcp.utils.Logger.printStackTrace(e1); |
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/editors/SpecificitiesEditor.java (revision 562) | ||
---|---|---|
389 | 389 |
|
390 | 390 |
|
391 | 391 |
@Override |
392 |
public void refresh(boolean update) {
|
|
392 |
public void updateEditorFromResult(boolean update) {
|
|
393 | 393 |
this.fillDisplay(); |
394 | 394 |
super.refresh(update); |
395 | 395 |
} |
tmp/org.txm.referencer.core/src/org/txm/functions/referencer/Referencer.java (revision 562) | ||
---|---|---|
544 | 544 |
@Override |
545 | 545 |
public boolean loadParameters() throws CqiClientException { |
546 | 546 |
this.pQuery = new Query(this.getStringParameterValue(ReferencerPreferences.QUERY)); |
547 |
|
|
547 | 548 |
String s = this.getStringParameterValue(ReferencerPreferences.PATTERN); |
548 | 549 |
this.pPattern = StructuralUnitProperty.fromStringToList(getCorpus(), s); |
549 | 550 |
|
Also available in: Unified diff