CloneSet83


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27230.968type_declarations
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12831
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/EditCommand.java
22729
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportEditCommand.java
Next
Last
Clone Instance
1
Line Count
28
Source Line
31
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/EditCommand.java

/**
 * Implements the Edit menu item.
 */
public class EditCommand implements Command {
  private static final Set commands = new HashSet();

  static {
    commands.add(ActionNames.EDIT);
  }

  public EditCommand() {
  }

  public void doAction(ActionEvent e) {
    GuiPackage guiPackage = GuiPackage.getInstance();
    guiPackage.getMainFrame().setMainPanel((javax.swing.JComponent) guiPackage.getCurrentGui());
    guiPackage.getMainFrame().setEditMenu(guiPackage.getTreeListener().getCurrentNode().createPopupMenu());
    // TODO: I believe the following code (to the end of the method) is
    // obsolete,
    // since NamePanel no longer seems to be the GUI for any component:
    if ( !(guiPackage.getCurrentGui() instanceof NamePanel)) {
      guiPackage.getMainFrame().setFileLoadEnabled(true);
      guiPackage.getMainFrame().setFileSaveEnabled(true);
    }
    else {
      guiPackage.getMainFrame().setFileLoadEnabled(false);
      guiPackage.getMainFrame().setFileSaveEnabled(false);
    }
  }

  public Set getActionNames() {
    return commands;
  }
}




First
Previous
Clone Instance
2
Line Count
27
Source Line
29
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/report/gui/action/ReportEditCommand.java

public class ReportEditCommand implements Command {
  private static final Set commands = new HashSet();

  static {
    commands.add("edit");
  }

  public ReportEditCommand() {
  }

  public void doAction(ActionEvent e) {
    ReportGuiPackage guiPackage = ReportGuiPackage.getInstance();
    guiPackage.getMainFrame().setMainPanel((javax.swing.JComponent) guiPackage.getCurrentGui());
    guiPackage.getMainFrame().setEditMenu(guiPackage.getTreeListener().getCurrentNode().createPopupMenu());
    // TODO: I believe the following code (to the end of the method) is
    // obsolete,
    // since NamePanel no longer seems to be the GUI for any component:
    if ( !(guiPackage.getCurrentGui() instanceof NamePanel)) {
      guiPackage.getMainFrame().setFileLoadEnabled(true);
      guiPackage.getMainFrame().setFileSaveEnabled(true);
    }
    else {
      guiPackage.getMainFrame().setFileLoadEnabled(false);
      guiPackage.getMainFrame().setFileSaveEnabled(false);
    }
  }

  public Set getActionNames() {
    return commands;
  }
}




Clone AbstractionParameter Count: 3Parameter Bindings

/**
 * Implements the Edit menu item.
 */
public class [[#variablee0d9720]]implements Command {
  private static final Set commands = new HashSet();

  static {
    commands.add( [[#variablee0d96e0]]);
  }

  public [[#variablee0d9720]]() {
  }

  public void doAction(ActionEvent e) {
     [[#variablee0d9680]] guiPackage = [[#variablee0d9680]].getInstance();
    guiPackage.getMainFrame().setMainPanel((javax.swing.JComponent) guiPackage.getCurrentGui());
    guiPackage.getMainFrame().setEditMenu(guiPackage.getTreeListener().getCurrentNode().createPopupMenu());
    // TODO: I believe the following code (to the end of the method) is
    // obsolete,
    // since NamePanel no longer seems to be the GUI for any component:
    if ( !(guiPackage.getCurrentGui() instanceof NamePanel)) {
      guiPackage.getMainFrame().setFileLoadEnabled(true);
      guiPackage.getMainFrame().setFileSaveEnabled(true);
    }
    else {
      guiPackage.getMainFrame().setFileLoadEnabled(false);
      guiPackage.getMainFrame().setFileSaveEnabled(false);
    }
  }

  public Set getActionNames() {
    return commands;
  }
}


 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#e0d9720]]
EditCommand 
12[[#e0d9720]]
ReportEditCommand 
21[[#e0d96e0]]
ActionNames.EDIT 
22[[#e0d96e0]]
"edit" 
31[[#e0d9680]]
GuiPackage 
32[[#e0d9680]]
ReportGuiPackage