private static final class FontButtonListener implements ActionListener { public void actionPerformed(ActionEvent evt) { if (evt.getSource() instanceof FontButton) { FontButton btn = (FontButton) evt.getSource(); FontInfo fi = btn.getFontInfo(); Font font = null; if (fi != null) { font = fi.createFont(); } font = new FontChooser().showDialog(font); if (font != null) { btn.setSelectedFont(font); btn._lbl.setText(new FontInfo(font).toString());
private static final class FontButtonListener implements ActionListener { public void actionPerformed(ActionEvent evt) { if (evt.getSource() instanceof FontButton) { FontButton btn = (FontButton) evt.getSource(); FontInfo fi = btn.getFontInfo(); Font font = null; if (fi != null) { font = fi.createFont(); } font = new FontChooser().showDialog(font); if (font != null) { btn.setSelectedFont(font); btn._lbl.setText(new FontInfo(font).toString());
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionSQLPropertiesPanel.java File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/LAFFontsTab.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private static final class FontButtonListener implements ActionListener
1
private static final class FontButtonListener implements ActionListener
2
		{
2
		{
3
			public void actionPerformed(ActionEvent evt)
3
			public void actionPerformed(ActionEvent evt)
4
			{
4
			{
5
				if (evt.getSource() instanceof FontButton)
5
				if (evt.getSource() instanceof FontButton)
6
				{
6
				{
7
					FontButton btn = (FontButton) evt.getSource();
7
					FontButton btn = (FontButton) evt.getSource();
8
					FontInfo fi = btn.getFontInfo();
8
					FontInfo fi = btn.getFontInfo();
9
					Font font = null;
9
					Font font = null;
10
					if (fi != null)
10
					if (fi != null)
11
					{
11
					{
12
						font = fi.createFont();
12
						font = fi.createFont();
13
					}
13
					}
14
					font = new FontChooser().showDialog(font);
14
					font = new FontChooser().showDialog(font);
15
					if (font != null)
15
					if (font != null)
16
					{
16
					{
17
						btn.setSelectedFont(font);
17
						btn.setSelectedFont(font);
18
						btn._lbl.setText(new FontInfo(font).toString());
18
						btn._lbl.setText(new FontInfo(font).toString());
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