Code Duplication    Length = 12-12 lines in 3 locations

plugins/GraphSemanticLevelMarker/src/main/java/br/ufrj/ppgi/greco/kettle/GraphSemanticLevelMarkerStepDialog.java 2 locations

@@ 263-274 (lines=12) @@
260
		});
261
262
		wbRules.addSelectionListener(new SelectionAdapter() {
263
			public void widgetSelected(SelectionEvent e) {
264
				FileDialog dialog = new FileDialog(shell, SWT.OPEN);
265
				dialog.setFilterExtensions(new String[] { "*.xml;*.XML", "*" });
266
				if (wRules.getText() != null) {
267
					dialog.setFileName(wRules.getText());
268
				}
269
270
				dialog.setFilterNames(new String[] { "XML files", "All files" });
271
272
				if (dialog.open() != null) {
273
					String str = dialog.getFilterPath() + System.getProperty("file.separator") + dialog.getFileName();
274
					wRules.setText(str);
275
				}
276
			}
277
		});
@@ 246-257 (lines=12) @@
243
		});
244
245
		wbBrowse.addSelectionListener(new SelectionAdapter() {
246
			public void widgetSelected(SelectionEvent e) {
247
				FileDialog dialog = new FileDialog(shell, SWT.OPEN);
248
				dialog.setFilterExtensions(new String[] { "*.xml;*.XML", "*" });
249
				if (wBrowse.getText() != null) {
250
					dialog.setFileName(wBrowse.getText());
251
				}
252
253
				dialog.setFilterNames(new String[] { "XML files", "All files" });
254
255
				if (dialog.open() != null) {
256
					String str = dialog.getFilterPath() + System.getProperty("file.separator") + dialog.getFileName();
257
					wBrowse.setText(str);
258
				}
259
			}
260
		});

plugins/Annotator/src/main/java/br/ufrj/ppgi/greco/kettle/AnnotatorStepDialog.java 1 location

@@ 296-307 (lines=12) @@
293
		});
294
295
		wbBrowse.addSelectionListener(new SelectionAdapter() {
296
			public void widgetSelected(SelectionEvent e) {
297
				FileDialog dialog = new FileDialog(shell, SWT.OPEN);
298
				dialog.setFilterExtensions(new String[] { "*.xml;*.XML", "*" });
299
				if (wBrowse.getText() != null) {
300
					dialog.setFileName(wBrowse.getText());
301
				}
302
303
				dialog.setFilterNames(new String[] { "Text files", "All files" });
304
305
				if (dialog.open() != null) {
306
					String str = dialog.getFilterPath() + System.getProperty("file.separator") + dialog.getFileName();
307
					wBrowse.setText(str);
308
				}
309
			}
310
		});