CloneSet334


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10230.966method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11098
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/ExtendableMenuBar.java
210110
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/ExtendableMenuBar.java
Next
Last
Clone Instance
1
Line Count
10
Source Line
98
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/ExtendableMenuBar.java

public void insertMenuItem(String menuId, String placeholderId, JMenuItem menuItem) {
  if (menuId == null)
    throw new IllegalArgumentException("menuId == null");
  if (map.containsKey(menuId) == false)
    throw new IllegalArgumentException("no menu with id " + menuId + " found");
  ExtendableMenu menu = (ExtendableMenu) map.get(menuId);
  menu.insert(menuItem, placeholderId);
}


First
Previous
Clone Instance
2
Line Count
10
Source Line
110
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/ExtendableMenuBar.java

public void insertAction(String menuId, String placeholderId, AbstractColumbaAction action) {
  if (menuId == null)
    throw new IllegalArgumentException("menuId == null");
  if (map.containsKey(menuId) == false)
    throw new IllegalArgumentException("no menu with id " + menuId + " found");
  ExtendableMenu menu = (ExtendableMenu) map.get(menuId);
  menu.insert(action, placeholderId);
/*TODO before inserting, find out if there's already a menu item
 * with the same action command. if so, replace it, otherwise insert new
 */
}


Clone AbstractionParameter Count: 3Parameter Bindings

public void [[#variable13275f80]](String menuId, String placeholderId, [[#variable13275f00]]  [[#variable13275e40]]) {
  if (menuId == null)
    throw new IllegalArgumentException("menuId == null");
  if (map.containsKey(menuId) == false)
    throw new IllegalArgumentException("no menu with id " + menuId + " found");
  ExtendableMenu menu = (ExtendableMenu) map.get(menuId);
  menu.insert( [[#variable13275e40]], placeholderId);
/*TODO before inserting, find out if there's already a menu item
     * with the same action command. if so, replace it, otherwise insert new
     */
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#13275f80]]
insertMenuItem 
12[[#13275f80]]
insertAction 
21[[#13275f00]]
JMenuItem 
22[[#13275f00]]
AbstractColumbaAction 
31[[#13275e40]]
menuItem 
32[[#13275e40]]
action