CloneSet216


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
46220.984class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
149230
E:/TSE/Projects-CloneDR/sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/gui/ProgressBarDialog.java
246332
E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/DualProgressBarDialog.java
Next
Last
Clone Instance
1
Line Count
49
Source Line
230
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/gui/ProgressBarDialog.java

/**
 * Increments the progress bar by the given value
 * 
 * @param value The value to increment the bar
 */
public static void incrementBar( final int value) {
  final int newValue = progressBar.getValue() + value;
  if (SwingUtilities.isEventDispatchThread()) {
    progressBar.setValue(newValue);
  }
  else {
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   progressBar.setValue(newValue);
                                 }
                               } );
  }
}

/**
 * Sets the visibiility of the progress dialog
 * 
 * @param visible a boolean value indicating whether or not to make the 
 *                dialog 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);
                                   }
                                 } );
    }
  }
}

/**
 * Closes the progress dialog.
 */
public static void dispose() {
  if (dialog == null) {
    return;
  }
  if (SwingUtilities.isEventDispatchThread()) {
    dialog.dispose();
  }
  else {
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   dialog.dispose();
                                 }
                               } );
  }
}


First
Previous
Clone Instance
2
Line Count
46
Source Line
332
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/gui/DualProgressBarDialog.java

public static void incrementBottomBar( final int value) {
  final int newValue = bottomBar.getValue() + value;
  if (SwingUtilities.isEventDispatchThread()) {
    bottomBar.setValue(newValue);
  }
  else {
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   bottomBar.setValue(newValue);
                                 }
                               } );
  }
}

/**
 * Sets the visibiility of the progress dialog
 * 
 * @param visible a boolean value indicating whether or not to make the 
 *                dialog 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);
                                   }
                                 } );
    }
  }
}

public static void dispose() {
  if (dialog == null) {
    return;
  }
  if (SwingUtilities.isEventDispatchThread()) {
    dialog.dispose();
  }
  else {
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   dialog.dispose();
                                 }
                               } );
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Increments the progress bar by the given value
     * 
     * @param value The value to increment the bar
     */
public static void [[#variable18d4d2e0]]( final int value) {
  final int newValue = [[#variable18d4d0a0]].getValue() + value;
  if (SwingUtilities.isEventDispatchThread()) {
     [[#variable18d4d0a0]].setValue(newValue);
  }
  else {
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                    [[#variable18d4d0a0]].setValue(newValue);
                                 }
                               } );
  }
}

/**
     * Sets the visibiility of the progress dialog
     * 
     * @param visible a boolean value indicating whether or not to make the 
     *                dialog 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);
                                   }
                                 } );
    }
  }
}

/**
     * Closes the progress dialog.
     */
public static void dispose() {
  if (dialog == null) {
    return;
  }
  if (SwingUtilities.isEventDispatchThread()) {
    dialog.dispose();
  }
  else {
    SwingUtilities.invokeLater(new Runnable() {
                                 public void run() {
                                   dialog.dispose();
                                 }
                               } );
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18d4d2e0]]
incrementBar 
12[[#18d4d2e0]]
incrementBottomBar 
21[[#18d4d0a0]]
progressBar 
22[[#18d4d0a0]]
bottomBar