try { if (!_fullyCreated) { createUserInterface(destClassName, null); _fullyCreated = true; } Runnable run = new UIUpdater(_viewer, ds); SwingUtilities.invokeLater(run); } catch (Exception ex) { s_log.error("Error", ex); }
if (_session != null) { try { new FormatSQLCommand(_session, _plugin).execute(); } catch (Throwable ex) { // i18n[editextras.errorProcessingFormat=Error processing Format SQL command: {0}] final String msg = s_stringMgr.getString("editextras.errorProcessingFormat", ex); _session.showErrorMessage(msg); s_log.error(msg, ex); } }
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/DataSetScrollingPanel.java File path: /sql12/plugins/editextras/src/net/sourceforge/squirrel_sql/plugins/editextras/FormatSQLAction.java
Method name: void load(IDataSet, String) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 6 Number of AST nodes: 3
1
try
2
		{
3
			if (!_fullyCreated)
4
	
1
if (_session != null)
5
		{
2
		{
6
				createUserInterface(destClassName, null
3
			try
4
			{
7
);
5
				new FormatSQLCommand(_session, _plugin).execute();
8
				_fullyCreated = true;
6
			}
7
			catch (Throwable ex)
9
			}
8
			{
10
			Runnable run = new UIUpdater(_viewer, ds);
9
			
11
			SwingUtilities.invokeLater(run
10
	// i18n[editextras.errorProcessingFormat=Error processing Format SQL command: {0}]
12
);
11
				final String msg = s_stringMgr.getString("editextras.errorProcessingFormat", ex);
13
		}
12
		
14
		catch (Exception ex)
15
		{
13
		_session.showErrorMessage(msg);
16
			s_log.error("Error", ex);
14
				s_log.error(msg, ex);
15
			}
17
		}
16
		}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons2