CloneSet1978


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12240.966statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11250
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenTypeAction.java
21246
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenTypeInHierarchyAction.java
Clone Instance
1
Line Count
12
Source Line
50
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/OpenTypeAction.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();


Clone Instance
2
Line Count
12
Source Line
46
Source File
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()        , 
                         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();


Clone AbstractionParameter Count: 4Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bbfa2800]]
null 
12[[#bbfa2800]]
SearchEngine.createWorkspaceScope() 
21[[#bbfa27a0]]
JavaUIMessages 
22[[#bbfa27a0]]
ActionMessages 
31[[#63570540]]
OpenTypeAction_dialogTitle 
32[[#63570540]]
OpenTypeInHierarchyAction_dialogTitle 
41[[#bbfa2840]]
OpenTypeAction_dialogMessage 
42[[#bbfa2840]]
OpenTypeInHierarchyAction_dialogMessage