|add import to a groovy file from an eclipse plugin [message #816685]
||Fri, 09 March 2012 01:16
I want to add some import statements in a groovy class via my plugin.
I m trying to do
compilationUnit.createImport(type.getFullyQualifiedName(), null, null);
where type is what i want to import. I get a null pointer exception. I
am using the same code for a Java class and it works.
Can somebody suggest me what could be wrong.
Thanks in advance!!
Powered by FUDForum
. Page generated in 0.02353 seconds