CloneSet4022


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13210.994class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113153
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AbstractJavaMainTab.java
213559
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitMainTab.java
Clone Instance
1
Line Count
13
Source Line
153
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AbstractJavaMainTab.java

        /**
         * Return the IJavaProject corresponding to the project name in the project name
         * text field, or null if the text does not match a project name.
         */
        protected IJavaProject getJavaProject() {
                String projectName = fProjText.getText().trim();
                if (projectName.length() < 1) {
                        return null;
                } //end if
                return getJavaModel().getJavaProject(projectName);
        }

        /**
         * Convenience method to get the workspace root.
         */
        protected IWorkspaceRoot getWorkspaceRoot() {
                return ResourcesPlugin.getWorkspace().getRoot();
        }


Clone Instance
2
Line Count
13
Source Line
559
Source File
plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitMainTab.java

        /*
         * Return the IJavaProject corresponding to the project name in the project name
         * text field, or null if the text does not match a project name.
         */
        protected IJavaProject getJavaProject() {
                String projectName = fProjText.getText().trim();
                if (projectName.length() < 1) {
                        return null;
                }
                return getJavaModel().getJavaProject(projectName);
        }

        /*
         * Convenience method to get the workspace root.
         */
        private IWorkspaceRoot getWorkspaceRoot() {
                return ResourcesPlugin.getWorkspace().getRoot();
        }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
         * Return the IJavaProject corresponding to the project name in the project name
         * text field, or null if the text does not match a project name.
         */
/*
         * Return the IJavaProject corresponding to the project name in the project name
         * text field, or null if the text does not match a project name.
         */
protected IJavaProject getJavaProject() {
  String projectName = fProjText.getText().trim();
  if (projectName.length() < 1) {
    return null;
  } //end if
  return getJavaModel().getJavaProject(projectName);
}

 [[#variable9c05ffc0]]IWorkspaceRoot getWorkspaceRoot() {
  return ResourcesPlugin.getWorkspace().getRoot();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9c05ffc0]]
/**
 * Convenience method to get the workspace root.
 */
protected 
12[[#9c05ffc0]]
/*
 * Convenience method to get the workspace root.
 */
private