Révision 3849

TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/wizard/MyPageTwo.java (revision 3849)
33 33

  
34 34
	  public MyPageTwo() {
35 35

  
36
	    super("Second Page");
36
	    super("Second Page"); //$NON-NLS-1$
37 37

  
38
	    setTitle("Second Page");
38
	    setTitle("Second Page"); //$NON-NLS-1$
39 39

  
40
	    setDescription("Now this is the second page");
40
	    setDescription("Now this is the second page"); //$NON-NLS-1$
41 41

  
42 42
	    setControl(text1);
43 43

  
......
59 59

  
60 60
	    Label label1 = new Label(container, SWT.NONE);
61 61

  
62
	    label1.setText("Say hello to Fred");
62
	    label1.setText("Say hello to Fred"); //$NON-NLS-1$
63 63

  
64 64

  
65 65

  
66 66
	    text1 = new Text(container, SWT.BORDER | SWT.SINGLE);
67 67

  
68
	    text1.setText("");
68
	    text1.setText(""); //$NON-NLS-1$
69 69

  
70 70
	    text1.addKeyListener(new KeyListener() {
71 71

  
......
103 103

  
104 104
	    Label labelCheck = new Label(container, SWT.NONE);
105 105

  
106
	    labelCheck.setText("This is a check");
106
	    labelCheck.setText("This is a check"); //$NON-NLS-1$
107 107

  
108 108
	    Button check = new Button(container, SWT.CHECK);
109 109

  
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/ImportClipboardText.java (revision 3849)
106 106
			
107 107
			String lang = TBXPreferences.getInstance().getString(TBXPreferences.CLIPBOARD_IMPORT_DEFAULT_LANG);
108 108
			boolean askLang = TBXPreferences.getInstance().getBoolean(TBXPreferences.CLIPBOARD_IMPORT_ASK_LANG);
109
			List<String> langs = Arrays.asList("fr", "en");
109
			List<String> langs = Arrays.asList("fr", "en"); //$NON-NLS-1$ //$NON-NLS-2$
110 110
			//ComboDialog dialog = new ComboDialog(HandlerUtil.getActiveShell(event), TXMUIMessages.SelectTheImportLanguageToUse, TXMUIMessages.WhatLanguageMustBeUsedToImportTheClipboardContent, lang);
111 111
			ComboDialog dialog = new ComboDialog(HandlerUtil.getActiveShell(event), TXMUIMessages.textLanguage, langs, lang, SWT.SINGLE);
112 112
			if (askLang) {
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/editor/PrintHexacode.java (revision 3849)
85 85
				}
86 86
				
87 87
				for (int i = 0 ; i < text.length() ; i++) {
88
					System.out.println("c="+text.charAt(i)+"	x="+Integer.toHexString(text.charAt(i)) + " name="+Character.getName(text.charAt(i)));				
88
					System.out.println("c="+text.charAt(i)+"	x="+Integer.toHexString(text.charAt(i)) + " name="+Character.getName(text.charAt(i)));				 //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
89 89
				}
90 90
			}
91 91
		}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/commands/RecoverCorporaFromInstalls.java (revision 3849)
68 68

  
69 69
		File corporaDir = new File(txmhomedir, "corpora"); //$NON-NLS-1$
70 70

  
71
		String previousVersions[] = { "0.8.2", "0.8.1", "0.8.0", "0.7.9" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
71
		String previousVersions[] = { "0.8.2", "0.8.1", "0.8.0", "0.7.9" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
72 72
		String previousVersionLabels[] = new String[previousVersions.length];
73 73
		File previousVersionCorporaDirectories[] = new File[previousVersions.length];
74 74

  
......
106 106
		for (int i = 0; i < previousVersions.length; i++) {
107 107
			if (previousVersionCorporaDirectories[i].exists()
108 108
					&& previousVersionCorporaDirectories[i].listFiles(IOUtils.HIDDENFILE_FILTER).length > 0) {
109
				previousVersionLabels[i] = "" + (n++) + ". " + previousVersionLabels[i];
109
				previousVersionLabels[i] = "" + (n++) + ". " + previousVersionLabels[i]; //$NON-NLS-1$ //$NON-NLS-2$
110 110
				selectedCorporaDirs.add(previousVersionLabels[i]); //$NON-NLS-1$ //$NON-NLS-2$
111 111
			}
112 112
		}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/ApplicationWorkbenchWindowAdvisor.java (revision 3849)
203 203
		}
204 204
		
205 205
		if (notSaved.size() > 0) {
206
			if (mess.length() > 0) mess.append("\n\n");
206
			if (mess.length() > 0) mess.append("\n\n"); //$NON-NLS-1$
207 207
			mess.append(TXMUIMessages.SomeAnnotationsAreNotSavedAndWillBeLostAfterTXMIsClosed);
208 208
			for (CorpusBuild corpus : notSaved.keySet())  {
209 209
				mess.append("\n- "+corpus.getName()+": "+corpus.getSimpleDetails()); //$NON-NLS-1$ //$NON-NLS-2$
......
215 215
		}
216 216
		
217 217
		if (altered.size() > 0 || notSaved.size() > 0) {
218
			String title = "";
218
			String title = ""; //$NON-NLS-1$
219 219
			if (altered.size() > 0) title += TXMUIMessages.SomeResultHaveBeenManuallyModified;
220 220
			if (notSaved.size() > 0) {
221
				if (title.length() > 0) title += " & ";
221
				if (title.length() > 0) title += " & "; //$NON-NLS-1$
222 222
				title += TXMUIMessages.SomeAnnotationsAreNotSaved;
223 223
			}
224 224
			
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/ApplicationWorkbenchAdvisor.java (revision 3849)
199 199

  
200 200
						// CREATE THE CLOSE CONTROL FILE
201 201
						String rootPath = Platform.getInstanceLocation().getURL().toURI().getPath();
202
						lockFile = new File(rootPath, "txm_was_not_closed_correctly.lock");
202
						lockFile = new File(rootPath, "txm_was_not_closed_correctly.lock"); //$NON-NLS-1$
203 203
						Log.fine("Lock file path: "+lockFile);
204 204
						if (lockFile.exists()) { // the close control file was not deleted //$NON-NLS-1$
205 205
							lockFile.delete(); //$NON-NLS-1$
......
216 216
									public void run() {
217 217
										int choice = MessageDialog.open(MessageDialog.QUESTION_WITH_CANCEL, Display.getDefault().getActiveShell(),
218 218
												TXMUIMessages.warning, 
219
												TXMUIMessages.TXMWasNotCorrectlyStopped+"\n"+NLS.bind(TXMUIMessages.DoYouWantToStartADiagnosticOfYourCorporaEtc, checkupResultFile)
219
												TXMUIMessages.TXMWasNotCorrectlyStopped+"\n"+NLS.bind(TXMUIMessages.DoYouWantToStartADiagnosticOfYourCorporaEtc, checkupResultFile) //$NON-NLS-1$
220 220
												, SWT.NONE, new String[] {TXMUIMessages.Cancel, TXMUIMessages.OK, TXMUIMessages.OKOpenTheDiagnosticFile});
221 221

  
222 222
										if (choice != 0) {
......
233 233
						lockFile.createNewFile(); //$NON-NLS-1$
234 234

  
235 235
						String s = getVersionLevel();
236
						if ("STABLE".equals(RCPPreferences.getInstance().getString(RCPPreferences.UPDATE_LEVEL)) && s.length() == 0) {
236
						if ("STABLE".equals(RCPPreferences.getInstance().getString(RCPPreferences.UPDATE_LEVEL)) && s.length() == 0) { //$NON-NLS-1$
237 237
							Log.info(TXMUIMessages.info_txmIsReady);
238 238
						} else {
239 239
							String s2 = TXMUIMessages.youAreUsingAnAlphaBetaVersionOfTXMItIsNotRecommendedToUseItForYourWork;
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/testers/ExpertEnabled.java (revision 3849)
6 6
public class ExpertEnabled extends PropertyTester {
7 7

  
8 8
	public static final String PROPERTY_NAMESPACE = "org.txm.rcp.testers"; //$NON-NLS-1$
9
	public static final String PROPERTY_EXPERT_ENABLED = "ExpertEnabled";
9
	public static final String PROPERTY_EXPERT_ENABLED = "ExpertEnabled"; //$NON-NLS-1$
10 10
	
11 11
	@Override
12 12
	public boolean test(Object receiver, String property, Object[] args,
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/testers/IsXTZCorpus.java (revision 3849)
9 9
public class IsXTZCorpus extends PropertyTester {
10 10

  
11 11
	public static final String PROPERTY_NAMESPACE = "org.txm.rcp.testers.corpus"; //$NON-NLS-1$
12
	public static final String PROPERTY_CAN_SAVE = "xtzCorpus";
12
	public static final String PROPERTY_CAN_SAVE = "xtzCorpus"; //$NON-NLS-1$
13 13
	
14 14
	@Override
15 15
	public boolean test(Object receiver, String property, Object[] args,
......
25 25
			CQPCorpus c = (CQPCorpus) receiver;
26 26
			String script = c.getProject().getImportModuleName();
27 27
			if (script == null) return false;
28
			return script.startsWith("xtz");
28
			return script.startsWith("xtz"); //$NON-NLS-1$
29 29
		}
30 30
		return false;
31 31
	}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/testers/ToolboxTester.java (revision 3849)
34 34
			Object expectedValue) {
35 35
		if (PROPERTY_STATE_ENGINE_READY.equals(property)) {
36 36
			//System.out.println("TEST: "+property+" = "+Toolbox.getEngineManager(EngineType.STAT).getEngine("R").getState()); //$NON-NLS-1$ //$NON-NLS-2$
37
			return Toolbox.getEngineManager(EngineType.STATS).getEngine("R").isRunning();
37
			return Toolbox.getEngineManager(EngineType.STATS).getEngine("R").isRunning(); //$NON-NLS-1$
38 38
		} else if (PROPERTY_SEARCH_ENGINE_READY.equals(property)) {
39 39
			System.out.println("TEST: "+property+" = "+CQPSearchEngine.isInitialized()); //$NON-NLS-1$ //$NON-NLS-2$
40 40
			return CQPSearchEngine.isInitialized();
41 41
		} else if (PROPERTY_COMPUTABLE.equals(property)) {
42
			System.out.println("TEST: receiver="+receiver+" property="+property+" args="+args+" expectedValue="+expectedValue); //$NON-NLS-1$ //$NON-NLS-2$
42
			System.out.println("TEST: receiver="+receiver+" property="+property+" args="+args+" expectedValue="+expectedValue); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
43 43
			return false;
44 44
		} else if (PROPERTY_PERSISTABLE.equals(property)) {
45 45
			if (receiver == null) return false;
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/corpuswizard/ImportWizard.java (revision 3849)
89 89
					project = new Project(Toolbox.workspace, name);
90 90
				}
91 91
				project.setSourceDirectory(path.getAbsolutePath());
92
				project.setDescription(NLS.bind(TXMUIMessages.DashImportedByP0, System.getProperty("user.name"))); //$NON-NLS-2$
92
				project.setDescription(NLS.bind(TXMUIMessages.DashImportedByP0, System.getProperty("user.name"))); //$NON-NLS-2$ //$NON-NLS-1$
93 93
				project.setLang(Locale.getDefault().getLanguage().toLowerCase());
94 94
				
95 95
				project.getEditionDefinition("default").setEnableCollapsible(false); //$NON-NLS-1$
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/cmdparameters/TXMResultParametersView.java (revision 3849)
431 431
				Label l2 = new Label(panel, SWT.NONE);
432 432
				if (value != null) {
433 433
					TypeVariable<?>[] pp = value.getClass().getTypeParameters();
434
					l2.setText(clazz.getSimpleName() + "=" + value);
434
					l2.setText(clazz.getSimpleName() + "=" + value); //$NON-NLS-1$
435 435
				}
436 436
				else {
437
					l2.setText(clazz.getSimpleName() + "=" + value);
437
					l2.setText(clazz.getSimpleName() + "=" + value); //$NON-NLS-1$
438 438
				}
439 439
				c = l2;
440 440
			}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/BasesView.java (revision 3849)
141 141
				TreeSelection selection = (TreeSelection) tv.getSelection();
142 142
				if (selection.getFirstElement() instanceof CQPCorpus) {
143 143
					CQPCorpus corpus = (CQPCorpus) selection.getFirstElement();
144
					File selectedItem = new File(corpus.getProjectDirectory(), "cqp/" + corpus.getID() + ".cqp");
144
					File selectedItem = new File(corpus.getProjectDirectory(), "cqp/" + corpus.getID() + ".cqp"); //$NON-NLS-1$ //$NON-NLS-2$
145 145
					if (selectedItem.exists())
146 146
						EditFile.openfile(selectedItem.getAbsolutePath());
147 147
				}
......
217 217
		public String getText(Object element) {
218 218
			String title = ((TXMResult) element).getName();
219 219
			if (title.length() > 41) { // limit text length
220
				title = title.substring(0, 40) + "...";
220
				title = title.substring(0, 40) + "..."; //$NON-NLS-1$
221 221
			}
222 222
			return title;
223 223
		}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/fileexplorer/MacroExplorer.java (revision 3849)
274 274
					IWorkbenchWindow acWindow = TXMWindows.getActiveWindow();
275 275
					IWorkbenchPart page = acWindow.getActivePage().getActivePart();
276 276
					
277
					if (selectedItem.getName().toLowerCase().endsWith(".groovy")) {
277
					if (selectedItem.getName().toLowerCase().endsWith(".groovy")) { //$NON-NLS-1$
278 278
						ExecuteGroovyMacro.execute(selectedItem.getAbsolutePath(), page, selection, null, null, null);
279 279
					}
280 280
					else {
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/fileexplorer/MacroTreeLabelProvider.java (revision 3849)
108 108
		File f = ((File) element);
109 109
		ImageDescriptor imageDescriptor = null;
110 110
		if (f.isFile()) {
111
			if (f.getName().endsWith("Macro.groovy")) {
111
			if (f.getName().endsWith("Macro.groovy")) { //$NON-NLS-1$
112 112
				imageDescriptor = AbstractUIPlugin
113 113
						.imageDescriptorFromPlugin(Application.PLUGIN_ID,
114 114
								IImageKeys.SCRIPT_RUN);
115 115
			}
116
			else if (f.getName().endsWith(".groovy")) {
116
			else if (f.getName().endsWith(".groovy")) { //$NON-NLS-1$
117 117
				imageDescriptor = AbstractUIPlugin
118 118
						.imageDescriptorFromPlugin(Application.PLUGIN_ID,
119 119
								IImageKeys.SCRIPT);
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorpusViewContentProvider.java (revision 3849)
158 158
			
159 159
			// add projects of corpora projects & not the corpora project & not open
160 160
			IWorkspace rcpWorkspace = ResourcesPlugin.getWorkspace();
161
			IProject corporaDirectory = rcpWorkspace.getRoot().getProject("corpora");
161
			IProject corporaDirectory = rcpWorkspace.getRoot().getProject("corpora"); //$NON-NLS-1$
162 162
			String path = corporaDirectory.getLocation().toOSString();
163 163
			IProject projects[];
164 164
			projects = rcpWorkspace.getRoot().getProjects();
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorporaView.java (revision 3849)
206 206
		treeViewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
207 207
		PlatformUI.getWorkbench().getHelpSystem().setHelp(treeViewer.getControl(), TXMUIMessages.corpus);
208 208
		getSite().setSelectionProvider(treeViewer);
209
		treeViewer.setColumnProperties(new String[] { "name" }); // mandatory to enable edit mode -> used to identify columns
209
		treeViewer.setColumnProperties(new String[] { "name" }); // mandatory to enable edit mode -> used to identify columns //$NON-NLS-1$
210 210
		
211 211
		
212 212
		// ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(treeViewer) {
......
398 398
		for (int i = 0; i < cmds.length; i++) {
399 399
			try {
400 400
				if (cmds[i].getReturnType() != null) { // RCP hack using the command return type to associate the selection class with the command
401
					Log.fine("CorporaView.createPartControl(): registering command " + cmds[i].getId() + " for TXMResult of type " + cmds[i].getReturnType().getId() + ".");
401
					Log.fine("CorporaView.createPartControl(): registering command " + cmds[i].getId() + " for TXMResult of type " + cmds[i].getReturnType().getId() + "."); //$NON-NLS-3$
402 402
					doubleClickInstalledCommands.put(cmds[i].getReturnType().getId(), cmds[i].getId());
403 403
				}
404 404
			}
......
514 514
		});
515 515
		
516 516
		final int IMAGE_MARGIN = 2;
517
		final Image icon = IImageKeys.getImage("icons/decorators/bullet_green.png");
518
		final Image icon_lock = IImageKeys.getImage("icons/decorators/lock.png");
517
		final Image icon = IImageKeys.getImage("icons/decorators/bullet_green.png"); //$NON-NLS-1$
518
		final Image icon_lock = IImageKeys.getImage("icons/decorators/lock.png"); //$NON-NLS-1$
519 519
		
520 520
		// FIXME: test to show icon for results that are user persistable
521 521
		// final Image icon = AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.gef","platform:/plugin/org.eclipse.gef/org/eclipse/gef/internal/icons/pinned.gif").createImage();
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorpusViewLabelProvider.java (revision 3849)
20 20
		
21 21
		String txt = super.getText(element);
22 22
		if (txt != null && txt.length() > TXMEditor.MAX_NAME_LENGTH) {
23
			txt = txt.substring(0, TXMEditor.MAX_NAME_LENGTH - 1) + "...";
23
			txt = txt.substring(0, TXMEditor.MAX_NAME_LENGTH - 1) + "..."; //$NON-NLS-1$
24 24
		}
25 25
		
26
		return txt.replace("\n", " ");
26
		return txt.replace("\n", " "); //$NON-NLS-1$ //$NON-NLS-2$
27 27
	}
28 28

  
29 29
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/debug/TXMEditorSWTDebugView.java (revision 3849)
164 164
		treeViewer.getTree().setLinesVisible(true);
165 165

  
166 166
		nameColumn = new TreeViewerColumn(treeViewer, SWT.NONE);
167
		nameColumn.getColumn().setText("Element");
167
		nameColumn.getColumn().setText("Element"); //$NON-NLS-1$
168 168
		nameColumn.getColumn().pack();
169 169
		nameColumn.setLabelProvider(new CellLabelProvider() {
170 170
			@Override
......
174 174
				if (element instanceof GLComposite) {
175 175
					GLComposite c = (GLComposite)element;
176 176
					String s = c.getName();
177
					if (isHighlighted(c)) s += "*";
177
					if (isHighlighted(c)) s += "*"; //$NON-NLS-1$
178 178
					cell.setText(s);
179 179
				} else if(element instanceof Button) {
180 180
					Button c = (Button) element;
181
					cell.setText(c.getClass().getSimpleName()+" '"+c.getText()+"'");
181
					cell.setText(c.getClass().getSimpleName()+" '"+c.getText()+"'"); //$NON-NLS-1$ //$NON-NLS-2$
182 182
				} else if(element instanceof Label) {
183 183
					Label c = (Label) element;
184
					cell.setText(c.getClass().getSimpleName()+" '"+c.getText()+"'");
184
					cell.setText(c.getClass().getSimpleName()+" '"+c.getText()+"'"); //$NON-NLS-1$ //$NON-NLS-2$
185 185
				} else if(element instanceof Spinner) {
186 186
					Spinner c = (Spinner) element;
187
					cell.setText(c.getClass().getSimpleName()+" '"+c.getSelection()+"'\n\tmin="+c.getMinimum()+" max="+c.getMaximum());
187
					cell.setText(c.getClass().getSimpleName()+" '"+c.getSelection()+"'\n\tmin="+c.getMinimum()+" max="+c.getMaximum()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
188 188
				} else {
189 189
					cell.setText(element.getClass().getSimpleName());
190 190
				}
......
255 255
		});
256 256

  
257 257
		layoutColumn = new TreeViewerColumn(treeViewer, SWT.NONE);
258
		layoutColumn.getColumn().setText("Layout");
258
		layoutColumn.getColumn().setText("Layout"); //$NON-NLS-1$
259 259
		layoutColumn.getColumn().pack();
260 260
		layoutColumn.setLabelProvider(new CellLabelProvider() {
261 261
			@Override
......
266 266
					String s = getLayoutDetails(((Composite)element).getLayout());
267 267
					cell.setText(s);
268 268
				} else {
269
					cell.setText("-");
269
					cell.setText("-"); //$NON-NLS-1$
270 270
				}
271 271
			}
272 272
		});
273 273

  
274 274
		layoutDataColumn = new TreeViewerColumn(treeViewer, SWT.NONE);
275
		layoutDataColumn.getColumn().setText("L-data");
275
		layoutDataColumn.getColumn().setText("L-data"); //$NON-NLS-1$
276 276
		layoutDataColumn.getColumn().pack();
277 277
		layoutDataColumn.setLabelProvider(new CellLabelProvider() {
278 278
			@Override
......
283 283
					String s = getLayoutDataDetails(((Control)element).getLayoutData());
284 284
					cell.setText(s);
285 285
				}else {
286
					cell.setText("-");
286
					cell.setText("-"); //$NON-NLS-1$
287 287
				}
288 288
			}
289 289
		});	
290 290

  
291 291
	}
292 292
	protected String getLayoutDataDetails(Object layoutData) {
293
		if (layoutData == null) return "no layout data";
293
		if (layoutData == null) return "no layout data"; //$NON-NLS-1$
294 294

  
295 295
		if (layoutData instanceof GridData) {
296 296
			GridData data = (GridData)layoutData;
297
			return "GD: heightHint="+data.heightHint+" widthHint="+data.widthHint
298
					+"\n horizontalAlignment="+data.horizontalAlignment+" horizontalIndent="+data.horizontalIndent+" horizontalSpan="+data.horizontalSpan
299
					+"\n minimumHeight="+data.minimumHeight+" minimumWidth="+data.minimumWidth
300
					+"\n verticalAlignment="+data.verticalAlignment+" verticalIndent="+data.verticalIndent+" verticalSpan="+data.verticalSpan;
297
			return "GD: heightHint="+data.heightHint+" widthHint="+data.widthHint //$NON-NLS-1$ //$NON-NLS-2$
298
					+"\n horizontalAlignment="+data.horizontalAlignment+" horizontalIndent="+data.horizontalIndent+" horizontalSpan="+data.horizontalSpan //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
299
					+"\n minimumHeight="+data.minimumHeight+" minimumWidth="+data.minimumWidth //$NON-NLS-1$ //$NON-NLS-2$
300
					+"\n verticalAlignment="+data.verticalAlignment+" verticalIndent="+data.verticalIndent+" verticalSpan="+data.verticalSpan; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
301 301
		} else if (layoutData instanceof TableWrapData) {
302 302
			TableWrapData data = (TableWrapData)layoutData;
303
			return "TWD: heightHint="+data.heightHint+" align="+data.align
304
					+"\n colspan="+data.colspan+" heightHint="+data.heightHint+" indent="+data.indent
305
					+"\n maxHeight="+data.maxHeight+" maxWidth="+data.maxWidth
306
					+"\n rowspan="+data.rowspan+" valign="+data.valign+" grabHorizontal="+data.grabHorizontal+" grabVertical="+data.grabVertical;
303
			return "TWD: heightHint="+data.heightHint+" align="+data.align //$NON-NLS-1$ //$NON-NLS-2$
304
					+"\n colspan="+data.colspan+" heightHint="+data.heightHint+" indent="+data.indent //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
305
					+"\n maxHeight="+data.maxHeight+" maxWidth="+data.maxWidth //$NON-NLS-1$ //$NON-NLS-2$
306
					+"\n rowspan="+data.rowspan+" valign="+data.valign+" grabHorizontal="+data.grabHorizontal+" grabVertical="+data.grabVertical; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
307 307
		} else if (layoutData instanceof FormData) {
308 308
			FormData data = (FormData)layoutData;
309
			return "FD: height="+data.height+" width="+data.width
310
					+"\n bottom="+data.bottom+" left="+data.left+" right="+data.right+" top="+data.top;
309
			return "FD: height="+data.height+" width="+data.width //$NON-NLS-1$ //$NON-NLS-2$
310
					+"\n bottom="+data.bottom+" left="+data.left+" right="+data.right+" top="+data.top; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
311 311
		}
312 312
		return layoutData.toString();
313 313
	}
......
331 331
	}
332 332

  
333 333
	public static String getLayoutDetails(Layout layout) {
334
		if (layout == null) return "no layout";
334
		if (layout == null) return "no layout"; //$NON-NLS-1$
335 335

  
336 336
		if (layout instanceof GridLayout) {
337 337
			GridLayout gl = (GridLayout)layout;
338
			return "GL: "+gl.horizontalSpacing+" "+gl.verticalSpacing+" "+gl.marginHeight+" "+gl.marginWidth
339
					+"\n "+gl.marginBottom+" "+gl.marginLeft+" "+gl.marginRight+" "+gl.marginTop
340
					+"\n "+gl.numColumns+" "+gl.makeColumnsEqualWidth;
338
			return "GL: "+gl.horizontalSpacing+" "+gl.verticalSpacing+" "+gl.marginHeight+" "+gl.marginWidth //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
339
					+"\n "+gl.marginBottom+" "+gl.marginLeft+" "+gl.marginRight+" "+gl.marginTop //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
340
					+"\n "+gl.numColumns+" "+gl.makeColumnsEqualWidth; //$NON-NLS-1$ //$NON-NLS-2$
341 341

  
342 342
		} else if (layout instanceof FormLayout) {
343 343
			FormLayout gl = (FormLayout)layout;
344
			return "FL: marginBottom="+gl.marginBottom+" marginHeight="+gl.marginHeight+" marginWidth="+gl.marginWidth
345
					+"\n marginLeft="+gl.marginLeft+" marginRight="+gl.marginRight+" marginTop="+gl.marginTop
346
					+"\n spacing="+gl.spacing;
344
			return "FL: marginBottom="+gl.marginBottom+" marginHeight="+gl.marginHeight+" marginWidth="+gl.marginWidth //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
345
					+"\n marginLeft="+gl.marginLeft+" marginRight="+gl.marginRight+" marginTop="+gl.marginTop //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
346
					+"\n spacing="+gl.spacing; //$NON-NLS-1$
347 347

  
348 348
		} else {
349 349
			return layout.toString();
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/views/debug/EnginesDebugView.java (revision 3849)
137 137
			@Override
138 138
			public String getText(Object element) {
139 139
				if (element instanceof Engine) {
140
					return ((Engine)element).getName() + (((Engine)element).isRunning()?" OK":" KO");
140
					return ((Engine)element).getName() + (((Engine)element).isRunning()?" OK":" KO"); //$NON-NLS-1$ //$NON-NLS-2$
141 141
				} else if (element instanceof EnginesManager) {
142 142
					return ((EnginesManager)element).getEnginesType().name();
143 143
				} else {
144
					return "error";
144
					return "error"; //$NON-NLS-1$
145 145
				}
146 146
			}
147 147
		});
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/scripts/ExecuteGroovyMacro.java (revision 3849)
67 67
	public Object execute(ExecutionEvent event) throws ExecutionException {
68 68

  
69 69
		String filenameParameter = event.getParameter("org.txm.rcp.command.parameter.file"); //$NON-NLS-1$
70
		List<String> stringArgs = Arrays.asList(event.getParameter("args").split("\t")); //$NON-NLS-1$
70
		List<String> stringArgs = Arrays.asList(event.getParameter("args").split("\t")); //$NON-NLS-1$ //$NON-NLS-2$
71 71
		
72 72
		// the file to execute
73 73
		String result = ""; //$NON-NLS-1$
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/scripts/ExecuteGroovyScript.java (revision 3849)
164 164
		//		
165 165
		String scriptRootDir = Toolbox.getTxmHomePath() + "/scripts"; //$NON-NLS-1$
166 166
		File currentRootDir = new File(scriptRootDir, "groovy/user"); //$NON-NLS-1$
167
		if (stringArgs == null) stringArgs = "";
168
		return executeScript(currentRootDir, scriptpath, page, selection, modal, Arrays.asList(stringArgs.split("\t")), null, null);
167
		if (stringArgs == null) stringArgs = ""; //$NON-NLS-1$
168
		return executeScript(currentRootDir, scriptpath, page, selection, modal, Arrays.asList(stringArgs.split("\t")), null, null); //$NON-NLS-1$
169 169
	}
170 170

  
171 171
	/**
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/export/ExportCommandDialog.java (revision 3849)
83 83
		if (previousPath == null || previousPath.length() == 0) {
84 84
			previousPath = System.getProperty("user.home"); // //$NON-NLS-1$
85 85
		}
86
		textField.setText(previousPath + "/" + result.getProject().getName().toUpperCase() + "-" +result.getResultType() + "-" +result.getValidFileName() + "-"+ Toolbox.dateformat.format(Calendar.getInstance().getTime()) + ".txmcmd"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
86
		textField.setText(previousPath + "/" + result.getProject().getName().toUpperCase() + "-" +result.getResultType() + "-" +result.getValidFileName() + "-"+ Toolbox.dateformat.format(Calendar.getInstance().getTime()) + ".txmcmd"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
87 87
		
88 88
		selectButton = new Button(comp, SWT.PUSH);
89 89
		selectButton.setText("..."); //$NON-NLS-1$
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/utils/LanguageSwitchHandler.java (revision 3849)
90 90
		values.add("ru"); //$NON-NLS-1$
91 91
		
92 92
		if (!values.contains(locale)) { // set selected locale
93
			locale = "en";
93
			locale = "en"; //$NON-NLS-1$
94 94
		}
95 95
		
96 96
		ComboDialog d = new ComboDialog(shell, TXMUIMessages.chooseTheLanguage, values, locale);
......
312 312
		
313 313
		String txt;
314 314
		try {
315
			txt = IOUtils.getText(file, "UTF-8");
316
			return txt.contains("osgi.nl=" + locale);
315
			txt = IOUtils.getText(file, "UTF-8"); //$NON-NLS-1$
316
			return txt.contains("osgi.nl=" + locale); //$NON-NLS-1$
317 317
		}
318 318
		catch (IOException e) {
319 319
			e.printStackTrace();
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/utils/URLUtils.java (revision 3849)
11 11
	@SuppressWarnings("deprecation")
12 12
	public static String encodeURL(String url) {
13 13
		StringBuilder buffer = new StringBuilder();
14
		int begin = url.indexOf(":/");
14
		int begin = url.indexOf(":/"); //$NON-NLS-1$
15 15
		buffer.append(url.substring(0, begin+2));
16 16
		url = url.substring(begin+2);
17
		String[] split = url.split("/");
17
		String[] split = url.split("/"); //$NON-NLS-1$
18 18
		String[] ps = new String[split.length];
19 19
		for (int i = 0 ; i < split.length ; i++) {
20 20
			if (split[i].length() > 0) {
......
23 23
				ps[i] = split[i];
24 24
			}
25 25
		}
26
		buffer.append(StringUtils.join(ps, "/"));
26
		buffer.append(StringUtils.join(ps, "/")); //$NON-NLS-1$
27 27
		return buffer.toString();
28 28
	}
29 29
	
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/utils/JobHandler.java (revision 3849)
101 101
		// this.setRule(RULE);
102 102
	}
103 103
	
104
	final static public String TXM_FAMILY = "TXM";
104
	final static public String TXM_FAMILY = "TXM"; //$NON-NLS-1$
105 105
	
106 106
	@Override
107 107
	public boolean belongsTo(Object family) {
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/preferences/RCPPreferences.java (revision 3849)
34 34
	/** The Constant USER_ALERT_DELETE. */
35 35
	public static final String USER_ALERT_DELETE = "user_alert_delete"; //$NON-NLS-1$
36 36
	
37
	public static final String MAX_NUMBER_OF_COLUMNS = "max_number_of_columns";
37
	public static final String MAX_NUMBER_OF_COLUMNS = "max_number_of_columns"; //$NON-NLS-1$
38 38
	
39 39
	/**
40 40
	 * To auto compute result and refresh editor when a form computing parameter is modified.
......
74 74
	
75 75
	public static final String CGU = "cgu"; //$NON-NLS-1$
76 76

  
77
	public static String DISABLE_TEST_WARNING = "no_test_warning";
77
	public static String DISABLE_TEST_WARNING = "no_test_warning"; //$NON-NLS-1$
78 78
	
79 79
	
80 80
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/IImageKeys.java (revision 3849)
271 271

  
272 272
	public static final String HOME =  "icons/home.png"; //$NON-NLS-1$ ;
273 273

  
274
	public static final String WORKSITE = "icons/worksite.png";
274
	public static final String WORKSITE = "icons/worksite.png"; //$NON-NLS-1$
275 275
	
276 276
	/**
277 277
	 * Gets the image.
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TableKeyListener.java (revision 3849)
144 144
				nWritten++;
145 145
			}
146 146
		}
147
		str.append("\n");
147
		str.append("\n"); //$NON-NLS-1$
148 148
		
149 149
		
150 150
		for (int l = 0; l < viewers[0].getTable().getSelection().length; l++) { // for each line
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/ImportFormEditor.java (revision 3849)
141 141
		if (f != null) {
142 142
			String filepath = f.getPath();
143 143
			String importName = new File(txmhome, filepath).getName();
144
			if (importName.indexOf("Loader.groovy") > 0) {
145
				importName = importName.substring(0, importName.indexOf("Loader.groovy"));
144
			if (importName.indexOf("Loader.groovy") > 0) { //$NON-NLS-1$
145
				importName = importName.substring(0, importName.indexOf("Loader.groovy")); //$NON-NLS-1$
146 146
			}
147 147
			this.setImportName(importName);
148 148
		} else { // use the corpora view selection
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/InfosSection.java (revision 3849)
72 72
		if (project.getSrcdir().exists()) {
73 73
			section.setText(NLS.bind(TXMUIMessages.descriptionOfTheP0CorpusP1, project.getName(), project.getSrcdir()));
74 74
		} else {
75
			section.setText(NLS.bind(TXMUIMessages.descriptionOfTheP0CorpusP1, project.getName(), "..."));
75
			section.setText(NLS.bind(TXMUIMessages.descriptionOfTheP0CorpusP1, project.getName(), "...")); //$NON-NLS-1$
76 76
		}
77 77
		
78 78
		String descContent = project.getDescription();
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/TextualPlansSection.java (revision 3849)
68 68
	@Override
69 69
	public void updateFields(Project project) {
70 70
		if (this.section != null && !section.isDisposed()) {
71
			outsideTextElementsText.setText(project.getTextualPlan("OutSideTextTags", "teiHeader")); //$NON-NLS-1$
71
			outsideTextElementsText.setText(project.getTextualPlan("OutSideTextTags", "teiHeader")); //$NON-NLS-1$ //$NON-NLS-2$
72 72
			outsideTextElementsToEditText.setText(project.getTextualPlan("OutSideTextTagsAndKeepContent")); //$NON-NLS-1$
73 73
		}
74 74
	}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 3849)
1231 1231
		if (title.length() > MAX_NAME_LENGTH) {
1232 1232
			title = title.substring(0, MAX_NAME_LENGTH - 1) + "..."; //$NON-NLS-1$
1233 1233
		}
1234
		this.setPartName(title.replace("\n", " ")); // avoid multi-line tab names 
1234
		this.setPartName(title.replace("\n", " ")); // avoid multi-line tab names  //$NON-NLS-1$ //$NON-NLS-2$
1235 1235
		// this.firePropertyChange(TXMEditor.PROP_DIRTY);
1236 1236
		
1237 1237
		// MD: commented 'if (!update) {...}'
......
1501 1501
						f.set(this, value);
1502 1502
					}
1503 1503
					catch (Exception e) {
1504
						Log.fine(TXMCoreMessages.bind("Warning: can't assignate new value={0} to editor member={1} which have current value={2}.", value, f, object)); //$NON-NLS-1$
1504
						Log.fine(""); //$NON-NLS-1$
1505 1505
					}
1506 1506
				}
1507 1507
				
......
1652 1652
						value = s;
1653 1653
					} else if (clazz.equals(List.class)) {
1654 1654
						if (!s.isEmpty()) {
1655
							value = new ArrayList<>(Arrays.asList(s.split(",")));
1655
							value = new ArrayList<>(Arrays.asList(s.split(","))); //$NON-NLS-1$
1656 1656
						} else {
1657 1657
							value = new ArrayList<>();
1658 1658
						}
......
1665 1665
					String[] s = l.getSelection();
1666 1666
					Class<?> clazz = targetField.getType();
1667 1667
					if (clazz.equals(String.class)) {
1668
						value = StringUtils.join(s, ", ");
1668
						value = StringUtils.join(s, ", "); //$NON-NLS-1$
1669 1669
					} else if (clazz.equals(List.class)) {
1670 1670
						value = new ArrayList<>(Arrays.asList(s));
1671 1671
					}
......
2328 2328
					f.set(bean, value);
2329 2329
				}
2330 2330
				catch (Exception e) {
2331
					Log.fine(TXMCoreMessages.bind("Warning: can't assignate new value={0} to editor member={1} which have current value={2}.", value, f, object)); //$NON-NLS-1$
2331
					Log.fine(""); //$NON-NLS-1$
2332 2332
				}
2333 2333
			}
2334 2334
			
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/menu/PagePropertiesMenu.java (revision 3849)
28 28
			public void widgetSelected(SelectionEvent e) {
29 29
				try {
30 30
					String url = browser.getUrl();
31
					if (url.startsWith("http://") || url.startsWith("https://")) {
32
						System.out.println("URL="+url);
31
					if (url.startsWith("http://") || url.startsWith("https://")) { //$NON-NLS-1$ //$NON-NLS-2$
32
						System.out.println("URL="+url); //$NON-NLS-1$
33 33
					} else {
34 34
						ShowSelected.print(Paths.get(new URL(url).toURI()).toFile());
35 35
					}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMResultEditorInput.java (revision 3849)
60 60
	@Override
61 61
	public String getName()	{
62 62
		try {
63
			return this.result.getName().replace("\n", " ");
63
			return this.result.getName().replace("\n", " "); //$NON-NLS-1$ //$NON-NLS-2$
64 64
		}
65 65
		catch(Exception e) {
66 66
		}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/dialog/UpdateCorpusDialog.java (revision 3849)
82 82
		
83 83
		if (corpora != null) {
84 84
			
85
			GLComposite line = new GLComposite(comp, SWT.NONE, "");
85
			GLComposite line = new GLComposite(comp, SWT.NONE, ""); //$NON-NLS-1$
86 86
			data = new GridData(GridData.FILL, GridData.FILL, true, false);
87 87
			line.setLayoutData(data);
88 88
			line.getLayout().numColumns = 1;
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/MultipleSelectionCombo.java (revision 3849)
118 118
			StringBuffer sb = new StringBuffer();
119 119
			for (int i = 0; i < comboSelection.length; i++) {
120 120
				if (i > 0)
121
					sb.append(",");
121
					sb.append(","); //$NON-NLS-1$
122 122
				sb.append(comboItems[comboSelection[i]]);
123 123
			}
124 124
			displayText.setText(sb.toString());
125 125
		} else {
126
			displayText.setText("");
126
			displayText.setText(""); //$NON-NLS-1$
127 127
		}
128 128
	}
129 129
	public void setText(String text) {
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/IntegerField.java (revision 3849)
25 25
	
26 26
	public void setDefault(Object text) {
27 27
		try {
28
			dt.setSelection(Integer.parseInt(""+text));
28
			dt.setSelection(Integer.parseInt(""+text)); //$NON-NLS-1$
29 29
		} catch(Exception e) {
30
			System.out.println("Cannot set IntegerField with default properties value="+text+": "+e);
30
			System.out.println("Cannot set IntegerField with default properties value="+text+": "+e); //$NON-NLS-2$
31 31
		}
32 32
	}
33 33

  
......
37 37
			try {
38 38
				dt.setSelection(Integer.parseInt(getWidgetDefault()));
39 39
			} catch (Exception e) {
40
				System.out.println("Cannot set IntegerField with default value="+getWidgetDefault()+": "+e);
40
				System.out.println("Cannot set IntegerField with default value="+getWidgetDefault()+": "+e); //$NON-NLS-2$
41 41
			}
42 42
		}  else {
43 43
			dt.setSelection(0);
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/PasswordField.java (revision 3849)
21 21
	}
22 22

  
23 23
	public void setDefault(Object text) {
24
		dt.setText(""+text);
24
		dt.setText(""+text); //$NON-NLS-1$
25 25
	}
26 26

  
27 27
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/AtestClass.java (revision 3849)
41 41
	
42 42
	@Override
43 43
	public String toString() {
44
		return "file=" + file + " dir=" + dir + " ii=" + ii;
44
		return "file=" + file + " dir=" + dir + " ii=" + ii; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
45 45
	}
46 46
}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/FilesField.java (revision 3849)
37 37
				FileDialog d = new FileDialog(FilesField.this.getShell(), SWT.MULTI);
38 38
				
39 39
				if (parameter.metaVar() != null) {
40
					d.setFilterExtensions(parameter.metaVar().split(","));
40
					d.setFilterExtensions(parameter.metaVar().split(",")); //$NON-NLS-1$
41 41
				}
42 42
				
43 43
				try {
......
52 52
				
53 53
				value = d.open();
54 54
				String p = d.getFilterPath();
55
				if (value != null) t.setText(p+"/"+StringUtils.join(d.getFileNames(), File.pathSeparator+p+"/"));
55
				if (value != null) t.setText(p+"/"+StringUtils.join(d.getFileNames(), File.pathSeparator+p+"/")); //$NON-NLS-1$ //$NON-NLS-2$
56 56
			}
57 57
		});
58 58
	}
......
77 77
		if (text instanceof File[]) {
78 78
			t.setText(StringUtils.join((File[]) text, File.pathSeparator));
79 79
		} else {
80
			t.setText(""+text);
80
			t.setText(""+text); //$NON-NLS-1$
81 81
		}
82 82
	}
83 83

  
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/CreateFileField.java (revision 3849)
57 57
	}
58 58
	
59 59
	public void setDefault(Object text) {
60
		t.setText(""+text);
60
		t.setText(""+text); //$NON-NLS-1$
61 61
	}
62 62

  
63 63
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/FloatField.java (revision 3849)
30 30
	
31 31
	
32 32
	public void setDefault(Object text) {
33
		dt.setText(""+text);
33
		dt.setText(""+text); //$NON-NLS-1$
34 34
	}
35 35

  
36 36
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/ParametersGLComposite.java (revision 3849)
98 98
			widgets.clear();
99 99
		}
100 100
		
101
		columns = new GLComposite(this, SWT.NONE, "columns");
101
		columns = new GLComposite(this, SWT.NONE, "columns"); //$NON-NLS-1$
102 102
		columns.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
103 103
		columns.getLayout().numColumns = 1;
104 104
		
......
119 119
			}
120 120
			
121 121
			// count number of mandatory fields set AND add exception for "Separator" widget types
122
			if (option.required() || "Separator".equals(option.widget())) numberOfMandatoryFields++;
122
			if (option.required() || "Separator".equals(option.widget())) numberOfMandatoryFields++; //$NON-NLS-1$
123 123
			numberOfParameters++;
124 124
		}
125 125
		
......
129 129
			columns.getLayout().numColumns = 1 + (numberOfParameters / MAX_PARAMETERS_PER_LINE);
130 130
		}
131 131
		
132
		GLComposite column = new GLComposite(columns, SWT.NONE, "column");
132
		GLComposite column = new GLComposite(columns, SWT.NONE, "column"); //$NON-NLS-1$
133 133
		GridData gdata = new GridData(SWT.FILL, SWT.FILL, true, true);
134 134
		gdata.minimumWidth = 200;
135 135
		column.setLayoutData(gdata);
......
140 140
		for (NamedOptionDef option : manager.getParameters().values()) {
141 141
			n++;
142 142
			if (n % MAX_PARAMETERS_PER_LINE == 0) {
143
				column = new GLComposite(columns, SWT.NONE, "column");
143
				column = new GLComposite(columns, SWT.NONE, "column"); //$NON-NLS-1$
144 144
				gdata = new GridData(SWT.FILL, SWT.FILL, true, true);
145 145
				gdata.minimumWidth = 200;
146 146
				column.setLayoutData(gdata);
......
150 150
			// each widget is initialized with de default value set in @Field@def attribute
151 151
			String widgetName = option.widget();
152 152
			ParameterField widget = null;
153
			if ("File".equals(widgetName) || "FileOpen".equals(widgetName)) { //$NON-NLS-1$
153
			if ("File".equals(widgetName) || "FileOpen".equals(widgetName)) { //$NON-NLS-1$ //$NON-NLS-2$
154 154
				widget = new FileField(column, SWT.NONE, option);
155
			} else if ("Files".equals(widgetName) || "FilesOpen".equals(widgetName)) { //$NON-NLS-1$
155
			} else if ("Files".equals(widgetName) || "FilesOpen".equals(widgetName)) { //$NON-NLS-1$ //$NON-NLS-2$
156 156
				widget = new FilesField(column, SWT.NONE, option);
157 157
			}
158
			else if ("CreateFile".equals(widgetName) || "FileSave".equals(widgetName)) { //$NON-NLS-1$
158
			else if ("CreateFile".equals(widgetName) || "FileSave".equals(widgetName)) { //$NON-NLS-1$ //$NON-NLS-2$
159 159
				widget = new CreateFileField(column, SWT.NONE, option);
160 160
			}
161 161
			else if ("Folder".equals(widgetName)) { //$NON-NLS-1$
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/QueryField.java (revision 3849)
38 38

  
39 39
	@Override
40 40
	public void setDefault(Object value) {
41
		w.setText(""+value);
41
		w.setText(""+value); //$NON-NLS-1$
42 42
	}
43 43

  
44 44
	@Override
......
50 50
				org.txm.utils.logger.Log.printStackTrace(e);
51 51
			}
52 52
		} else {
53
			w.setText("");
53
			w.setText(""); //$NON-NLS-1$
54 54
		}
55 55
	}
56 56
}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/StringArrayField.java (revision 3849)
15 15
		dt = new Combo(this, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);
16 16
		dt.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, false));
17 17
		
18
		String[] values = getMetaVar().trim().split("\t");
18
		String[] values = getMetaVar().trim().split("\t"); //$NON-NLS-1$
19 19
		dt.setItems(values);
20 20
		
21 21
		resetToDefault();
......
28 28
	public void setDefault(Object text) {
29 29
		if (text instanceof Object[]) {
30 30
			Object[] array = (Object[]) text;
31
			dt.setText(StringUtils.join(array, "\t"));
31
			dt.setText(StringUtils.join(array, "\t")); //$NON-NLS-1$
32 32
		} else {
33
			dt.setText(""+text);
33
			dt.setText(""+text); //$NON-NLS-1$
34 34
		}
35 35
	}
36 36

  
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/StringField.java (revision 3849)
26 26
	}
27 27

  
28 28
	public void setDefault(Object text) {
29
		dt.setText(""+text);
29
		dt.setText(""+text); //$NON-NLS-1$
30 30
	}
31 31

  
32 32
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/FolderField.java (revision 3849)
48 48
	
49 49
	
50 50
	public void setDefault(Object text) {
51
		t.setText(""+text);
51
		t.setText(""+text); //$NON-NLS-1$
52 52
	}
53 53

  
54 54
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/DateField.java (revision 3849)
12 12

  
13 13
public class DateField extends LabelField {
14 14
	DateTime dt;
15
	public static String STRINGFORMAT = "yyyy-MM-dd";
15
	public static String STRINGFORMAT = "yyyy-MM-dd"; //$NON-NLS-1$
16 16
	public static SimpleDateFormat formater = new SimpleDateFormat(STRINGFORMAT); //$NON-NLS-1$
17 17
	public DateField(Composite parent, int style, NamedOptionDef parameter) {
18 18
		super(parent, style, parameter);
......
53 53
				dt.setMonth(date.getMonth());
54 54
				dt.setDay(date.getDay());
55 55
			} catch(Exception e) {
56
				System.out.println("Failed to set default value with: "+getWidgetDefault()+": "+e);
56
				System.out.println("Failed to set default value with: "+getWidgetDefault()+": "+e); //$NON-NLS-2$
57 57
				org.txm.utils.logger.Log.printStackTrace(e);
58 58
			}
59 59
		}
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/FileField.java (revision 3849)
59 59
	
60 60
	
61 61
	public void setDefault(Object text) {
62
		t.setText(""+text);
62
		t.setText(""+text); //$NON-NLS-1$
63 63
	}
64 64

  
65 65
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/BooleanField.java (revision 3849)
30 30
	}
31 31
	
32 32
	public void setDefault(Object text) {
33
		dt.setSelection("true".equals(text));
33
		dt.setSelection("true".equals(text)); //$NON-NLS-1$
34 34
	}
35 35

  
36 36
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/CospusStructuresField.java (revision 3849)
38 38
				l = new ArrayList<StructuralUnit>(c.getOrderedStructuralUnits());
39 39
				for (int i = 0 ; i < l.size() ; i++) {
40 40
					String name = l.get(i).getName();
41
					if ("text".equals(name) || "txmcorpus".equals(name)) {
41
					if ("text".equals(name) || "txmcorpus".equals(name)) { //$NON-NLS-1$ //$NON-NLS-2$
42 42
						l.remove(i);
43 43
						i--;
44 44
					}
......
68 68
	}
69 69

  
70 70
	public void setDefault(Object text) {
71
		dt.setText(""+text);
71
		dt.setText(""+text); //$NON-NLS-1$
72 72
	}
73 73

  
74 74
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/StringArrayMultipleField.java (revision 3849)
12 12
	public StringArrayMultipleField(Composite parent, int style, NamedOptionDef parameter) {
13 13
		super(parent, style, parameter);
14 14

  
15
		String[] values = getMetaVar().trim().split("\t");
15
		String[] values = getMetaVar().trim().split("\t"); //$NON-NLS-1$
16 16
		int[] selection = {};
17 17
		dt = new MultipleSelectionCombo(this, values, selection, SWT.NONE);
18 18
		dt.setLayoutData(new GridData(SWT.FILL, SWT.LEFT, true, false));
......
29 29
	public void setDefault(Object text) {
30 30
		if (text instanceof Object[]) {
31 31
			Object[] array = (Object[]) text;
32
			dt.setText(StringUtils.join(array, "\t"));
32
			dt.setText(StringUtils.join(array, "\t")); //$NON-NLS-1$
33 33
		} else {
34
			dt.setText(""+text);
34
			dt.setText(""+text); //$NON-NLS-1$
35 35
		}
36 36
	}
37 37

  
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/parameters/LongStringField.java (revision 3849)
37 37

  
38 38
	@Override
39 39
	public void setDefault(Object value) {
40
		dt.setText(""+value);
40
		dt.setText(""+value); //$NON-NLS-1$
41 41
	}
42 42

  
43 43
	@Override
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/CustomThresholdsGroup.java (revision 3849)
27 27
 */
28 28
public class CustomThresholdsGroup extends Group {
29 29
	
30
	public static final String F = "F";
31
	public static final String V = "V";
32
	public static final String S = "S";
30
	public static final String F = "F"; //$NON-NLS-1$
31
	public static final String V = "V"; //$NON-NLS-1$
32
	public static final String S = "S"; //$NON-NLS-1$
33 33
	
34 34
	TXMEditor<? extends TXMResult> editor;
35 35
	LinkedHashMap<String, ThresholdField> fields;
......
155 155
			if (c.showMin && !c.showMax) {
156 156
				Label l = new Label(this, SWT.NONE);
157 157
				l.setLayoutData(new GridData());
158
				l.setText(c.name+" ≤ ");
158
				l.setText(c.name+" ≤ "); //$NON-NLS-1$
159 159
			}
160 160
			
161 161
			if (c.showMin) {
......
179 179
			if (c.showMin && c.showMax) {
180 180
				Label l = new Label(this, SWT.NONE);
181 181
				l.setLayoutData(new GridData());
182
				l.setText(" ≤ "+c.name+" ≤ ");
182
				l.setText(" ≤ "+c.name+" ≤ "); //$NON-NLS-1$ //$NON-NLS-2$
183 183
			}
184 184
			
185 185
			if (!c.showMin && c.showMax) {
186 186
				Label l = new Label(this, SWT.NONE);
187 187
				l.setLayoutData(new GridData());
188
				l.setText(c.name+" ≤ ");
188
				l.setText(c.name+" ≤ "); //$NON-NLS-1$
189 189
			}
190 190
			
191 191
			if (c.showMax) {
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/ReferencePatternSelector.java (revision 3849)
27 27
		
28 28
		// "properties"
29 29
		patternLabel = new Label(this, SWT.NONE);
30
		patternLabel.setText("");
31
		patternLabel.setToolTipText("");
30
		patternLabel.setText(""); //$NON-NLS-1$
31
		patternLabel.setToolTipText(""); //$NON-NLS-1$
32 32
		patternLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, true));
33 33
	}
34 34
	
......
65 65
	
66 66
	protected void refreshLabel() {
67 67
		if (pattern != null && pattern.length() > 0) {
68
			this.patternLabel.setText("(" + pattern + ")");
68
			this.patternLabel.setText("(" + pattern + ")"); //$NON-NLS-1$ //$NON-NLS-2$
69 69
		}
70 70
		else {
71
			this.patternLabel.setText("");
71
			this.patternLabel.setText(""); //$NON-NLS-1$
72 72
		}
73 73
	}
74 74
	
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/QueryOptionsDialog.java (revision 3849)
189 189
			 */
190 190
			@Override
191 191
			public String getText(Object element) {
192
				return element == null ? "" : ((SearchEngine)element).getName();
192
				return element == null ? "" : ((SearchEngine)element).getName(); //$NON-NLS-1$
193 193
			}
194 194

  
195 195
		});

Formats disponibles : Unified diff