Page 1 of 1

Customizing Content Completion Assistant. Removing "new Element" from Content Completion Proposals.

Posted: Mon Aug 08, 2022 3:23 pm
by Stevee
Hi,

I want to exclude an Element from the Content-Completion-Proposals Window.
I use therefore the Aproach that is described in Step 3 in this Documentation:
https://www.oxygenxml.com/doc/versions/ ... -only.html

The Element i want to exclude now is successfully excluded from the Proposals.
But i think because the Element i want to exlucde can appear a multiple Times successively, there still appears "New <elementname>" in the Content-Completion Proposals if i open direcly the content Completion Window after the Tag that was excluded from the Content Completion List.

Is there a way to also exclude this New Action for this specific element from the Content Completion Window?

Greetings
Stevee

Re: Customizing Content Completion Assistant. Removing "new Element" from Content Completion Proposals.

Posted: Mon Aug 08, 2022 3:55 pm
by adrian_sorop
Hi,
The simplest solution it would be to add a new entry that uses a wildcard.
Something like:

Code: Select all

* <element_name>
Example: if you want to hide the element p, you would have 2 entries in that table
1) p
2) * p

Best regards,
Adrian S.

Re: Customizing Content Completion Assistant. Removing "new Element" from Content Completion Proposals.

Posted: Thu Aug 11, 2022 4:39 pm
by Stevee
Hi Adrian, thank you for your reply.

This worked for me :)