CloneSet4415


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.987class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
16396
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/ScrapbookLauncher.java
26410
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/ScrapbookLauncher.java
Clone Instance
1
Line Count
6
Source Line
396
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/ScrapbookLauncher.java

        /**
         * Returns the working directory attribute for the given snippet file,
         * possibly <code>null</code>.
         * 
         * @exception CoreException if unable to retrieve the attribute
         */
        public static String getWorkingDirectoryAttribute(IFile file) throws CoreException {
                ILaunchConfiguration config = getLaunchConfigurationTemplate(file);
                if (config != null) {
                        return config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, (String) null);
                }
                return null;
        }


Clone Instance
2
Line Count
6
Source Line
410
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/snippeteditor/ScrapbookLauncher.java

        /**
         * Returns the VM args attribute for the given snippet file,
         * possibly <code>null</code>.
         * 
         * @exception CoreException if unable to retrieve the attribute
         */
        public static String getVMArgsAttribute(IFile file) throws CoreException {
                ILaunchConfiguration config = getLaunchConfigurationTemplate(file);
                if (config != null) {
                        return config.getAttribute(IJavaLaunchConfigurationConstants.ATTR_VM_ARGUMENTS, (String) null);
                }
                return null;
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Returns the working directory attribute for the given snippet file,
         * possibly <code>null</code>.
         * 
         * @exception CoreException if unable to retrieve the attribute
         */
/**
         * Returns the VM args attribute for the given snippet file,
         * possibly <code>null</code>.
         * 
         * @exception CoreException if unable to retrieve the attribute
         */
public static String  [[#variableb18af280]](IFile file) throws CoreException {
  ILaunchConfiguration config = getLaunchConfigurationTemplate(file);
  if (config != null) {
    return config.getAttribute(IJavaLaunchConfigurationConstants. [[#variableb18af980]], (String) null);
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b18af280]]
getWorkingDirectoryAttribute 
12[[#b18af280]]
getVMArgsAttribute 
21[[#b18af980]]
ATTR_WORKING_DIRECTORY 
22[[#b18af980]]
ATTR_VM_ARGUMENTS