Skip to main content

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] Tue, 16 April 2013 02:54
Leonardo Jr. is currently offline Leonardo Jr.Friend
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");			
			RenameRefactoring refactoring = new RenameRefactoring(processor);
final CreateChangeOperation create = new CreateChangeOperation(
					new CheckConditionsOperation(refactoring,

			PerformChangeOperation perform = new PerformChangeOperation(create);;

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~equals_2~QObject;
equals_2(Object) (not open) [in TermEquality [in [Working copy] [in aima.core.logic.fol.parsing.ast [in src/main/java [in aima-core]]]]]

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

Current Time: Sun Apr 02 03:15:52 GMT 2023

Powered by FUDForum. Page generated in 0.02066 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top