Fixing imports [message #252947] |
Wed, 23 April 2008 18:31  |
Eclipse User |
|
|
|
Originally posted by: amracna.vocollect.com
Can anyone point me to the implementation of copy/paste for the JDT? When
pasting a method into a .java file, any type references that are not
declared in the imports but are found on the classpath are automatically
added to the imports. I am generating code and basically need to add a
method to a class. When I add the new IMethod, I also need to be able to
add imports automatically for the types in the method I am adding that are
not already being imported. Copy/Paste does this in the UI and so I'd like
to review that implementation to see how to integrate this capability into
my plugin. Any help is greatly appreciated.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.44286 seconds