package org.columba.core.gui.themes.plugin; import javax.swing.UIManager; /** * @author frd * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class MotifLookAndFeelPlugin extends AbstractThemePlugin { /** * */ public MotifLookAndFeelPlugin() { super(); } /* (non-Javadoc) * @see org.columba.core.gui.themes.plugin.AbstractThemePlugin#setLookAndFeel() */ public void setLookAndFeel() throws Exception { UIManager.setLookAndFeel( "com.sun.java.swing.plaf.motif.MotifLookAndFeel"); } }
package org.columba.core.gui.themes.plugin; import javax.swing.UIManager; /** * @author frd * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ public class WindowsLookAndFeelPlugin extends AbstractThemePlugin { /** * */ public WindowsLookAndFeelPlugin() { super(); } /* (non-Javadoc) * @see org.columba.core.gui.themes.plugin.AbstractThemePlugin#setLookAndFeel() */ public void setLookAndFeel() throws Exception { UIManager.setLookAndFeel( "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"); } }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/themes/plugin/MotifLookAndFeelPlugin.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/themes/plugin/WindowsLookAndFeelPlugin.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
package org.columba.core.gui.themes.plugin;
1
package org.columba.core.gui.themes.plugin;
2
import javax.swing.UIManager;
2
import javax.swing.UIManager;
3
/**
3
/**
4
 * @author frd
4
 * @author frd
5
 *
5
 *
6
 * To change the template for this generated type comment go to
6
 * To change the template for this generated type comment go to
7
 * Window>Preferences>Java>Code Generation>Code and Comments
7
 * Window>Preferences>Java>Code Generation>Code and Comments
8
 */
8
 */
9
public class MotifLookAndFeelPlugin extends AbstractThemePlugin {
9
public class WindowsLookAndFeelPlugin extends AbstractThemePlugin {
10
    /**
10
    /**
11
 *
11
 *
12
 */
12
 */
13
    public MotifLookAndFeelPlugin() {
13
    public WindowsLookAndFeelPlugin() {
14
        super();
14
        super();
15
    }
15
    }
16
    /* (non-Javadoc)
16
    /* (non-Javadoc)
17
 * @see org.columba.core.gui.themes.plugin.AbstractThemePlugin#setLookAndFeel()
17
 * @see org.columba.core.gui.themes.plugin.AbstractThemePlugin#setLookAndFeel()
18
 */
18
 */
19
    public void setLookAndFeel() throws Exception {
19
    public void setLookAndFeel() throws Exception {
20
        UIManager.setLookAndFeel(
20
        UIManager.setLookAndFeel(
21
            "com.sun.java.swing.plaf.motif.MotifLookAndFeel");
21
            "com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
22
    }
22
    }
23
}
23
}
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