objectTreeBackgroundColorBtn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { Color startColor = objectTreeBackgroundColor == null ? Color.WHITE : objectTreeBackgroundColor; Color newColor = JColorChooser.showDialog(null, i18n.OBJECT_TREE_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE, startColor); if (newColor != null) { objectTreeBackgroundColor = newColor; objectTreeBackgroundColorPnl.setBackground(newColor); objectTreeBackgroundColorPnl.validate();
toolbarBackgroundColorBtn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { Color startColor = toolbarBackgroundColor == null ? Color.WHITE : toolbarBackgroundColor; Color newColor = JColorChooser.showDialog(null, i18n.TOOLBAR_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE, startColor); if (newColor != null) { toolbarBackgroundColor = newColor; toolbarBackgroundColorPnl.setBackground(newColor); toolbarBackgroundColorPnl.validate();
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/ColorPropertiesPanel.java File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/aliasproperties/ColorPropertiesPanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
objectTreeBackgroundColorBtn.addActionListener(new ActionListener()
1
toolbarBackgroundColorBtn.addActionListener(new ActionListener()
2
		{
2
		{
3
			@Override
3
			@Override
4
			public void actionPerformed(ActionEvent e)
4
			public void actionPerformed(ActionEvent e)
5
			{
5
			{
6
				Color startColor = objectTreeBackgroundColor == null ? Color.WHITE : objectTreeBackgroundColor;
6
				Color startColor = toolbarBackgroundColor == null ? Color.WHITE : toolbarBackgroundColor;
7
				Color newColor =
7
				Color newColor =
8
					JColorChooser.showDialog(null, i18n.OBJECT_TREE_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE,
8
					JColorChooser.showDialog(null, i18n.TOOLBAR_BACKGROUND_COLOR_CHOOSER_DIALOG_TITLE,
9
						startColor);
9
 startColor);
10
				if (newColor != null)
10
				if (newColor != null)
11
				{
11
				{
12
					objectTreeBackgroundColor = newColor;
12
					toolbarBackgroundColor = newColor;
13
					objectTreeBackgroundColorPnl.setBackground(newColor);
13
					toolbarBackgroundColorPnl.setBackground(newColor);
14
					objectTreeBackgroundColorPnl.validate();
14
					toolbarBackgroundColorPnl.validate();
15
				
15
				
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 location
Number of node comparisons0