CloneSet99


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
126608
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/JMeterMenuBar.java
226535
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/ReportMenuBar.java
Next
Last
Clone Instance
1
Line Count
26
Source Line
608
Source File
E:/TSE/Projects-CloneDR/jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/util/JMeterMenuBar.java

/**
 * Processes a locale change notification. Changes the texts in all menus to
 * the new language.
 */
public void localeChanged(LocaleChangeEvent event) {
  updateMenuElement(fileMenu);
  updateMenuElement(editMenu);
  updateMenuElement(runMenu);
  updateMenuElement(optionsMenu);
  updateMenuElement(helpMenu);
}

/**
 * Refreshes all texts in the menu and all submenus to a new locale.
 */
private void updateMenuElement(MenuElement menu) {
  Component component = menu.getComponent();
  if (component.getName() != null) {
    if (component instanceof JMenu) {
      ((JMenu) component).setText(JMeterUtils.getResString(component.getName()));
    }
    else {
      ((JMenuItem) component).setText(JMeterUtils.getResString(component.getName()));
    }
  }
  MenuElement[] subelements = menu.getSubElements();
  for (int i = 0; i < subelements.length; i++) {
    updateMenuElement(subelements[i]);
  }
}


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

/**
 * Processes a locale change notification. Changes the texts in all menus to
 * the new language.
 */
public void localeChanged(LocaleChangeEvent event) {
  updateMenuElement(fileMenu);
  updateMenuElement(editMenu);
  updateMenuElement(runMenu);
  updateMenuElement(optionsMenu);
  updateMenuElement(helpMenu);
}

/**
 * Refreshes all texts in the menu and all submenus to a new locale.
 */
private void updateMenuElement(MenuElement menu) {
  Component component = menu.getComponent();
  if (component.getName() != null) {
    if (component instanceof JMenu) {
      ((JMenu) component).setText(JMeterUtils.getResString(component.getName()));
    }
    else {
      ((JMenuItem) component).setText(JMeterUtils.getResString(component.getName()));
    }
  }
  MenuElement[] subelements = menu.getSubElements();
  for (int i = 0; i < subelements.length; i++) {
    updateMenuElement(subelements[i]);
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * Processes a locale change notification. Changes the texts in all menus to
         * the new language.
         */
public void localeChanged(LocaleChangeEvent event) {
  updateMenuElement(fileMenu);
  updateMenuElement(editMenu);
  updateMenuElement(runMenu);
  updateMenuElement(optionsMenu);
  updateMenuElement(helpMenu);
}

/**
         * Refreshes all texts in the menu and all submenus to a new locale.
         */
private void updateMenuElement(MenuElement menu) {
  Component component = menu.getComponent();
  if (component.getName() != null) {
    if (component instanceof JMenu) {
      ((JMenu) component).setText(JMeterUtils.getResString(component.getName()));
    }
    else {
      ((JMenuItem) component).setText(JMeterUtils.getResString(component.getName()));
    }
  }
  MenuElement[] subelements = menu.getSubElements();
  for (int i = 0; i < subelements.length; i++) {
    updateMenuElement(subelements[i]);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None