Révision 3692

TXM/trunk/bundles/org.txm.treesearch.rcp/src/org/txm/treesearch/editor/TreeSearchEditor.java (revision 3692)
28 28
import org.txm.concordance.rcp.messages.ConcordanceUIMessages;
29 29
import org.txm.core.preferences.TXMPreferences;
30 30
import org.txm.core.results.Parameter;
31
import org.txm.edition.rcp.editors.SynopticEditionEditor;
31 32
import org.txm.edition.rcp.handlers.OpenEdition;
33
import org.txm.edition.rcp.preferences.SynopticEditionPreferences;
32 34
import org.txm.rcp.IImageKeys;
33 35
import org.txm.rcp.editors.TXMBrowserEditor;
34 36
import org.txm.rcp.editors.TXMEditor;
......
36 38
import org.txm.rcp.messages.TXMUIMessages;
37 39
import org.txm.rcp.swt.GLComposite;
38 40
import org.txm.rcp.swt.widget.LargeQueryField;
41
import org.txm.rcp.utils.SWTEditorsUtils;
39 42
import org.txm.rcp.views.QueriesView;
40 43
import org.txm.rcp.views.corpora.CorporaView;
41 44
import org.txm.searchengine.cqp.corpus.CQPCorpus;
......
191 194
					String textId = currentMatch[0];
192 195
					String wordId = currentMatch[1];
193 196
					
194
					OpenEdition.openEdition(corpus, null, textId, null, wordId);
197
					SynopticEditionEditor editor = OpenEdition.openEdition(corpus, null, textId, null, wordId);
198
					int position = SynopticEditionPreferences.getInstance().getInt(SynopticEditionPreferences.BACKTOTEXT_POSITION);
199
					if (editor != null && position >= 0) {
200
						SWTEditorsUtils.addEditor(editor, TreeSearchEditor.this, position);
201
					}
195 202
				}
196 203
				catch (Exception e1) {
197 204
					// TODO Auto-generated catch block

Formats disponibles : Unified diff