File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/SkinLookAndFeelController.java | File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/OyoahaLookAndFeelController.java | |||
Method name: void createUserInterface()
|
Method name: void createUserInterface()
|
|||
Number of AST nodes: 15 | Number of AST nodes: 15 | |||
1 | final GridBagConstraints gbc = new GridBagConstraints();↵ | 1 | final GridBagConstraints gbc = new GridBagConstraints();↵ | |
2 | gbc.anchor = GridBagConstraints.WEST;↵ | 2 | gbc.anchor = GridBagConstraints.WEST;↵ | |
3 | gbc.fill = GridBagConstraints.HORIZONTAL;↵ | 3 | gbc.fill = GridBagConstraints.HORIZONTAL;↵ | |
4 | gbc.insets = new Insets(4, 4, 4, 4);↵ | 4 | gbc.insets = new Insets(4, 4, 4, 4);↵ | |
5 | gbc.gridx = 0;↵ | 5 | gbc.gridx = 0;↵ | |
6 | gbc.gridy = 0;↵ | 6 | gbc.gridy = 0;↵ | |
7 | add(new JLabel(SkinPrefsPanelI18n.THEME_PACK, SwingConstants.RIGHT), gbc);↵ | 7 | add(new JLabel(OyoahaPrefsPanelI18n.THEME_PACK, SwingConstants.RIGHT), gbc);↵ | |
8 | ++gbc.gridx;↵ | 8 | ++gbc.gridx;↵ | |
9 | add(_themePackCmb, gbc);↵ | 9 | add(_themePackCmb, gbc);↵ | |
10 | gbc.gridx = 0;↵ | 10 | gbc.gridx = 0;↵ | |
11 | ++gbc.gridy;↵ | 11 | ++gbc.gridy;↵ | |
12 | add(new JLabel(SkinPrefsPanelI18n.THEMEPACK_LOC, SwingConstants.RIGHT), gbc);↵ | 12 | add(new JLabel(OyoahaPrefsPanelI18n.THEMEPACK_LOC, SwingConstants.RIGHT), gbc);↵ | |
13 | ++gbc.gridx;↵ | 13 | ++gbc.gridx;↵ | |
14 | final String themePackDir = _ctrl._prefs.getThemePackDirectory();↵ | 14 | final String themePackDir = _ctrl._prefs.getThemePackDirectory();↵ | |
15 | add(new OutputLabel(themePackDir), gbc); | 15 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 125 |
Number of mapped statements | 15 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | final GridBagConstraints gbc = new GridBagConstraints(); | 1 | final GridBagConstraints gbc = new GridBagConstraints(); | |||||||||||||||
2 | gbc.anchor = GridBagConstraints.WEST; | 2 | gbc.anchor = GridBagConstraints.WEST; | |||||||||||||||
3 | gbc.fill = GridBagConstraints.HORIZONTAL; | 3 | gbc.fill = GridBagConstraints.HORIZONTAL; | |||||||||||||||
4 | gbc.insets = new Insets(4, 4, 4, 4); | 4 | gbc.insets = new Insets(4, 4, 4, 4); | |||||||||||||||
5 | gbc.gridx = 0; | 5 | gbc.gridx = 0; | |||||||||||||||
6 | gbc.gridy = 0; | 6 | gbc.gridy = 0; | |||||||||||||||
7 | add(new JLabel(SkinPrefsPanelI18n.THEME_PACK, SwingConstants.RIGHT), gbc); |
| 7 | add(new JLabel(OyoahaPrefsPanelI18n.THEME_PACK, SwingConstants.RIGHT), gbc); | ||||||||||||||
8 | ++gbc.gridx; | 8 | ++gbc.gridx; | |||||||||||||||
9 | add(_themePackCmb, gbc); | 9 | add(_themePackCmb, gbc); | |||||||||||||||
10 | gbc.gridx = 0; | 10 | gbc.gridx = 0; | |||||||||||||||
11 | ++gbc.gridy; | 11 | ++gbc.gridy; | |||||||||||||||
12 | add(new JLabel(SkinPrefsPanelI18n.THEMEPACK_LOC, SwingConstants.RIGHT), gbc); |
| 12 | add(new JLabel(OyoahaPrefsPanelI18n.THEMEPACK_LOC, SwingConstants.RIGHT), gbc); | ||||||||||||||
13 | ++gbc.gridx; | 13 | ++gbc.gridx; | |||||||||||||||
14 | final String themePackDir = _ctrl._prefs.getThemePackDirectory(); |
| 14 | final String themePackDir = _ctrl._prefs.getThemePackDirectory(); | ||||||||||||||
15 | add(new OutputLabel(themePackDir), gbc); | 15 | add(new OutputLabel(themePackDir), gbc); |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.plugins.laf.SkinLookAndFeelController.SkinPrefsPanel.SkinPrefsPanelI18n does not match with type net.sourceforge.squirrel_sql.plugins.laf.OyoahaLookAndFeelController.OyoahaPrefsPanel.OyoahaPrefsPanelI18n |
2 | Type net.sourceforge.squirrel_sql.plugins.laf.SkinLookAndFeelController.SkinPrefsPanel.SkinPrefsPanelI18n does not match with type net.sourceforge.squirrel_sql.plugins.laf.OyoahaLookAndFeelController.OyoahaPrefsPanel.OyoahaPrefsPanelI18n |
3 | Expression _ctrl._prefs cannot be unified with expression _ctrl._prefs , because common superclass net.sourceforge.squirrel_sql.fw.id.IHasIdentifier does not declare member(s) public java.lang.String getThemePackDirectory() |