Page 1 of 1

Content Completion filter

Posted: Fri Aug 18, 2023 5:47 pm
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

Re: Content Completion filter

Posted: Mon Aug 21, 2023 7:08 am
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

Re: Content Completion filter

Posted: Mon Aug 21, 2023 11:58 am
by Isabelle
Hello Radu,

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

Regards,
Isabelle

Re: Content Completion filter

Posted: Mon Aug 21, 2023 12:41 pm
by Radu
Hi Isabelle,
Great, I'm glad this works for you!
Regards,
Radu