Content Completion filter

Post here questions and problems related to oXygen frameworks/document types.
Isabelle
Posts: 142
Joined: Fri Jan 20, 2017 1:11 pm

Content Completion filter

Post by Isabelle »

Hello,

We use the version 25.0.0.0 of oxygen sdk.
I would like to know if it is possible to filter content completion pop up with only xsd compliant values.
Currently, we have first xsd compliant values, and after, in grey color, the non xsd compliant values.
Is it possible to hide the non compliants one ?
Thanks.

Regards,
Isabelle
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Content Completion filter

Post by Radu »

Hi Isabelle,

Maybe setting this global option might work if you call this code before opening any of the files:

Code: Select all

 
     ro.sync.ecss.component.AuthorSchemaAwareOptions options = (AuthorSchemaAwareOptions) AuthorSchemaAwareOptions.DEFAULT.clone();
    options.setShowAllPossibleElementsInCCList(false);
    PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty(ro.sync.exml.options.APIAccessibleOptionTags.AUTHOR_EDITING_MODE, options);
https://www.oxygenxml.com/InstData/Edit ... nTags.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Isabelle
Posts: 142
Joined: Fri Jan 20, 2017 1:11 pm

Re: Content Completion filter

Post by Isabelle »

Hello Radu,

It works fine.
Now I only see available elements and actions.
Thanks.

Regards,
Isabelle
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Content Completion filter

Post by Radu »

Hi Isabelle,
Great, I'm glad this works for you!
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply