CloneSet2693


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9310.993class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1747
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DeleteFileChange.java
2961
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DeleteFolderChange.java
3959
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DeletePackageFragmentRootChange.java
Clone Instance
1
Line Count
7
Source Line
47
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DeleteFileChange.java

        public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException {
                if (fIsExecuteChange) {
                        // no need for checking since we already prompt the
                        // user if the file is dirty or read only
                        return super.isValid(pm, NONE);
                }
                else   {
                        return super.isValid(pm, READ_ONLY|  DIRTY);
                }
        }


Clone Instance
2
Line Count
9
Source Line
61
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DeleteFolderChange.java

        public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException {
                if (fIsExecuteChange) {
                        // no need to do additional checking since the dialog
                        // already prompts the user if there are dirty
                        // or read only files in the folder. The change is
                        // currently not used as a undo/redo change
                        return super.isValid(pm, NONE);
                }
                else   {
                        return super.isValid(pm, READ_ONLY|  DIRTY);
                }
        }


Clone Instance
3
Line Count
9
Source Line
59
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DeletePackageFragmentRootChange.java

        public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException {
                if (fIsExecuteChange) {
                        // don't check for read-only resources since we already
                        // prompt the user via a dialog to confirm deletion of
                        // read only resource. The change is currently not used
                        // as 
                        return super.isValid(pm, DIRTY);
                }
                else   {
                        return super.isValid(pm, READ_ONLY|  DIRTY);
                }
        }


Clone AbstractionParameter Count: 1Parameter Bindings

public RefactoringStatus isValid(IProgressMonitor pm) throws CoreException {
  if (fIsExecuteChange) {
    // no need to do additional checking since the dialog
    // already prompts the user if there are dirty
    // or read only files in the folder. The change is
    // currently not used as a undo/redo change
    // don't check for read-only resources since we already
    // prompt the user via a dialog to confirm deletion of
    // read only resource. The change is currently not used
    // as 
    // no need for checking since we already prompt the
    // user if the file is dirty or read only
    return super.isValid(pm,  [[#variable7d717fe0]]);
  }
  else {
    return super.isValid(pm, READ_ONLY|DIRTY);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7d717fe0]]
NONE 
12[[#7d717fe0]]
DIRTY 
13[[#7d717fe0]]
NONE