CloneSet2510


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.962executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111258
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FormatAllAction.java
211218
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/SortMembersAction.java
Clone Instance
1
Line Count
11
Source Line
258
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/FormatAllAction.java

                                    {
                        int returnCode = OptionalMessageDialog.open("FormatAll",  //$NON-NLS-1$
                                                                     getShell(), 
                                         ActionMessages.FormatAllAction_noundo_title, 
                                         null                       , 
                                         ActionMessages.FormatAllAction_noundo_message, 
                                         MessageDialog.WARNING      , 
                                         new String[] {
                                                       IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL
                                                      }             , 0);
                        if (returnCode != OptionalMessageDialog.NOT_SHOWN &&
                                        returnCode != Window.OK)  return;
                                    }


Clone Instance
2
Line Count
11
Source Line
218
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/SortMembersAction.java

                                                     {
                        int returnCode = OptionalMessageDialog.open(ID_OPTIONAL_DIALOG, 
                                         getShell()                 , 
                                         getDialogTitle()           , 
                                         null                       , 
                                         ActionMessages.SortMembersAction_containsmarkers, 
                                         MessageDialog.WARNING      , 
                                         new String[] {
                                                       IDialogConstants.OK_LABEL, IDialogConstants.CANCEL_LABEL
                                                      }             , 0);
                        if (returnCode != OptionalMessageDialog.NOT_SHOWN &&
                                        returnCode != Window.OK)  return;
                                                     }


Clone AbstractionParameter Count: 3Parameter Bindings

{
  int returnCode = OptionalMessageDialog.open( [[#variable9df5f9e0]], //$NON-NLS-1$
                                               getShell(),  [[#variable9df5f020]], null, ActionMessages. [[#variable9df5fa80]], MessageDialog.WARNING, new String[] {
                                                                                                                                                                      IDialogConstants.OK_LABEL,
                                                                                                                                                                      IDialogConstants.CANCEL_LABEL
                                                                                                                                                                    }, 0);
  if (returnCode != OptionalMessageDialog.NOT_SHOWN && returnCode != Window.OK)
    return;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9df5f9e0]]
"FormatAll" 
12[[#9df5f9e0]]
ID_OPTIONAL_DIALOG 
21[[#9df5f020]]
ActionMessages.FormatAllAction_noundo_title 
22[[#9df5f020]]
getDialogTitle() 
31[[#9df5fa80]]
FormatAllAction_noundo_message 
32[[#9df5fa80]]
SortMembersAction_containsmarkers