| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 9 | 3 | 1 | 0.993 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 47 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DeleteFileChange.java |
| 2 | 9 | 61 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/changes/DeleteFolderChange.java |
| 3 | 9 | 59 | 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) {
// 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);
}
}
|
| ||||
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);
}
}
|
| ||||
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);
}
}
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#7d717fe0]] | NONE |
| 1 | 2 | [[#7d717fe0]] | DIRTY |
| 1 | 3 | [[#7d717fe0]] | NONE |