CloneSet2771


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7260.950class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1756
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaProjectSourceContainerTypeDelegate.java
2758
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/PackageFragmentRootSourceContainerTypeDelegate.java
Clone Instance
1
Line Count
7
Source Line
56
Source File
plugins/org.eclipse.jdt.launching/launching/org/eclipse/jdt/internal/launching/JavaProjectSourceContainerTypeDelegate.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);
        }


Clone Instance
2
Line Count
7
Source Line
58
Source File
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 {
                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);
        }


Clone AbstractionParameter Count: 6Parameter Bindings

/* (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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58c10560]]
PackageFragmentRootSourceContainer 
12[[#58c10560]]
JavaProjectSourceContainer 
21[[#58c104c0]]
root 
22[[#58c104c0]]
project 
31[[#58c10460]]
"packageFragmentRoot" 
32[[#58c10460]]
"javaProject" 
41[[#58c10400]]
"handle" 
42[[#58c10400]]
"name" 
51[[#58c10340]]
root.getPackageFragmentRoot() 
52[[#58c10340]]
project 
61[[#58c102a0]]
getHandleIdentifier 
62[[#58c102a0]]
getName