Community
Participate
Working Groups
Scenerio is this. This is being run inside of a runnable in JavaCore.run(). You have an IType and you get the compilation unit for it. You invoke ICompilationUnit.move() with a proper existing destination IPackageFragment. If you try to add imports using createImport() to this compilation unit it will not work. Workaround - creating imports first, and then performing the move works. Secondary (related problem). After the move, if you do ICompilationUnit.getParent() it still reports its parent as the old IPackageFragment (not the new one that was where it was supposed to move to) Also, things like type.getFullyQualifiedName() report the original name, not the new name.
Deferring post 3.1
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.