ButtonWithMnemonic closeButton = new ButtonWithMnemonic( MailResourceLoader.getString("global", "close")); closeButton.setActionCommand("CLOSE"); closeButton.addActionListener(this); buttonPanel.add(closeButton); ButtonWithMnemonic helpButton = new ButtonWithMnemonic( MailResourceLoader.getString("global", "help")); buttonPanel.add(helpButton); bottomPanel.add(buttonPanel, BorderLayout.EAST); getContentPane().add(bottomPanel, BorderLayout.SOUTH); getRootPane().setDefaultButton(closeButton);
ButtonWithMnemonic closeButton = new ButtonWithMnemonic( MailResourceLoader.getString("global", "close")); closeButton.setActionCommand("CLOSE"); //$NON-NLS-1$ closeButton.addActionListener(this); buttonPanel.add(closeButton); ButtonWithMnemonic helpButton = new ButtonWithMnemonic( MailResourceLoader.getString("global", "help")); buttonPanel.add(helpButton); bottomPanel.add(buttonPanel, BorderLayout.EAST); getContentPane().add(bottomPanel, BorderLayout.SOUTH); getRootPane().setDefaultButton(closeButton);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountlist/AccountListDialog.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/ConfigFrame.java
Method name: void initComponents() Method name: void initComponents()
Number of AST nodes: 9 Number of AST nodes: 9
1
ButtonWithMnemonic closeButton = new ButtonWithMnemonic(
1
ButtonWithMnemonic closeButton = new ButtonWithMnemonic(
2
				MailResourceLoader.getString("global", "close"));
2
				MailResourceLoader.getString("global", "close"));
3
		closeButton.setActionCommand("CLOSE");
3
		closeButton.setActionCommand("CLOSE"); //$NON-NLS-1$
4
		closeButton.addActionListener(this);
4
		closeButton.addActionListener(this);
5
		buttonPanel.add(closeButton);
5
		buttonPanel.add(closeButton);
6
		ButtonWithMnemonic helpButton = new ButtonWithMnemonic(
6
		ButtonWithMnemonic helpButton = new ButtonWithMnemonic(
7
				MailResourceLoader.getString("global", "help"));
7
				MailResourceLoader.getString("global", "help"));
8
		buttonPanel.add(helpButton);
8
		buttonPanel.add(helpButton);
9
		bottomPanel.add(buttonPanel, BorderLayout.EAST);
9
		bottomPanel.add(buttonPanel, BorderLayout.EAST);
10
		getContentPane().add(bottomPanel, BorderLayout.SOUTH);
10
		getContentPane().add(bottomPanel, BorderLayout.SOUTH);
11
		getRootPane().setDefaultButton(closeButton);
11
		getRootPane().setDefaultButton(closeButton);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons43
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements9
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    75
    ButtonWithMnemonic closeButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "close"));
    112
    ButtonWithMnemonic closeButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "close"));
    76
    closeButton.setActionCommand("CLOSE");
    113
    closeButton.setActionCommand("CLOSE");
    77
    closeButton.addActionListener(this);
    114
    closeButton.addActionListener(this);
    78
    buttonPanel.add(closeButton);
    115
    buttonPanel.add(closeButton);
    79
    ButtonWithMnemonic helpButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "help"));
    116
    ButtonWithMnemonic helpButton = new ButtonWithMnemonic(MailResourceLoader.getString("global", "help"));
    80
    buttonPanel.add(helpButton);
    117
    buttonPanel.add(helpButton);
    81
    bottomPanel.add(buttonPanel, BorderLayout.EAST);
    118
    bottomPanel.add(buttonPanel, BorderLayout.EAST);
    82
    getContentPane().add(bottomPanel, BorderLayout.SOUTH);
    119
    getContentPane().add(bottomPanel, BorderLayout.SOUTH);
    83
    getRootPane().setDefaultButton(closeButton);
    120
    getRootPane().setDefaultButton(closeButton);
    Precondition Violations (0)
    Row Violation