Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » RefactoringCore.getRefactoringContribution(IJavaRefactorings.MOVE) returning NULL(RefactoringContribution API)
RefactoringCore.getRefactoringContribution(IJavaRefactorings.MOVE) returning NULL [message #1468450] Mon, 10 November 2014 21:32
Devashi Tandon is currently offline Devashi TandonFriend
Messages: 1
Registered: November 2014
Junior Member
I am trying to refactor a Java Project using Eclipse JDT plugin. The plugin will move a class file from one package to another package.

I have added the org.eclipse.jdt.core.manipulation plugin dependency in our plugin but the method call to getRefactoringContribution is still returning NULL. The following code is being used

RefactoringContribution contribution =
RefactoringCore.getRefactoringContribution(IJavaRefactorings.MOVE);
MoveDescriptor descriptor= (MoveDescriptor) contribution.createDescriptor();

In the above code, contribution object is always null when the id passed to it is from IJavaRefactorings.

Please help me to figure out what configuration setting I could be missing or if the issue could be occurring somewhere else.

Thanks!

Previous Topic:External .jar isnt recognized
Next Topic:JBOSS server give Deployment failed erorr
Goto Forum:
  


Current Time: Mon Nov 30 08:17:27 GMT 2020

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

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

Back to the top