Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 6 | 0.950 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 56 | plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaProjectSourceContainerTypeDelegate.java |
2 | 7 | 58 | plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/PackageFragmentRootSourceContainerTypeDelegate.java |
| ||||
/* (non-Javadoc) * @see org.eclipse.debug.internal.core.sourcelookup.ISourceContainerTypeDelegate#getMemento(org.eclipse.debug.internal.core.sourcelookup.ISourceContainer) */ public String getMemento(ISourceContainer container) throws CoreException { JavaProjectSourceContainer project = (JavaProjectSourceContainer) container; Document document = newDocument(); Element element = document.createElement("javaProject"); //$NON-NLS-1$ element.setAttribute("name", project.getName()); //$NON-NLS-1$ document.appendChild(element); return serializeDocument(document); } |
| ||||
/* (non-Javadoc) * @see org.eclipse.debug.internal.core.sourcelookup.ISourceContainerTypeDelegate#getMemento(org.eclipse.debug.internal.core.sourcelookup.ISourceContainer) */ public String getMemento(ISourceContainer container) throws CoreException { PackageFragmentRootSourceContainer root = (PackageFragmentRootSourceContainer) container; Document document = newDocument(); Element element = document.createElement("packageFragmentRoot"); //$NON-NLS-1$ element.setAttribute("handle", root.getPackageFragmentRoot().getHandleIdentifier()); //$NON-NLS-1$ document.appendChild(element); return serializeDocument(document); } |
| |||
/* (non-Javadoc) * @see org.eclipse.debug.internal.core.sourcelookup.ISourceContainerTypeDelegate#getMemento(org.eclipse.debug.internal.core.sourcelookup.ISourceContainer) */ public String getMemento(ISourceContainer container) throws CoreException { [[#variable58c10560]] [[#variable58c104c0]]= ( [[#variable58c10560]]) container; Document document = newDocument(); Element element = document.createElement( [[#variable58c10460]]); //$NON-NLS-1$ element.setAttribute( [[#variable58c10400]], [[#variable58c10340]]. [[#variable58c102a0]]()); //$NON-NLS-1$ document.appendChild(element); return serializeDocument(document); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58c10560]] | PackageFragmentRootSourceContainer |
1 | 2 | [[#58c10560]] | JavaProjectSourceContainer |
2 | 1 | [[#58c104c0]] | root |
2 | 2 | [[#58c104c0]] | project |
3 | 1 | [[#58c10460]] | "packageFragmentRoot" |
3 | 2 | [[#58c10460]] | "javaProject" |
4 | 1 | [[#58c10400]] | "handle" |
4 | 2 | [[#58c10400]] | "name" |
5 | 1 | [[#58c10340]] | root.getPackageFragmentRoot() |
5 | 2 | [[#58c10340]] | project |
6 | 1 | [[#58c102a0]] | getHandleIdentifier |
6 | 2 | [[#58c102a0]] | getName |