final IProxySettings proxySettings = prefs.getProxySettings(); _httpUseProxyChk.setSelected(proxySettings.getHttpUseProxy()); _httpProxyServer.setText(proxySettings.getHttpProxyServer()); _httpProxyPort.setText(proxySettings.getHttpProxyPort()); _httpNonProxyHosts.setText(proxySettings.getHttpNonProxyHosts()); _httpProxyUser.setText(proxySettings.getHttpProxyUser()); _httpProxyPassword.setText(proxySettings.getHttpProxyPassword()); _socksUseProxyChk.setSelected(proxySettings.getSocksUseProxy()); _socksProxyServer.setText(proxySettings.getSocksProxyServer()); _socksProxyPort.setText(proxySettings.getSocksProxyPort()); updateControlStatus();
final ApplicationFiles appFiles = new ApplicationFiles(); _loginTimeout.setInt(prefs.getLoginTimeout()); _largeScriptStmtCount.setInt(prefs.getLargeScriptStmtCount()); _debugJdbcStream.setSelected(prefs.isJdbcDebugToStream()); _debugJdbcWriter.setSelected(prefs.isJdbcDebugToWriter()); _debugJdbcDont.setSelected(prefs.isJdbcDebugDontDebug()); _jdbcDebugLogFileNameLbl.setText(appFiles.getJDBCDebugLogFile().getPath()); _fileOpenInPreviousDir.setSelected(prefs.isFileOpenInPreviousDir()); _fileOpenInSpecifiedDir.setSelected(prefs.isFileOpenInSpecifiedDir()); _fileSpecifiedDir.setText(prefs.getFileSpecifiedDir());
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/ProxyPreferencesPanel.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/preferences/SQLPreferencesPanel.java
Method name: void loadData(IApplication, SquirrelPreferences) Method name: void loadData(IApplication, SquirrelPreferences)
Number of AST nodes: 11 Number of AST nodes: 10
1
final IProxySettings proxySettings = prefs.getProxySettings();
1
final ApplicationFiles appFiles = new ApplicationFiles();
2
			_httpUseProxyChk.setSelected(proxySettings.getHttpUseProxy());
2
			_
3
			_httpProxyServer
3
loginTimeout.setInt(prefs.getLoginTimeout());
4
.setText(proxySettings.getHttpProxyServer());
4
            _largeScriptStmtCount.setInt(pr
5
			_httpProxyPort.setText(proxySettings.getHttpProxyPort());
6
			_httpNonProxyHosts.setText(proxySettings.getHttpNonProxyHosts());
7
			_httpProxyUser.setText(proxySettings.getHttpProxyUser());
8
			_httpProxyPassword.setText(proxySettings.getHttpProxyPassword());
9
			_socksUseProxyChk.setSelected(proxySettings.getSocksUseProxy());
10
			_socksProxyServer.setText(proxySettings.getSocksProxyServer());
11
			_socksProxyPort
5
efs.getLargeScriptStmtCount());
6
			_debugJdbcStream.setSelected(prefs.isJdbcDebugToStream());
7
			_debugJdbcWriter.setSelected(prefs.isJdbcDebugToWriter());
8
			_debugJdbcDont.setSelected(prefs.isJdbcDebugDontDebug());
9
			_jdbcDebugLogFileNameLbl.setText(appFiles.getJDBCDebugLogFile().getPath());
10
         _fileOpenInPreviousDir.setSelected(prefs.isFileOpenInPreviousDir());
11
         _fileOpenInSpecifiedDir.setSelected(prefs.isFileOpenInSpecifiedDir());
12
.setText(proxySettings.getSocksProxyPort());
12
         _fileSpecifiedDir.setText(pr
13
			updateControlStatus();
13
efs.getFileSpecifiedDir());
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 having the same super class
Number of node comparisons110