CloneSet51


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
47220.980class_body_declarations[9]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14750
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/FilePanel.java
24749
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportFilePanel.java
Next
Last
Clone Instance
1
Line Count
47
Source Line
50
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/FilePanel.java

List listeners = new LinkedList();

String title;

String filetype;

/**
 * Constructor for the FilePanel object.
 */
public FilePanel() {
  title = ""; //$NON-NLS-1$
  init();
}

public FilePanel(String title) {
  this.title = title;
  init();
}

public FilePanel(String title, String filetype) {
  this(title);
  this.filetype = filetype;
}

/**
 * Constructor for the FilePanel object.
 */
public FilePanel(ChangeListener l, String title) {
  this.title = title;
  init();
  listeners.add(l);
}

public void addChangeListener(ChangeListener l) {
  listeners.add(l);
}

private void init() {
  setBorder(BorderFactory.createTitledBorder(title));
  add(label);
  add(Box.createHorizontalStrut(5));
  add(filename);
  add(Box.createHorizontalStrut(5));
  filename.addActionListener(this );
  add(browse);
  browse.setActionCommand(ACTION_BROWSE);
  browse.addActionListener(this );
}


First
Previous
Clone Instance
2
Line Count
47
Source Line
49
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportFilePanel.java

List listeners = new LinkedList();

String title;

String filetype;

/**
 * Constructor for the FilePanel object.
 */
public ReportFilePanel() {
  title = "";
  init();
}

public ReportFilePanel(String title) {
  this.title = title;
  init();
}

public ReportFilePanel(String title, String filetype) {
  this(title);
  this.filetype = filetype;
}

/**
 * Constructor for the FilePanel object.
 */
public ReportFilePanel(ChangeListener l, String title) {
  this.title = title;
  init();
  listeners.add(l);
}

public void addChangeListener(ChangeListener l) {
  listeners.add(l);
}

private void init() {
  setBorder(BorderFactory.createTitledBorder(title));
  add(label);
  add(Box.createHorizontalStrut(5));
  add(filename);
  add(Box.createHorizontalStrut(5));
  filename.addActionListener(this );
  add(browse);
  browse.setActionCommand("browse");
  browse.addActionListener(this );
}


Clone AbstractionParameter Count: 2Parameter Bindings

List listeners = new LinkedList();

String title;

String filetype;

/**
         * Constructor for the FilePanel object.
         */
public [[#variablee011a20]]() {
  title = ""; //$NON-NLS-1$
  init();
}

public [[#variablee011a20]](String title) {
  this.title = title;
  init();
}

public [[#variablee011a20]](String title, String filetype) {
  this(title);
  this.filetype = filetype;
}

/**
         * Constructor for the FilePanel object.
         */
public [[#variablee011a20]](ChangeListener l, String title) {
  this.title = title;
  init();
  listeners.add(l);
}

public void addChangeListener(ChangeListener l) {
  listeners.add(l);
}

private void init() {
  setBorder(BorderFactory.createTitledBorder(title));
  add(label);
  add(Box.createHorizontalStrut(5));
  add(filename);
  add(Box.createHorizontalStrut(5));
  filename.addActionListener(this );
  add(browse);
  browse.setActionCommand( [[#variablee011ac0]]);
  browse.addActionListener(this );
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#e011a20]]
FilePanel 
12[[#e011a20]]
ReportFilePanel 
21[[#e011ac0]]
ACTION_BROWSE 
22[[#e011ac0]]
"browse"