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

Oxygen general issues.
Stevee
Posts: 16
Joined: Wed Jan 12, 2022 6:17 pm

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

Post 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
adrian_sorop
Posts: 73
Joined: Wed Jun 22, 2016 2:48 pm

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

Post 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.
Adrian Sorop
<oXygen/> XML Editor
http://www.oxygenxml.com
Stevee
Posts: 16
Joined: Wed Jan 12, 2022 6:17 pm

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

Post by Stevee »

Hi Adrian, thank you for your reply.

This worked for me :)
Post Reply