Révision 3695
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/CooccurrencesEditor.java (revision 3695) | ||
---|---|---|
362 | 362 |
//ColumnViewerToolTipSupport.enableFor(viewer); |
363 | 363 |
|
364 | 364 |
nColumn = new TableColumn(viewer.getTable(), SWT.RIGHT); |
365 |
nColumn.setText(" "); //$NON-NLS-1$
|
|
365 |
nColumn.setText(""); //$NON-NLS-1$ |
|
366 | 366 |
nColumn.pack(); |
367 | 367 |
|
368 | 368 |
occColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
TXM/trunk/bundles/org.txm.index.rcp/src/org/txm/index/rcp/editors/IndexEditor.java (revision 3695) | ||
---|---|---|
351 | 351 |
viewer.setInput(new ArrayList<Property>()); |
352 | 352 |
|
353 | 353 |
nColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
354 |
nColumn.setText(" "); //$NON-NLS-1$
|
|
354 |
nColumn.setText(""); //$NON-NLS-1$ |
|
355 | 355 |
nColumn.pack(); |
356 | 356 |
|
357 | 357 |
unitColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
TXM/trunk/bundles/org.txm.index.rcp/src/org/txm/index/rcp/editors/PartitionIndexEditor.java (revision 3695) | ||
---|---|---|
345 | 345 |
viewer.setInput(new ArrayList<Property>()); |
346 | 346 |
|
347 | 347 |
nColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
348 |
nColumn.setText(" "); //$NON-NLS-1$
|
|
348 |
nColumn.setText(""); //$NON-NLS-1$ |
|
349 | 349 |
nColumn.pack(); |
350 | 350 |
|
351 | 351 |
unitColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
TXM/trunk/bundles/org.txm.queryindex.rcp/src/org/txm/queryindex/rcp/editors/QueryIndexEditor.java (revision 3695) | ||
---|---|---|
725 | 725 |
}); |
726 | 726 |
|
727 | 727 |
nColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
728 |
nColumn.setText(" "); //$NON-NLS-1$
|
|
728 |
nColumn.setText(""); //$NON-NLS-1$ |
|
729 | 729 |
nColumn.pack(); |
730 | 730 |
|
731 | 731 |
unitColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
TXM/trunk/bundles/org.txm.texts.rcp/src/org/txm/texts/rcp/TextsViewEditor.java (revision 3695) | ||
---|---|---|
12 | 12 |
import org.eclipse.jface.viewers.TableViewer; |
13 | 13 |
import org.eclipse.jface.viewers.TableViewerColumn; |
14 | 14 |
import org.eclipse.jface.viewers.Viewer; |
15 |
import org.eclipse.jface.viewers.ViewerComparator; |
|
16 | 15 |
import org.eclipse.swt.SWT; |
17 | 16 |
import org.eclipse.swt.graphics.Image; |
18 | 17 |
import org.eclipse.swt.layout.GridData; |
... | ... | |
21 | 20 |
import org.eclipse.swt.widgets.TableColumn; |
22 | 21 |
import org.txm.Toolbox; |
23 | 22 |
import org.txm.core.results.Parameter; |
23 |
import org.txm.edition.rcp.editors.SynopticEditionEditor; |
|
24 | 24 |
import org.txm.edition.rcp.handlers.OpenEdition; |
25 |
import org.txm.edition.rcp.preferences.SynopticEditionPreferences; |
|
25 | 26 |
import org.txm.objects.Text; |
26 | 27 |
import org.txm.rcp.IImageKeys; |
27 | 28 |
import org.txm.rcp.editors.TXMEditor; |
... | ... | |
29 | 30 |
import org.txm.rcp.editors.TableLinesViewerComparator; |
30 | 31 |
import org.txm.rcp.editors.listeners.ComputeSelectionListener; |
31 | 32 |
import org.txm.rcp.swt.widget.PropertiesSelector; |
33 |
import org.txm.rcp.utils.SWTEditorsUtils; |
|
32 | 34 |
import org.txm.searchengine.cqp.corpus.StructuralUnitProperty; |
33 | 35 |
import org.txm.texts.core.TextsView; |
34 | 36 |
|
35 |
|
|
36 | 37 |
public class TextsViewEditor extends TXMEditor<TextsView> { |
37 | 38 |
|
38 | 39 |
@Parameter(key = "columns") |
... | ... | |
194 | 195 |
|
195 | 196 |
c = new TableViewerColumn(viewer, SWT.NONE); |
196 | 197 |
TableColumn separatorColumn = c.getColumn(); |
197 |
separatorColumn.setText(" ");
|
|
198 |
separatorColumn.setText(""); |
|
198 | 199 |
separatorColumn.setWidth(2); |
199 | 200 |
c.getColumn().setResizable(false); |
200 | 201 |
c.setLabelProvider(new ColumnLabelProvider() { |
... | ... | |
258 | 259 |
StructuredSelection ssel = (StructuredSelection)sel; |
259 | 260 |
Object o = ssel.getFirstElement(); |
260 | 261 |
if (o != null && o instanceof Text) { |
261 |
OpenEdition.openEdition(getResult().getCorpus(), new String[] {getResult().getProject().getDefaultEditionName()}, ((Text)o).getName()); |
|
262 |
SynopticEditionEditor editor = OpenEdition.openEdition(getResult().getCorpus(), new String[] {getResult().getProject().getDefaultEditionName()}, ((Text)o).getName()); |
|
263 |
int position = SynopticEditionPreferences.getInstance().getInt(SynopticEditionPreferences.BACKTOTEXT_POSITION); |
|
264 |
if (editor != null && position >= 0) { |
|
265 |
SWTEditorsUtils.addEditor(editor, TextsViewEditor.this, position); |
|
266 |
} |
|
262 | 267 |
} |
263 | 268 |
} |
264 | 269 |
}); |
TXM/trunk/bundles/org.txm.tigersearch.rcp/src/org/txm/tigersearch/editors/TSIndexEditor.java (revision 3695) | ||
---|---|---|
861 | 861 |
}); |
862 | 862 |
|
863 | 863 |
nColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
864 |
nColumn.setText(" "); //$NON-NLS-1$
|
|
864 |
nColumn.setText(""); //$NON-NLS-1$ |
|
865 | 865 |
nColumn.pack(); |
866 | 866 |
|
867 | 867 |
unitColumn = new TableColumn(viewer.getTable(), SWT.LEFT); |
Formats disponibles : Unified diff