if (elem.getNodeType() == ASTNode.VARIABLE_DECLARATION_FRAGMENT) { fFieldBinding= elem.resolveBinding(); fEffectiveSelectionStart= name.getStartPosition(); fEffectiveSelectionLength= name.getLength(); return simpleNameSelected(name); } else{ return nodeTypeNotSupported(); }
setSelectionRanges(name); return simpleNameSelected(name);
	private String fieldDeclarationSelected(FieldDeclaration fieldDeclaration) {		if (fieldDeclaration.fragments().size() != 1) {			return RefactoringCoreMessages.getString("ChangeTypeRefactoring.multiDeclarationsNotSupported"); //$NON-NLS-1$		} else {			VariableDeclarationFragment elem= (VariableDeclarationFragment) fieldDeclaration.fragments().iterator().next();			SimpleName name= elem.getName();			if (elem.getNodeType() == ASTNode.VARIABLE_DECLARATION_FRAGMENT) {				fFieldBinding= elem.resolveBinding();				fEffectiveSelectionStart= name.getStartPosition();				fEffectiveSelectionLength= name.getLength(); 				return simpleNameSelected(name);			} else{				return nodeTypeNotSupported();			}		}	}