Révision 3879

TXM/trunk/bundles/org.txm.treesearch.rcp/src/org/txm/treesearch/command/SendToTreeSearch.java (revision 3879)
115 115
		
116 116
		if (word_id != null) {
117 117
			//WordProperty p_id = editor.getCorpus().getProperty("id");
118
			Selection sel = CQPSearchEngine.getEngine().query(editor.getCorpus(), new CQLQuery("[id=\""+word_id+"\" & _.text_id=\""+editor.getResult().getName()+"\"]"), "TMP", false);
118
			Selection sel = CQPSearchEngine.getEngine().query(editor.getCorpus(), new CQLQuery("[id=\""+word_id+"\" & _.text_id=\""+editor.getResult().getName()+"\"]"), "TMP", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
119 119
			if (sel.getNMatch() > 0) {
120 120
				kp = sel.getMatches().get(0).getStart();
121 121
			}
122 122
		}
123 123
		
124 124
		if (kp == -1) {
125
			Log.warning("No word found to show");
125
			Log.warning(Messages.noWordFoundToShow);
126 126
			return null;
127 127
		}
128 128
		
......
184 184
		}
185 185
		
186 186
		if (ts == null) {
187
			Log.warning("No syntactic index found.");
187
			Log.warning(Messages.noSyntacticIndexFound);
188 188
			return null;
189 189
		}
190 190
		//ts.setQuery(concordance.getQuery());
TXM/trunk/bundles/org.txm.treesearch.rcp/src/org/txm/treesearch/preferences/TreeSearchPreferencePage.java (revision 3879)
25 25
		this.addField(new StringFieldEditor(TreeSearchPreferences.DEFAULT_VISUALISATION, Messages.DefaultSyntacticVisualisation, this.getFieldEditorParent()));
26 26
		
27 27
		String[][] values = {
28
				{"RATIO", "-2"},
29
				{"OVER", "-1"}, 
30
				{"ABOVE", ""+EModelService.ABOVE}, 
31
				{"BELOW", ""+EModelService.BELOW}, 
32
				{"LEFT_OF", ""+EModelService.LEFT_OF}, 
33
				{"RIGHT_OF", ""+EModelService.RIGHT_OF}};
28
				{"RATIO", "-2"}, //$NON-NLS-1$ //$NON-NLS-2$
29
				{"OVER", "-1"},  //$NON-NLS-1$ //$NON-NLS-2$
30
				{"ABOVE", ""+EModelService.ABOVE},  //$NON-NLS-1$ //$NON-NLS-2$
31
				{"BELOW", ""+EModelService.BELOW},  //$NON-NLS-1$ //$NON-NLS-2$
32
				{"LEFT_OF", ""+EModelService.LEFT_OF},  //$NON-NLS-1$ //$NON-NLS-2$
33
				{"RIGHT_OF", ""+EModelService.RIGHT_OF}}; //$NON-NLS-1$ //$NON-NLS-2$
34 34
		
35
		backtotext_position = new ComboFieldEditor(TreeSearchPreferences.BACKTOTREE_POSITION, "Linked editor position", values, getFieldEditorParent());
35
		backtotext_position = new ComboFieldEditor(TreeSearchPreferences.BACKTOTREE_POSITION, Messages.linkedEditorPosition, values, getFieldEditorParent());
36 36
		addField(backtotext_position);
37 37
	}
38 38
	
TXM/trunk/bundles/org.txm.treesearch.rcp/src/org/txm/treesearch/rcp/messages.properties (revision 3879)
11 11
SelectionIsNotACorpusP0=Selection is not a corpus: {0}
12 12
SelectionIsNotALineP0=Selection is not a Line: {0}
13 13
DefaultSyntacticVisualisation=Default Syntactic annotation
14
linkedEditorPosition=Linked editor position
15
noSyntacticIndexFound=No syntactic index found.
16
noWordFoundToShow=No word found to show
14 17
SyntacticAnnotation=Syntactic annotation
15 18
SyntacticTree=Syntactic tree
16 19
SyntacticVisualisation=Syntactic representation
17 20
SyntaxRepresentationP0=Syntax representations: {0}
21
visualisation=Visualisation
22
visualisationMode=Visualisation mode
TXM/trunk/bundles/org.txm.treesearch.rcp/src/org/txm/treesearch/rcp/Messages.java (revision 3879)
33 33
	public static String SyntacticTree;
34 34

  
35 35
	public static String DefaultSyntacticVisualisation;
36

  
37
	public static String linkedEditorPosition;
38
	public static String noSyntacticIndexFound;
39

  
40
	public static String noWordFoundToShow;
41

  
36 42
	public static String SyntacticVisualisation;
37 43

  
38 44
	public static String SyntaxRepresentationP0;
45
	public static String visualisation;
46

  
47
	public static String visualisationMode;
39 48
	static {
40 49
		// initialize resource bundle
41 50
		NLS.initializeMessages(BUNDLE_NAME, Messages.class);
TXM/trunk/bundles/org.txm.treesearch.rcp/src/org/txm/treesearch/editor/TreeSearchEditor.java (revision 3879)
185 185
		queryPanel.setLayout(qlayout);
186 186
		
187 187
		visuLabel = new Label(getMainParametersComposite(), SWT.NONE);
188
		visuLabel.setToolTipText("Visualisation mode");
189
		visuLabel.setText("Visualisation");
188
		visuLabel.setToolTipText(Messages.visualisationMode);
189
		visuLabel.setText(Messages.visualisation);
190 190
		
191 191
		visuCombo = new Combo(getMainParametersComposite(), SWT.READ_ONLY);
192 192
		GridData gdataV = new GridData(SWT.FILL, SWT.CENTER, false, false);
......
208 208
		});
209 209
		
210 210
		// first line
211
		GLComposite line1 = new GLComposite(queryPanel, SWT.NONE, "line1");
211
		GLComposite line1 = new GLComposite(queryPanel, SWT.NONE, "line1"); //$NON-NLS-1$
212 212
		line1.getLayout().numColumns = 13;
213 213
		line1.getLayout().horizontalSpacing = 5;
214 214
		line1.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
215 215
		
216 216
		// second line
217
		GLComposite line2 = new GLComposite(queryPanel, SWT.NONE, "line2");
217
		GLComposite line2 = new GLComposite(queryPanel, SWT.NONE, "line2"); //$NON-NLS-1$
218 218
		line2.getLayout().numColumns = 4;
219 219
		line2.getLayout().horizontalSpacing = 5;
220 220
		line2.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
......
269 269
					queryAreaLabel.setVisible(true);
270 270
					queryAreaLayoutData.grabExcessVerticalSpace = true;
271 271
					queryAreaLayoutData.grabExcessHorizontalSpace = true;
272
					if (currentSelector.getEngine().equals("UD")) {
272
					if (currentSelector.getEngine().equals("UD")) { //$NON-NLS-1$
273 273
						queryAreaLayoutData.minimumHeight = 0;
274 274
						queryAreaLayoutData.heightHint = 00;
275 275
					} else {
......
483 483
		}
484 484
		else {
485 485
			visuCombo.removeAll();
486
			visuCombo.setText("");
486
			visuCombo.setText(""); //$NON-NLS-1$
487 487
			visuCombo.setEnabled(false);
488 488
			visuCombo.setVisible(false);
489 489
			visuLabel.setVisible(false);
......
607 607
				subSpinner.refresh();
608 608
				reloadGraph();
609 609
			} else {
610
				svgPanel.setText("");
610
				svgPanel.setText(""); //$NON-NLS-1$
611 611
				sentSpinner.setEnabled(false);
612 612
				subSpinner.setEnabled(false);
613 613
			}

Formats disponibles : Unified diff