Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.966 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 98 | E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/menu/ExtendableMenuBar.java |
2 | 10 | 110 | 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); } |
| |||||
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 */ } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#13275f80]] | insertMenuItem |
1 | 2 | [[#13275f80]] | insertAction |
2 | 1 | [[#13275f00]] | JMenuItem |
2 | 2 | [[#13275f00]] | AbstractColumbaAction |
3 | 1 | [[#13275e40]] | menuItem |
3 | 2 | [[#13275e40]] | action |