CloneSet2974


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10340.957class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11057
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/AptUIPlugin.java
210200
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java
310233
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java
Clone Instance
1
Line Count
10
Source Line
57
Source File
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/AptUIPlugin.java

        public static IWorkbenchWindow getActiveWorkbenchWindow() {
                return getDefault().getWorkbench().getActiveWorkbenchWindow();
        }

        public static Shell getActiveWorkbenchShell() {
                 IWorkbenchWindow window = getActiveWorkbenchWindow();
                 if (window != null) {
                        return window.getShell();
                 }
                 return null;
        }


Clone Instance
2
Line Count
10
Source Line
200
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java

        /**
         * Returns the active workbench window
         * 
         * @return the active workbench window
         */
        public static IWorkbenchWindow getActiveWorkbenchWindow() {
                return getDefault().getWorkbench().getActiveWorkbenchWindow();
        }

        public static IWorkbenchPage getActivePage() {
                IWorkbenchWindow w = getActiveWorkbenchWindow();
                if (w != null) {
                        return w.getActivePage();
                }
                return null;
        }


Clone Instance
3
Line Count
10
Source Line
233
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java

        public static IWorkbenchWindow getActiveWorkbenchWindow() {
                return getDefault().getWorkbench().getActiveWorkbenchWindow();
        }

        public static Shell getActiveWorkbenchShell() {
                 IWorkbenchWindow window = getActiveWorkbenchWindow();
                 if (window != null) {
                        return window.getShell();
                 }
                 return null;
        }


Clone AbstractionParameter Count: 4Parameter Bindings

/**
         * Returns the active workbench window
         * 
         * @return the active workbench window
         */
public static IWorkbenchWindow getActiveWorkbenchWindow() {
  return getDefault().getWorkbench().getActiveWorkbenchWindow();
}

public static [[#variable9bae88c0]]  [[#variable9bae8d40]]() {
  IWorkbenchWindow  [[#variable9bae90c0]]= getActiveWorkbenchWindow();
  if ( [[#variable9bae90c0]]!= null) {
    return [[#variable9bae90c0]]. [[#variable9bae9100]]();
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9bae88c0]]
Shell 
12[[#9bae88c0]]
IWorkbenchPage 
13[[#9bae88c0]]
Shell 
21[[#9bae8d40]]
getActiveWorkbenchShell 
22[[#9bae8d40]]
getActivePage 
23[[#9bae8d40]]
getActiveWorkbenchShell 
31[[#9bae90c0]]
window 
32[[#9bae90c0]]
w 
33[[#9bae90c0]]
window 
41[[#9bae9100]]
getShell 
42[[#9bae9100]]
getActivePage 
43[[#9bae9100]]
getShell