Assume the following XML fragment:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>test</groupId>
<artifactId>bnd-integration-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>BND-M2E Integration Test Project</name>
<description>This project test the BND-m2e integration</description>
<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>7.0.0</version>
<executions>
<execution>
<id>bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
<configuration>
<bnd>
<![CDATA[
]]>
</bnd>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>osgi.core</artifactId>
<version>8.0.0</version>
</dependency>
</dependencies>
</project>
if I place the cursor right after <bnd> (before the CDATA section) then ICompletionParticipant#onXMLContent is called with currentTag=bnd
Now place the cursor inside the
now onXMLContent is not called. As CDATA only marks some parts of the document to contain any chardata it is still XML Content of the element, so I would have expected that the method is still called (maybe with currentTag=CDATA and parentTag=bnd).
Assume the following XML fragment:
if I place the cursor right after
<bnd>(before the CDATA section) thenICompletionParticipant#onXMLContentis called withcurrentTag=bndNow place the cursor inside the
now
onXMLContentis not called. As CDATA only marks some parts of the document to contain any chardata it is still XML Content of the element, so I would have expected that the method is still called (maybe with currentTag=CDATA and parentTag=bnd).