RefactoringCore.getRefactoringContribution(IJavaRefactorings.MOVE) returning NULL [message #1468450] |
Mon, 10 November 2014 21:32 |
Devashi Tandon 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!
|
|
|
Powered by
FUDForum. Page generated in 0.02799 seconds