public void actionPerformed(ActionEvent evt) { final SyntaxStyle style = _list.getSelectedSyntaxStyle(); final int origRGB = style.getTextRGB(); final Color color = JColorChooser.showDialog(null, //i18n[syntax.selColor=Select Color] s_stringMgr.getString("syntax.selColor"), new Color(origRGB)); if (color != null) { style.setTextRGB(color.getRGB());
public void actionPerformed(ActionEvent evt) { final SyntaxStyle style = _list.getSelectedSyntaxStyle(); final int origRGB = style.getBackgroundRGB(); final Color color = JColorChooser.showDialog(null, //i18n[syntax.selColor2=Select Color] s_stringMgr.getString("syntax.selColor2"), new Color(origRGB)); if (color != null) { style.setBackgroundRGB(color.getRGB());
Clone fragments detected by clone detection tool
File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/prefspanel/StyleMaintenancePanel.java File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/prefspanel/StyleMaintenancePanel.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void actionPerformed(ActionEvent evt)
1
public void actionPerformed(ActionEvent evt)
2
		{
2
		{
3
			final SyntaxStyle style = _list.getSelectedSyntaxStyle();
3
			final SyntaxStyle style = _list.getSelectedSyntaxStyle();
4
			final int origRGB = style.getTextRGB();
4
			final int origRGB = style.getBackgroundRGB();
5
			final Color color = JColorChooser.showDialog(null,
5
			final Color color = JColorChooser.showDialog(null,
6
				//i18n[syntax.selColor=Select Color]
6
				//i18n[syntax.selColor2=Select Color]
7
												s_stringMgr.getString("syntax.selColor"), new Color(origRGB));
7
												s_stringMgr.getString("syntax.selColor2"), new Color(origRGB));
8
			if (color != null)
8
			if (color != null)
9
			{
9
			{
10
				style.setTextRGB(color.getRGB());
10
				style.setBackgroundRGB(color.getRGB());
11
			
11
			
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