Révision 1055
tmp/org.txm.internalview.rcp/src/org/txm/internalview/rcp/handlers/BackToInternalView.java (revision 1055) | ||
---|---|---|
9 | 9 |
import org.txm.core.results.TXMResult; |
10 | 10 |
import org.txm.internalview.core.functions.InternalView; |
11 | 11 |
import org.txm.internalview.rcp.editors.InternalViewEditor; |
12 |
import org.txm.internalview.rcp.messages.InternalViewUIMessages; |
|
12 | 13 |
import org.txm.rcp.TXMWindows; |
13 | 14 |
import org.txm.rcp.editors.TXMEditor; |
14 | 15 |
import org.txm.rcp.editors.TXMResultEditorInput; |
... | ... | |
37 | 38 |
editor.backToText(match); |
38 | 39 |
SWTEditorsUtils.addEditor(sourceEditor, editor, EModelService.ABOVE); |
39 | 40 |
} catch (Exception e) { |
40 |
System.err.println("Error: could not open InternalView editor: "+ e);
|
|
41 |
System.err.println(InternalViewUIMessages.bind(InternalViewUIMessages.error_backto_internalview, e));
|
|
41 | 42 |
Log.printStackTrace(e); |
42 | 43 |
} |
43 | 44 |
} |
tmp/org.txm.internalview.rcp/src/org/txm/internalview/rcp/messages/messages.properties (revision 1055) | ||
---|---|---|
1 | 1 |
|
2 | 2 |
ComputeInternalView_1 = Error: selection is not a Corpus |
3 |
editor_composite_navigation=navigation |
|
4 |
editor_error_backto_match=Error while internal view go back to |
|
3 | 5 |
|
4 | 6 |
InternalViewEditor_16 = Error: |
5 | 7 |
InternalViewEditor_25 = QUERY: |
6 | 8 |
InternalViewEditor_4 = Structure |
7 | 9 |
InternalViewEditor_5 = Structural properties |
10 |
|
|
11 |
error_backto_internalview=Error: could not open InternalView editor: {0} |
tmp/org.txm.internalview.rcp/src/org/txm/internalview/rcp/messages/InternalViewUIMessages.java (revision 1055) | ||
---|---|---|
14 | 14 |
private static final String BUNDLE_NAME = "org.txm.internalview.rcp.messages.messages"; //$NON-NLS-1$ |
15 | 15 |
|
16 | 16 |
public static String ComputeInternalView_1; |
17 |
|
|
18 |
public static String editor_composite_navigation; |
|
19 |
|
|
20 |
public static String editor_error_backto_match; |
|
17 | 21 |
|
18 | 22 |
public static String InternalViewEditor_16; |
19 | 23 |
public static String InternalViewEditor_25; |
20 | 24 |
public static String InternalViewEditor_4; |
21 | 25 |
public static String InternalViewEditor_5; |
22 | 26 |
|
27 |
public static String error_backto_internalview; |
|
28 |
|
|
23 | 29 |
static { |
24 | 30 |
// initialize resource bundle |
25 | 31 |
Utf8NLS.initializeMessages(BUNDLE_NAME, InternalViewUIMessages.class); |
tmp/org.txm.internalview.rcp/src/org/txm/internalview/rcp/editors/InternalViewEditor.java (revision 1055) | ||
---|---|---|
140 | 140 |
structuralUnitPropertiesSelector.addSelectionListener(computeSelectionListener); |
141 | 141 |
|
142 | 142 |
|
143 |
navigationPanel = getBottomToolbar().installGLComposite("navigation", 4 , false);
|
|
143 |
navigationPanel = getBottomToolbar().installGLComposite(InternalViewUIMessages.editor_composite_navigation, 4 , false);
|
|
144 | 144 |
navigationPanel.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, false)); |
145 | 145 |
|
146 | 146 |
|
... | ... | |
322 | 322 |
n = CQPSearchEngine.getCqiClient().cpos2Struc(sup.getQualifiedName(), cpos); |
323 | 323 |
return goToPage(n[0]); |
324 | 324 |
} catch (Exception e) { |
325 |
System.out.println("Error while internal view go back to " + m);
|
|
325 |
System.out.println(InternalViewUIMessages.editor_error_backto_match + m);
|
|
326 | 326 |
Log.printStackTrace(e); |
327 | 327 |
} |
328 | 328 |
return false; |
... | ... | |
350 | 350 |
navigationPanel.layout(); |
351 | 351 |
} |
352 | 352 |
|
353 |
|
|
354 |
|
|
355 | 353 |
@Override |
356 | 354 |
public void updateEditorFromResult(boolean update) { |
357 | 355 |
try { |
Formats disponibles : Unified diff