CloneSet25


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
84220.976class_body_declarations[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
184154
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/ArgumentsPanel.java
284127
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LDAPArgumentsPanel.java
Next
Last
Clone Instance
1
Line Count
84
Source Line
154
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/config/gui/ArgumentsPanel.java

/* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
public void modifyTestElement(TestElement args) {
  stopTableEditing();
  Iterator modelData = tableModel.iterator();
  Arguments arguments = null;
  if (args instanceof Arguments) {
    arguments = (Arguments) args;
    arguments.clear();
    while (modelData.hasNext()) {
      Argument arg = (Argument) modelData.next();
      arg.setMetaData("="); // $NON-NLS-1$
      arguments.addArgument(arg);
    }
  }
  this.configureTestElement(args);
}

/**
 * A newly created component can be initialized with the contents of a Test
 * Element object by calling this method. The component is responsible for
 * querying the Test Element object for the relevant information to display
 * in its GUI.
 * 
 * @param el
 *            the TestElement to configure
 */
public void configure(TestElement el) {
  super.configure(el);
  if (el instanceof Arguments) {
    tableModel.clearData();
    PropertyIterator iter = ((Arguments) el).iterator();
    while (iter.hasNext()) {
      Argument arg = (Argument) iter.next().getObjectValue();
      tableModel.addRow(arg);
    }
  }
  checkDeleteStatus();
}

/**
 * Get the table used to enter arguments.
 * 
 * @return the table used to enter arguments
 */
protected JTable getTable() {
  return table;
}

/**
 * Get the title label for this component.
 * 
 * @return the title label displayed with the table
 */
protected JLabel getTableLabel() {
  return tableLabel;
}

/**
 * Get the button used to delete rows from the table.
 * 
 * @return the button used to delete rows from the table
 */
protected JButton getDeleteButton() {
  return delete;
}

/**
 * Get the button used to add rows to the table.
 * 
 * @return the button used to add rows to the table
 */
protected JButton getAddButton() {
  return add;
}

/**
 * Enable or disable the delete button depending on whether or not there is
 * a row to be deleted.
 */
protected void checkDeleteStatus() {
  // Disable DELETE if there are no rows in the table to delete.
  if (tableModel.getRowCount() == 0) {
    delete.setEnabled(false);
  }
  else {
    delete.setEnabled(true);
  }
}


First
Previous
Clone Instance
2
Line Count
84
Source Line
127
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/config/gui/LDAPArgumentsPanel.java

/* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
public void modifyTestElement(TestElement args) {
  stopTableEditing();
  Iterator modelData = tableModel.iterator();
  LDAPArguments arguments = null;
  if (args instanceof LDAPArguments) {
    arguments = (LDAPArguments) args;
    arguments.clear();
    while (modelData.hasNext()) {
      LDAPArgument arg = (LDAPArgument) modelData.next();
      arg.setMetaData("=");
      arguments.addArgument(arg);
    }
  }
  this.configureTestElement(args);
}

/**
 * A newly created component can be initialized with the contents of a Test
 * Element object by calling this method. The component is responsible for
 * querying the Test Element object for the relevant information to display
 * in its GUI.
 * 
 * @param el
 *            the TestElement to configure
 */
public void configure(TestElement el) {
  super.configure(el);
  if (el instanceof LDAPArguments) {
    tableModel.clearData();
    PropertyIterator iter = ((LDAPArguments) el).iterator();
    while (iter.hasNext()) {
      LDAPArgument arg = (LDAPArgument) iter.next().getObjectValue();
      tableModel.addRow(arg);
    }
  }
  checkDeleteStatus();
}

/**
 * Get the table used to enter arguments.
 * 
 * @return the table used to enter arguments
 */
protected JTable getTable() {
  return table;
}

/**
 * Get the title label for this component.
 * 
 * @return the title label displayed with the table
 */
protected JLabel getTableLabel() {
  return tableLabel;
}

/**
 * Get the button used to delete rows from the table.
 * 
 * @return the button used to delete rows from the table
 */
protected JButton getDeleteButton() {
  return delete;
}

/**
 * Get the button used to add rows to the table.
 * 
 * @return the button used to add rows to the table
 */
protected JButton getAddButton() {
  return add;
}

/**
 * Enable or disable the delete button depending on whether or not there is
 * a row to be deleted.
 */
protected void checkDeleteStatus() {
  // Disable DELETE if there are no rows in the table to delete.
  if (tableModel.getRowCount() == 0) {
    delete.setEnabled(false);
  }
  else {
    delete.setEnabled(true);
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/* Implements JMeterGUIComponent.modifyTestElement(TestElement) */
public void modifyTestElement(TestElement args) {
  stopTableEditing();
  Iterator modelData = tableModel.iterator();
   [[#variabledfc60a0]] arguments = null;
  if (args instanceof [[#variabledfc60a0]]) {
    arguments = ( [[#variabledfc60a0]]) args;
    arguments.clear();
    while (modelData.hasNext()) {
       [[#variabledfc6040]] arg = ( [[#variabledfc6040]]) modelData.next();
      arg.setMetaData("="); // $NON-NLS-1$
      arguments.addArgument(arg);
    }
  }
  this.configureTestElement(args);
}

/**
         * A newly created component can be initialized with the contents of a Test
         * Element object by calling this method. The component is responsible for
         * querying the Test Element object for the relevant information to display
         * in its GUI.
         * 
         * @param el
         *            the TestElement to configure
         */
public void configure(TestElement el) {
  super.configure(el);
  if (el instanceof [[#variabledfc60a0]]) {
    tableModel.clearData();
    PropertyIterator iter = (( [[#variabledfc60a0]]) el).iterator();
    while (iter.hasNext()) {
       [[#variabledfc6040]] arg = ( [[#variabledfc6040]]) iter.next().getObjectValue();
      tableModel.addRow(arg);
    }
  }
  checkDeleteStatus();
}

/**
         * Get the table used to enter arguments.
         * 
         * @return the table used to enter arguments
         */
protected JTable getTable() {
  return table;
}

/**
         * Get the title label for this component.
         * 
         * @return the title label displayed with the table
         */
protected JLabel getTableLabel() {
  return tableLabel;
}

/**
         * Get the button used to delete rows from the table.
         * 
         * @return the button used to delete rows from the table
         */
protected JButton getDeleteButton() {
  return delete;
}

/**
         * Get the button used to add rows to the table.
         * 
         * @return the button used to add rows to the table
         */
protected JButton getAddButton() {
  return add;
}

/**
         * Enable or disable the delete button depending on whether or not there is
         * a row to be deleted.
         */
protected void checkDeleteStatus() {
  // Disable DELETE if there are no rows in the table to delete.
  if (tableModel.getRowCount() == 0) {
    delete.setEnabled(false);
  }
  else {
    delete.setEnabled(true);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#dfc60a0]]
Arguments 
12[[#dfc60a0]]
LDAPArguments 
21[[#dfc6040]]
Argument 
22[[#dfc6040]]
LDAPArgument