Révision 386
tmp/org.txm.referencer.rcp/src/org/txm/rcp/commands/link/ReferencerToConc.java (revision 386) | ||
---|---|---|
38 | 38 |
import org.eclipse.ui.IWorkbenchPage; |
39 | 39 |
import org.eclipse.ui.PartInitException; |
40 | 40 |
import org.eclipse.ui.handlers.HandlerUtil; |
41 |
import org.txm.concordance.rcp.editors.ConcordanceEditor; |
|
42 |
import org.txm.concordance.rcp.editors.ConcordanceEditorInput; |
|
41 | 43 |
import org.txm.functions.ReferencePattern; |
42 | 44 |
import org.txm.functions.referencer.Referencer; |
43 | 45 |
import org.txm.functions.referencer.Referencer.Line; |
44 | 46 |
import org.txm.rcp.Messages; |
45 |
import org.txm.rcp.editors.concordances.ConcordancesEditor; |
|
46 |
import org.txm.rcp.editors.input.ConcordancesEditorInput; |
|
47 | 47 |
import org.txm.rcp.editors.referencer.ReferencerEditor; |
48 | 48 |
import org.txm.searchengine.cqp.corpus.Corpus; |
49 | 49 |
import org.txm.searchengine.cqp.corpus.Property; |
... | ... | |
84 | 84 |
if (query.length() == 0) |
85 | 85 |
return null; |
86 | 86 |
Corpus corpus = refeditor.getCorpus(); |
87 |
ConcordancesEditorInput editorInput = new ConcordancesEditorInput(
|
|
87 |
ConcordanceEditorInput editorInput = new ConcordanceEditorInput(
|
|
88 | 88 |
corpus, null); |
89 | 89 |
|
90 | 90 |
IWorkbenchPage page = refeditor.getEditorSite().getWorkbenchWindow() |
91 | 91 |
.getActivePage(); |
92 | 92 |
try { |
93 |
ConcordancesEditor conceditor = (ConcordancesEditor) page
|
|
93 |
ConcordanceEditor conceditor = (ConcordanceEditor) page
|
|
94 | 94 |
.openEditor(editorInput, |
95 |
"org.txm.rcp.editors.ConcordancesEditor"); //$NON-NLS-1$
|
|
95 |
"ConcordanceEditor"); //$NON-NLS-1$
|
|
96 | 96 |
conceditor.setQuery(query); |
97 | 97 |
ReferencePattern rp = new ReferencePattern(); |
98 | 98 |
for(Property p : refeditor.getReferencer().getPattern()) |
Formats disponibles : Unified diff