CloneSet1221


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22201.000class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1221587
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
2221674
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java
Clone Instance
1
Line Count
22
Source Line
1587
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                public RefactoringStatus checkFinalConditions(IProgressMonitor pm, CheckConditionsContext context, IReorgQueries reorgQueries) throws CoreException {
                        try {
                                RefactoringStatus status = super.checkFinalConditions(pm, context, reorgQueries);
                                confirmMovingReadOnly(reorgQueries);
                                return status;
                        } catch (JavaModelException e) {
                                throw e;
                          }
                          catch (CoreException e) {
                                throw new JavaModelException(e);
                          }
                }

                private void confirmMovingReadOnly(IReorgQueries reorgQueries) throws CoreException {
                        if ( ! ReadOnlyResourceFinder.confirmMoveOfReadOnlyElements(getJavaElements(), getResources(), reorgQueries))
                                throw new OperationCanceledException(); //saying 'no' to this one is like cancelling the whole operation
                }

                public ICreateTargetQuery getCreateTargetQuery(ICreateTargetQueries createQueries) {
                        return null;
                }

                public boolean isTextualMove() {
                        return false;
                }


Clone Instance
2
Line Count
22
Source Line
1674
Source File
plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java

                public RefactoringStatus checkFinalConditions(IProgressMonitor pm, CheckConditionsContext context, IReorgQueries reorgQueries) throws CoreException {
                        try {
                                RefactoringStatus status = super.checkFinalConditions(pm, context, reorgQueries);
                                confirmMovingReadOnly(reorgQueries);
                                return status;
                        } catch (JavaModelException e) {
                                throw e;
                          }
                          catch (CoreException e) {
                                throw new JavaModelException(e);
                          }
                }

                private void confirmMovingReadOnly(IReorgQueries reorgQueries) throws CoreException {
                        if ( ! ReadOnlyResourceFinder.confirmMoveOfReadOnlyElements(getJavaElements(), getResources(), reorgQueries))
                                throw new OperationCanceledException(); //saying 'no' to this one is like cancelling the whole operation
                }

                public ICreateTargetQuery getCreateTargetQuery(ICreateTargetQueries createQueries) {
                        return null;
                }

                public boolean isTextualMove() {
                        return false;
                }


Clone AbstractionParameter Count: 0Parameter Bindings

public RefactoringStatus checkFinalConditions(IProgressMonitor pm, CheckConditionsContext context, IReorgQueries reorgQueries) throws CoreException {
  try {
    RefactoringStatus status = super.checkFinalConditions(pm, context, reorgQueries);
    confirmMovingReadOnly(reorgQueries);
    return status;
  }
  catch (JavaModelException e) {
    throw e;
  }
  catch (CoreException e) {
    throw new JavaModelException(e);
  }
}

private void confirmMovingReadOnly(IReorgQueries reorgQueries) throws CoreException {
  if ( !ReadOnlyResourceFinder.confirmMoveOfReadOnlyElements(getJavaElements(), getResources(), reorgQueries))
    throw new OperationCanceledException(); //saying 'no' to this one is like cancelling the whole operation
}

public ICreateTargetQuery getCreateTargetQuery(ICreateTargetQueries createQueries) {
  return null;
}

public boolean isTextualMove() {
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None