Révision 391
tmp/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/handlers/ComputeCooccurrences.java (revision 391) | ||
---|---|---|
46 | 46 |
import org.txm.core.results.ITXMResult; |
47 | 47 |
import org.txm.rcp.Messages; |
48 | 48 |
import org.txm.rcp.StatusLine; |
49 |
import org.txm.rcp.editors.TXMEditorPart; |
|
49 | 50 |
import org.txm.rcp.editors.TXMResultEditorInput; |
50 | 51 |
import org.txm.rcp.handlers.BaseAbstractHandler; |
51 | 52 |
import org.txm.rcp.views.corpora.CorporaView; |
... | ... | |
117 | 118 |
} |
118 | 119 |
|
119 | 120 |
try { |
120 |
IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event); |
|
121 |
IWorkbenchPage page = window.getActivePage(); |
|
122 |
|
|
123 | 121 |
StatusLine.setMessage(Messages.ComputeCooccurrences_0); |
124 | 122 |
|
125 | 123 |
|
126 | 124 |
// return page.openEditor(editorInput, CooccurrencesEditor.ID); |
127 |
CooccurrencesEditor conceditor = (CooccurrencesEditor) page.openEditor(editorInput, CooccurrencesEditor.ID);
|
|
128 |
conceditor.computeResult(false);
|
|
129 |
return conceditor;
|
|
125 |
TXMEditorPart editor = TXMEditorPart.openEditor(editorInput, CooccurrencesEditor.ID);
|
|
126 |
editor.computeResult(false); |
|
127 |
return editor; |
|
130 | 128 |
} |
131 | 129 |
catch (Exception e) { |
132 | 130 |
org.txm.rcp.utils.Logger.printStackTrace(e); |
tmp/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/CooccurrencesEditor.java (revision 391) | ||
---|---|---|
915 | 915 |
} |
916 | 916 |
// from params |
917 | 917 |
else if(this.getEditorInput().getParams() != null) { |
918 |
this.queryWidget.setText(this.getEditorInput().getParams().getProperty("query"));
|
|
918 |
this.queryWidget.setText((String) this.getEditorInput().getParams().get("query"));
|
|
919 | 919 |
} |
920 | 920 |
//FIXME: from default preferences |
921 | 921 |
} |
Formats disponibles : Unified diff