Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Rename Refactoring creating an unexistent Java Model Method
Rename Refactoring creating an unexistent Java Model Method [message #1042130] Mon, 15 April 2013 22:54
Leonardo Jr. is currently offline Leonardo Jr.
Messages: 1
Registered: April 2013
Junior Member
I'm trying to rename all the methods of a large project.

RenameNonVirtualMethodProcessor processor = new RenameNonVirtualMethodProcessor(method);			processor.setNewElementName(method.getElementName()+"_2");			
			processor.setUpdateReferences(true);
			processor.checkNewElementName(method.getElementName()+"_2");
			RenameRefactoring refactoring = new RenameRefactoring(processor);
final CreateChangeOperation create = new CreateChangeOperation(
					new CheckConditionsOperation(refactoring,
							CheckConditionsOperation.ALL_CONDITIONS),
					RefactoringStatus.FATAL);

			PerformChangeOperation perform = new PerformChangeOperation(create);
			perform.run(pm);


The code actually succeeds until this error pops out. I Was checking, and i saw that the method that were having errors were open (exists on Java Model), and the newly refactored method don't.

java.lang.IllegalArgumentException: Invalid java element: =aima-core/src\/main\/java<aima.core.logic.fol.parsing.ast{TermEquality.java[TermEquality~equals_2~QObject;
equals_2(Object) (not open) [in TermEquality [in [Working copy] TermEquality.java [in aima.core.logic.fol.parsing.ast [in src/main/java [in aima-core]]]]]

at org.eclipse.jdt.internal.corext.refactoring.RefactoringSearchEngine.createOrPattern(RefactoringSearchEngine.java:203)
Any clues on how can i solve it?
Previous Topic:PDT
Next Topic:Can not close Eclipse
Goto Forum:
  


Current Time: Sat Jul 26 15:19:39 EDT 2014

Powered by FUDForum. Page generated in 0.02323 seconds