protected JComponent createComponent() { JComponent component = new JPanel(); component.setLayout(new BoxLayout(component, BoxLayout.Y_AXIS)); component.add(new MultiLineLabel(AddressbookResourceLoader.getString( "dialog", "addressbookimport", "location_text"))); component.add(Box.createVerticalStrut(40)); WizardTextField middlePanel = new WizardTextField(); LabelWithMnemonic sourceLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString( "dialog", "addressbookimport", "source")); middlePanel.addLabel(sourceLabel); sourceButton = new JButton("..."); sourceButton.addActionListener(this); sourceLabel.setLabelFor(sourceButton); middlePanel.addTextField(sourceButton); middlePanel.addExample(new JLabel()); LabelWithMnemonic destinationLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString( "dialog", "addressbookimport", "destination")); middlePanel.addLabel(destinationLabel); destinationButton = new JButton("..."); destinationButton.addActionListener(this); destinationLabel.setLabelFor(destinationButton); middlePanel.addTextField(destinationButton); middlePanel.addExample(new JLabel(AddressbookResourceLoader.getString( "dialog", "addressbookimport", "explanation"))); component.add(middlePanel); return component;
protected JComponent createComponent() { JComponent component = new JPanel(); component.setLayout(new BoxLayout(component, BoxLayout.Y_AXIS)); component.add(new MultiLineLabel(MailResourceLoader.getString( "dialog", "mailboximport", "location_text"))); component.add(Box.createVerticalStrut(40)); WizardTextField middlePanel = new WizardTextField(); LabelWithMnemonic sourceLabel = new LabelWithMnemonic(MailResourceLoader.getString( "dialog", "mailboximport", "source")); middlePanel.addLabel(sourceLabel); sourceButton = new JButton("..."); sourceLabel.setLabelFor(sourceButton); sourceButton.addActionListener(this); middlePanel.addTextField(sourceButton); middlePanel.addExample(new JLabel()); LabelWithMnemonic destinationLabel = new LabelWithMnemonic(MailResourceLoader.getString( "dialog", "mailboximport", "destination")); middlePanel.addLabel(destinationLabel); destinationButton = new JButton("..."); destinationLabel.setLabelFor(destinationButton); destinationButton.addActionListener(this); middlePanel.addTextField(destinationButton); middlePanel.addExample(new JLabel(MailResourceLoader.getString( "dialog", "mailboximport", "explanation"))); component.add(middlePanel); return component;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/importfilter/LocationStep.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/mailboximport/LocationStep.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
protected JComponent createComponent() {
1
protected JComponent createComponent() {
2
        JComponent component = new JPanel();
2
        JComponent component = new JPanel();
3
        component.setLayout(new BoxLayout(component, BoxLayout.Y_AXIS));
3
        component.setLayout(new BoxLayout(component, BoxLayout.Y_AXIS));
4
        component.add(new MultiLineLabel(AddressbookResourceLoader.getString(
4
        component.add(new MultiLineLabel(MailResourceLoader.getString(
5
                    "dialog", "addressbookimport", "location_text")));
5
                    "dialog", "mailboximport", "location_text")));
6
        component.add(Box.createVerticalStrut(40));
6
        component.add(Box.createVerticalStrut(40));
7
        WizardTextField middlePanel = new WizardTextField();
7
        WizardTextField middlePanel = new WizardTextField();
8
        LabelWithMnemonic sourceLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString(
8
        LabelWithMnemonic sourceLabel = new LabelWithMnemonic(MailResourceLoader.getString(
9
                    "dialog", "addressbookimport", "source"));
9
                    "dialog", "mailboximport", "source"));
10
        middlePanel.addLabel(sourceLabel);
10
        middlePanel.addLabel(sourceLabel);
11
        sourceButton = new JButton("...");
11
        sourceButton = new JButton("...");
12
        sourceButton.addActionListener(this);
12
        source
13
        sourceLabel.setLabelFor(sourceButton
13
Label.setLabelFor(sourceButton);
14
);
14
        sourceButton.addActionListener(this);
15
        middlePanel.addTextField(sourceButton);
15
        middlePanel.addTextField(sourceButton);
16
        middlePanel.addExample(new JLabel());
16
        middlePanel.addExample(new JLabel());
17
        LabelWithMnemonic destinationLabel = new LabelWithMnemonic(AddressbookResourceLoader.getString(
17
        LabelWithMnemonic destinationLabel = new LabelWithMnemonic(MailResourceLoader.getString(
18
                    "dialog", "addressbookimport", "destination"));
18
                    "dialog", "mailboximport", "destination"));
19
        middlePanel.addLabel(destinationLabel);
19
        middlePanel.addLabel(destinationLabel);
20
        destinationButton = new JButton("...");
20
        destinationButton = new JButton("...");
21
        destinationButton.addActionListener(this);
21
        destination
22
        destinationLabel.setLabelFor(destinationButton
22
Label.setLabelFor(destinationButton);
23
);
23
        destinationButton.addActionListener(this);
24
        middlePanel.addTextField(destinationButton);
24
        middlePanel.addTextField(destinationButton);
25
        middlePanel.addExample(new JLabel(AddressbookResourceLoader.getString(
25
        middlePanel.addExample(new JLabel(MailResourceLoader.getString(
26
                    "dialog", "addressbookimport", "explanation")));
26
                    "dialog", "mailboximport", "explanation")));
27
        component.add(middlePanel);
27
        component.add(middlePanel);
28
        return component;
28
        return component;
29
    
29
    
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