Bug 31634 Quickfix should do a team checkout
2.1 M5 / clearcase / eclipse-ccase plugin 0.9.3 Quickfix says no corrections available for a read only file that is under source control (i.e. not checked out). Quickfix should propose the corrections and check the file out automatically to implement them.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewVariableCompletionProposal.java
rewrite.markAsReplaced(assignment.getParent(), newDecl);
						return rewrite;
					} else if (parentParentKind == ASTNode.FOR_STATEMENT) {
						ForStatement forStatement= (ForStatement) parent.getParent();
						if (forStatement.initializers().size() == 1 && assignment.equals(forStatement.initializers().get(0))) {
							VariableDeclarationFragment frag= ast.newVariableDeclarationFragment();
							VariableDeclarationExpression expression= ast.newVariableDeclarationExpression(frag);
							frag.setName(ast.newSimpleName(node.getIdentifier()));
							Expression placeholder= (Expression) rewrite.createCopy(assignment.getRightHandSide());
							frag.setInitializer(placeholder);
							expression.setType(evaluateVariableType(ast));
							
							rewrite.markAsReplaced(assignment, expression);
							return rewrite;
						}			
					}			
				}
			} else if (parent.getNodeType() == ASTNode.EXPRESSION_STATEMENT) {
				rewrite.markAsReplaced(parent, newDecl);
				return rewrite;
			}
			Statement statement= ASTResolving.findParentStatement(node);
			if (statement != null && statement.getParent() instanceof Block) {
				Block block= (Block) statement.getParent();
				List statements= block.statements();
				statements.add(0, newDecl);
				rewrite.markAsInserted(newDecl);
				return rewrite;
			}
		}