Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 3 | 0.985 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 117 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddFolderAction.java |
2 | 18 | 94 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/AddJarAction.java |
| ||||
/** * Returns a list of resources of currently selected folders */ protected List getSelectedFolders() { List list = getEntriesAsList(); List folders = new ArrayList(); Iterator iter = list.iterator(); while (iter.hasNext()) { IRuntimeClasspathEntry entry = (IRuntimeClasspathEntry) iter.next(); if (entry.getType() == IRuntimeClasspathEntry.ARCHIVE) { IResource res = entry.getResource(); if (res != null && res instanceof IContainer) { folders.add(res); } } } return folders; } protected int getActionType() { return ADD; } |
| ||||
/** * Returns a list of resources of currently selected jars */ protected List getSelectedJars() { List list = getEntriesAsList(); List jars = new ArrayList(); Iterator iter = list.iterator(); while (iter.hasNext()) { IRuntimeClasspathEntry entry = (IRuntimeClasspathEntry) iter.next(); if (entry.getType() == IRuntimeClasspathEntry.ARCHIVE) { IResource res = entry.getResource(); if (res != null && res instanceof IFile) { jars.add(res); } } } return jars; } protected int getActionType() { return ADD; } |
| |||
/** * Returns a list of resources of currently selected folders */ /** * Returns a list of resources of currently selected jars */ protected List [[#variable6340f460]]() { List list = getEntriesAsList(); List [[#variable6340f420]]= new ArrayList(); Iterator iter = list.iterator(); while (iter.hasNext()) { IRuntimeClasspathEntry entry = (IRuntimeClasspathEntry) iter.next(); if (entry.getType() == IRuntimeClasspathEntry.ARCHIVE) { IResource res = entry.getResource(); if (res != null && res instanceof [[#variable6340f480]]) { [[#variable6340f420]].add(res); } } } return [[#variable6340f420]]; } protected int getActionType() { return ADD; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6340f460]] | getSelectedFolders |
1 | 2 | [[#6340f460]] | getSelectedJars |
2 | 1 | [[#6340f420]] | folders |
2 | 2 | [[#6340f420]] | jars |
3 | 1 | [[#6340f480]] | IContainer |
3 | 2 | [[#6340f480]] | IFile |