NetBeans build 201211260002
JDK 7u9 64-bit
While testing the Maven sanity test spec , I was testing the 'Move Unmanaged Dependency to Dependency Management' hint. The first project I was working with was a Maven-based Java Application. I tried to move a dependency to the management section. All that it did was add
and the original dependency remained unchanged. The hint remained there and could be triggered multiple times with no subsequent effect.
Then I tried on a NetBeans Platform module that is part of a NetBeans Platform Application. When moving to the dependency management section of the module's pom.xml, the same happens. When moving it to the parent's dependency management it works as expected.
Created attachment 128834 [details]
patch to be applied once the new xml api addition is included in the build.
we've always had rather heuristic methods of how to get from selected text to selected dependency, now with the new api in xam modules we only include those dependencies that are entirely selected.. starting before <dependency> and ending after </dependency>
Integrated into 'main-golden', will be available in build *201212140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Milos Kleint <firstname.lastname@example.org>
Log: #222942 both start and end boundaries of dependency element have to be included in selection in order to trigger the hint
Verified with build 201212140001. Thanks!