Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
22 | 2 | 0 | 1.000 | class_body_declarations[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 22 | 1587 | plugins/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java |
2 | 22 | 1674 | 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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |