private static class FontColorButtonListener implements ActionListener { private final StylesList _list; FontColorButtonListener(StylesList list) { super(); _list = list; } 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());
private static class BackgroundColorButtonListener implements ActionListener { private final StylesList _list; BackgroundColorButtonListener(StylesList list) { super(); _list = list; } 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
private static class FontColorButtonListener implements ActionListener
1
private static class BackgroundColorButtonListener implements ActionListener
2
	{
2
	{
3
		private final StylesList _list;
3
		private final StylesList _list;
4
		FontColorButtonListener(StylesList list)
4
		BackgroundColorButtonListener(StylesList list)
5
		{
5
		{
6
			super();
6
			super();
7
			_list = list;
7
			_list = list;
8
		}
8
		}
9
		public void actionPerformed(ActionEvent evt)
9
		public void actionPerformed(ActionEvent evt)
10
		{
10
		{
11
			final SyntaxStyle style = _list.getSelectedSyntaxStyle();
11
			final SyntaxStyle style = _list.getSelectedSyntaxStyle();
12
			final int origRGB = style.getTextRGB();
12
			final int origRGB = style.getBackgroundRGB();
13
			final Color color = JColorChooser.showDialog(null,
13
			final Color color = JColorChooser.showDialog(null,
14
				//i18n[syntax.selColor=Select Color]
14
				//i18n[syntax.selColor2=Select Color]
15
												s_stringMgr.getString("syntax.selColor"), new Color(origRGB));
15
												s_stringMgr.getString("syntax.selColor2"), new Color(origRGB));
16
			if (color != null)
16
			if (color != null)
17
			{
17
			{
18
				style.setTextRGB(color.getRGB());
18
				style.setBackgroundRGB(color.getRGB());
19
			
19
			
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