Search in sources :

Example 1 with ConvertForLoopOperation

use of org.eclipse.jdt.internal.corext.fix.ConvertForLoopOperation in project che by eclipse.

the class ConvertForLoopQuickFixTest method satisfiesPrecondition.

private boolean satisfiesPrecondition(ICompilationUnit cu) {
    ForStatement statement = getForStatement(cu);
    ConvertLoopOperation op = new ConvertForLoopOperation(statement);
    return op.satisfiesPreconditions().isOK();
}
Also used : ConvertForLoopOperation(org.eclipse.jdt.internal.corext.fix.ConvertForLoopOperation) ForStatement(org.eclipse.jdt.core.dom.ForStatement) ConvertLoopOperation(org.eclipse.jdt.internal.corext.fix.ConvertLoopOperation)

Aggregations

ForStatement (org.eclipse.jdt.core.dom.ForStatement)1 ConvertForLoopOperation (org.eclipse.jdt.internal.corext.fix.ConvertForLoopOperation)1 ConvertLoopOperation (org.eclipse.jdt.internal.corext.fix.ConvertLoopOperation)1