Révision 369
tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorporaView.java (revision 369) | ||
---|---|---|
64 | 64 |
import org.txm.Toolbox; |
65 | 65 |
import org.txm.ca.core.functions.CA; |
66 | 66 |
import org.txm.cah.core.functions.CAH; |
67 |
import org.txm.concordances.functions.Concordance; |
|
67 |
import org.txm.concordance.core.functions.Concordance; |
|
68 |
import org.txm.concordance.rcp.editors.ConcordanceEditorInput; |
|
68 | 69 |
import org.txm.cooccurrence.core.functions.Cooccurrence; |
69 | 70 |
import org.txm.core.results.ITXMResult; |
70 | 71 |
import org.txm.core.results.TXMResult; |
... | ... | |
82 | 83 |
import org.txm.rcp.StatusLine; |
83 | 84 |
import org.txm.rcp.commands.base.DeleteObject; |
84 | 85 |
import org.txm.rcp.commands.editor.CustomizableEditor; |
85 |
import org.txm.rcp.editors.input.ConcordancesEditorInput; |
|
86 | 86 |
import org.txm.rcp.editors.input.InternalViewEditorInput; |
87 | 87 |
import org.txm.rcp.editors.input.ReferencerEditorInput; |
88 | 88 |
import org.txm.rcp.editors.internal.InternalViewEditor; |
... | ... | |
240 | 240 |
Log.severe(NLS.bind(Messages.CorporaView_2, ((Corpus)selectedItem).getName())); |
241 | 241 |
StatusLine.setMessage(((Corpus)selectedItem).getName()+ " is not ready"); //$NON-NLS-1$ |
242 | 242 |
} |
243 |
} else if (selectedItem instanceof Partition) { |
|
244 |
StatusLine.setMessage(((Partition)selectedItem).getName() + ": "+((Partition)selectedItem).getNPart()); //$NON-NLS-1$ |
|
245 |
} else if (selectedItem instanceof Concordance) { |
|
246 |
StatusLine.setMessage(((Concordance)selectedItem).getName()); |
|
247 |
} else if (selectedItem instanceof Cooccurrence) { |
|
248 |
StatusLine.setMessage(((Cooccurrence)selectedItem).getName()); |
|
243 |
// } else if (selectedItem instanceof Partition) {
|
|
244 |
// StatusLine.setMessage(((Partition)selectedItem).getName() + ": "+((Partition)selectedItem).getNPart()); //$NON-NLS-1$
|
|
245 |
// } else if (selectedItem instanceof Concordance) {
|
|
246 |
// StatusLine.setMessage(((Concordance)selectedItem).getName());
|
|
247 |
// } else if (selectedItem instanceof Cooccurrence) {
|
|
248 |
// StatusLine.setMessage(((Cooccurrence)selectedItem).getName());
|
|
249 | 249 |
// } else if (selectedItem instanceof Index) { |
250 | 250 |
// StatusLine.setMessage(((Index)selectedItem).getName()); |
251 |
} else if (selectedItem instanceof CA) { |
|
252 |
StatusLine.setMessage(((CA)selectedItem).getName()); |
|
253 |
} else if (selectedItem instanceof CAH) { |
|
254 |
StatusLine.setMessage(((CAH)selectedItem).getName()); |
|
255 |
} else if (selectedItem instanceof SpecificitesResult) { |
|
256 |
StatusLine.setMessage(((SpecificitesResult)selectedItem).getName()); |
|
251 |
// } else if (selectedItem instanceof CA) {
|
|
252 |
// StatusLine.setMessage(((CA)selectedItem).getName());
|
|
253 |
// } else if (selectedItem instanceof CAH) {
|
|
254 |
// StatusLine.setMessage(((CAH)selectedItem).getName());
|
|
255 |
// } else if (selectedItem instanceof SpecificitesResult) {
|
|
256 |
// StatusLine.setMessage(((SpecificitesResult)selectedItem).getName());
|
|
257 | 257 |
} else if (selectedItem instanceof InternalView) { |
258 | 258 |
StatusLine.setMessage(((InternalView)selectedItem).getDetails()); |
259 | 259 |
// } else if (selectedItem instanceof QueryIndex) { |
... | ... | |
282 | 282 |
if (isAlreadyOpened(selectedItem)) |
283 | 283 |
return; |
284 | 284 |
// System.out.println("Selected item "+selectedItem.getClass()); |
285 |
if (selectedItem instanceof Concordance) { |
|
286 |
Concordance concordance = (Concordance) selectedItem; |
|
287 |
IEditorInput editorInput = new ConcordancesEditorInput( |
|
288 |
concordance.getCorpus(), concordance); |
|
289 |
IWorkbenchPage page = getSite().getWorkbenchWindow().getActivePage(); |
|
290 |
try { |
|
291 |
page.openEditor(editorInput, |
|
292 |
"org.txm.rcp.editors.ConcordancesEditor"); //$NON-NLS-1$ |
|
293 |
} catch (PartInitException e) { |
|
294 |
System.err.println(Messages.CorporaView_3+ e); |
|
295 |
} |
|
285 |
// if (selectedItem instanceof Concordance) {
|
|
286 |
// Concordance concordance = (Concordance) selectedItem;
|
|
287 |
// IEditorInput editorInput = new ConcordancesEditorInput(
|
|
288 |
// concordance.getCorpus(), concordance);
|
|
289 |
// IWorkbenchPage page = getSite().getWorkbenchWindow().getActivePage();
|
|
290 |
// try {
|
|
291 |
// page.openEditor(editorInput,
|
|
292 |
// "org.txm.rcp.editors.ConcordancesEditor"); //$NON-NLS-1$
|
|
293 |
// } catch (PartInitException e) {
|
|
294 |
// System.err.println(Messages.CorporaView_3+ e);
|
|
295 |
// }
|
|
296 | 296 |
// } else if (selectedItem instanceof Lexicon) { |
297 | 297 |
// Lexicon lex = (Lexicon) selectedItem; |
298 | 298 |
// final Index index = new Index(lex.getCorpus(), lex.getProperty()); |
... | ... | |
330 | 330 |
// // System.err.println(Messages.CorporaView_7+ e); |
331 | 331 |
// // } |
332 | 332 |
// |
333 |
} else if (selectedItem instanceof Referencer) { |
|
333 |
//} else |
|
334 |
if (selectedItem instanceof Referencer) { |
|
334 | 335 |
|
335 | 336 |
Referencer ref = (Referencer) selectedItem; |
336 | 337 |
ReferencerEditorInput editorInput = new ReferencerEditorInput(ref.getCorpus(), ref); |
Formats disponibles : Unified diff