Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 4 | 0.966 | statement_sequence[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 50 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenTypeAction.java |
2 | 12 | 46 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenTypeInHierarchyAction.java |
| ||||
Shell parent = JavaPlugin.getActiveWorkbenchShell(); OpenTypeSelectionDialog2 dialog = new OpenTypeSelectionDialog2(parent, false, PlatformUI.getWorkbench().getProgressService() , null , IJavaSearchConstants.TYPE); dialog.setTitle(JavaUIMessages.OpenTypeAction_dialogTitle); dialog.setMessage(JavaUIMessages.OpenTypeAction_dialogMessage); int result = dialog.open(); if (result != IDialogConstants.OK_ID) return; Object[] types = dialog.getResult(); |
| ||||
Shell parent = JavaPlugin.getActiveWorkbenchShell(); OpenTypeSelectionDialog2 dialog = new OpenTypeSelectionDialog2(parent, false, PlatformUI.getWorkbench().getProgressService() , SearchEngine.createWorkspaceScope() , IJavaSearchConstants.TYPE); dialog.setTitle(ActionMessages.OpenTypeInHierarchyAction_dialogTitle); dialog.setMessage(ActionMessages.OpenTypeInHierarchyAction_dialogMessage); int result = dialog.open(); if (result != IDialogConstants.OK_ID) return; Object[] types = dialog.getResult(); |
| |||
Shell parent = JavaPlugin.getActiveWorkbenchShell(); OpenTypeSelectionDialog2 dialog = new OpenTypeSelectionDialog2(parent, false, PlatformUI.getWorkbench().getProgressService(), [[#variablebbfa2800]], IJavaSearchConstants.TYPE); dialog.setTitle( [[#variablebbfa27a0]]. [[#variable63570540]]); dialog.setMessage( [[#variablebbfa27a0]]. [[#variablebbfa2840]]); int result = dialog.open(); if (result != IDialogConstants.OK_ID) return; Object[] types = dialog.getResult(); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bbfa2800]] | null |
1 | 2 | [[#bbfa2800]] | SearchEngine.createWorkspaceScope() |
2 | 1 | [[#bbfa27a0]] | JavaUIMessages |
2 | 2 | [[#bbfa27a0]] | ActionMessages |
3 | 1 | [[#63570540]] | OpenTypeAction_dialogTitle |
3 | 2 | [[#63570540]] | OpenTypeInHierarchyAction_dialogTitle |
4 | 1 | [[#bbfa2840]] | OpenTypeAction_dialogMessage |
4 | 2 | [[#bbfa2840]] | OpenTypeInHierarchyAction_dialogMessage |