| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 10 | 3 | 4 | 0.957 | class_body_declarations[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 10 | 57 | plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/AptUIPlugin.java |
| 2 | 10 | 200 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIDebugUIPlugin.java |
| 3 | 10 | 233 | 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;
}
|
| ||||
/**
* 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;
}
|
| ||||
public static IWorkbenchWindow getActiveWorkbenchWindow() {
return getDefault().getWorkbench().getActiveWorkbenchWindow();
}
public static Shell getActiveWorkbenchShell() {
IWorkbenchWindow window = getActiveWorkbenchWindow();
if (window != null) {
return window.getShell();
}
return null;
}
|
| |||
/**
* 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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#9bae88c0]] | Shell |
| 1 | 2 | [[#9bae88c0]] | IWorkbenchPage |
| 1 | 3 | [[#9bae88c0]] | Shell |
| 2 | 1 | [[#9bae8d40]] | getActiveWorkbenchShell |
| 2 | 2 | [[#9bae8d40]] | getActivePage |
| 2 | 3 | [[#9bae8d40]] | getActiveWorkbenchShell |
| 3 | 1 | [[#9bae90c0]] | window |
| 3 | 2 | [[#9bae90c0]] | w |
| 3 | 3 | [[#9bae90c0]] | window |
| 4 | 1 | [[#9bae9100]] | getShell |
| 4 | 2 | [[#9bae9100]] | getActivePage |
| 4 | 3 | [[#9bae9100]] | getShell |