public static void setVisible(final boolean visible) { if (dialog == null) { return; } if (dialog.isVisible() != visible) { if (SwingUtilities.isEventDispatchThread()) { dialog.setVisible(visible); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { dialog.setVisible(visible);
public static void setVisible(final boolean visible) { if (dialog == null) { return; } if (dialog.isVisible() != visible) { if (SwingUtilities.isEventDispatchThread()) { dialog.setVisible(visible); } else { SwingUtilities.invokeLater(new Runnable() { public void run() { dialog.setVisible(visible);
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 setVisible(final boolean visible) {
1
public static void setVisible(final boolean visible) {
2
        if (dialog == null) {
2
        if (dialog == null) {
3
            return;
3
            return;
4
        }
4
        }
5
        if (dialog.isVisible() != visible) {
5
        if (dialog.isVisible() != visible) {
6
            if (SwingUtilities.isEventDispatchThread()) {
6
            if (SwingUtilities.isEventDispatchThread()) {
7
                dialog.setVisible(visible);
7
                dialog.setVisible(visible);
8
            } else {
8
            } else {
9
                SwingUtilities.invokeLater(new Runnable() {
9
                SwingUtilities.invokeLater(new Runnable() {
10
                    public void run() {
10
                    public void run() {
11
                        dialog.setVisible(visible);
11
                        dialog.setVisible(visible);
12
                    
12
                    
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