View | Details | Raw Unified | Return to bug 83693 | Differences between
and this patch

Collapse All | Expand All

(-)core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeSignatureRefactoring.java (-3 / +2 lines)
Lines 1310-1318 Link Here
1310
		else if (node instanceof SimpleName && node.getParent() instanceof MethodDeclaration)
1310
		else if (node instanceof SimpleName && node.getParent() instanceof MethodDeclaration)
1311
			return new DeclarationUpdate((MethodDeclaration) node.getParent(), cuRewrite, result);
1311
			return new DeclarationUpdate((MethodDeclaration) node.getParent(), cuRewrite, result);
1312
		
1312
		
1313
		else if (node instanceof SimpleName && 
1313
		else if (node.getNodeType() == ASTNode.METHOD_REF || node.getNodeType() == ASTNode.MEMBER_REF)
1314
				(node.getParent() instanceof MemberRef || node.getParent() instanceof MethodRef))
1314
			return new DocReferenceUpdate(node, cuRewrite, result);
1315
			return new DocReferenceUpdate(node.getParent(), cuRewrite, result);
1316
		
1315
		
1317
		else if (ASTNodes.getParent(node, ImportDeclaration.class) != null)
1316
		else if (ASTNodes.getParent(node, ImportDeclaration.class) != null)
1318
			return new StaticImportUpdate((ImportDeclaration) ASTNodes.getParent(node, ImportDeclaration.class), cuRewrite, result);
1317
			return new StaticImportUpdate((ImportDeclaration) ASTNodes.getParent(node, ImportDeclaration.class), cuRewrite, result);

Return to bug 83693