public static void setBarValue(final int value) { if (SwingUtilities.isEventDispatchThread()) { progressBar.setValue(value); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { progressBar.setValue(value);
public static void setBottomMessage(final String message) { if (SwingUtilities.isEventDispatchThread()) { bottomMessage.setText(message); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { bottomMessage.setText(message);
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/gui/ProgressBarDialog.java File path: /sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/DualProgressBarDialog.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public static void setBarValue(final int value) {
1
public static void setBottomMessage(final String message) {
2
        if (SwingUtilities.isEventDispatchThread()) {
2
        if (SwingUtilities.isEventDispatchThread()) {
3
            progressBar.setValue(value);            
3
            bottomMessage.setText(message);            
4
        } else {
4
        } else {
5
            SwingUtilities.invokeLater(new Runnable() {
5
            SwingUtilities.invokeLater(new Runnable() {
6
                public void run() {
6
                public void run() {
7
                    progressBar.setValue(value);
7
                    bottomMessage.setText(message);
8
                
8
                
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