Where do you manage to hide the content of an element with c
Posted: Mon Apr 07, 2014 12:05 pm
Hello,
we are using the Oxygen Author Eclipse plugin in version 15.2.
I wanted to copy the dita conref functionality for the Pi-Mod framework.
With the help of your sdk samples I succeeded in showing the conref content inide the editor.
But the actual content and childelements of the XML element, which has the conref attribute is also shown.
I thought it would be hidden by overriding the de.kgucms.kgu.tps.client.oxygen.extensions.pimod.extensionsbundle.PiModExtensionsBundle.isContentReference(AuthorNode) method:
But I guess something else has to be done, in order to hide the conref element.
Could you please tell me how to achieve that?
Best regards,
Simon
we are using the Oxygen Author Eclipse plugin in version 15.2.
I wanted to copy the dita conref functionality for the Pi-Mod framework.
With the help of your sdk samples I succeeded in showing the conref content inide the editor.
But the actual content and childelements of the XML element, which has the conref attribute is also shown.
I thought it would be hidden by overriding the de.kgucms.kgu.tps.client.oxygen.extensions.pimod.extensionsbundle.PiModExtensionsBundle.isContentReference(AuthorNode) method:
Code: Select all
@Override
public boolean isContentReference(AuthorNode authornode) {
if (authornode.getType() == AuthorNode.NODE_TYPE_ELEMENT) {
AuthorElement elem = (AuthorElement) authornode;
if (elem.getAttribute("conref") != null
|| elem.getAttribute("conkeyref") != null) {
return true;
}
}
return false;
}
Could you please tell me how to achieve that?
Best regards,
Simon