CloneSet3008


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9240.976statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19151
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AccessRuleEntryDialog.java
29184
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ExclusionInclusionEntryDialog.java
Clone Instance
1
Line Count
9
Source Line
151
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/AccessRuleEntryDialog.java

                String pattern = fPatternDialog.getText().trim();
                if (pattern.length() == 0) {
                        fPatternStatus.setError(NewWizardMessages.TypeRestrictionEntryDialog_error_empty);
                        return;
                }
                IPath path = new Path(pattern);
                if (path.isAbsolute() || path.getDevice() != null) {
                        fPatternStatus.setError(NewWizardMessages.TypeRestrictionEntryDialog_error_notrelative);
                        return;
                }


Clone Instance
2
Line Count
9
Source Line
184
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ExclusionInclusionEntryDialog.java

                String pattern = fExclusionPatternDialog.getText().trim();
                if (pattern.length() == 0) {
                        fExclusionPatternStatus.setError(NewWizardMessages.ExclusionInclusionEntryDialog_error_empty);
                        return;
                }
                IPath path = new Path(pattern);
                if (path.isAbsolute() || path.getDevice() != null) {
                        fExclusionPatternStatus.setError(NewWizardMessages.ExclusionInclusionEntryDialog_error_notrelative);
                        return;
                }


Clone AbstractionParameter Count: 4Parameter Bindings

String pattern = [[#variablea4f860c0]].getText().trim();
if (pattern.length() == 0) {
   [[#variablea4f5d080]].setError(NewWizardMessages. [[#variablea4f86080]]);
  return;
}
IPath path = new Path(pattern);
if (path.isAbsolute() || path.getDevice() != null) {
   [[#variablea4f5d080]].setError(NewWizardMessages. [[#variablea4f86060]]);
  return;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a4f860c0]]
fExclusionPatternDialog 
12[[#a4f860c0]]
fPatternDialog 
21[[#a4f5d080]]
fExclusionPatternStatus 
22[[#a4f5d080]]
fPatternStatus 
31[[#a4f86080]]
ExclusionInclusionEntryDialog_error_empty 
32[[#a4f86080]]
TypeRestrictionEntryDialog_error_empty 
41[[#a4f86060]]
ExclusionInclusionEntryDialog_error_notrelative 
42[[#a4f86060]]
TypeRestrictionEntryDialog_error_notrelative