Configuring the insert tag selector

wmaclean
Posts: 25
Joined: Sat Jan 04, 2020 1:17 am

Configuring the insert tag selector

Post by wmaclean » Wed Sep 02, 2020 9:57 pm

Hello,
By the insert tag selector, I am referring to this:
image.png
image.png (39.5 KiB) Viewed 367 times
Some questions:
  • Can it be stretched out more than shown here? That was the biggest I could get it. We've had a request to see if it can show all available tags in a given context.
  • Can it be configured so it always opens up at it's maximum openness?
  • Can it be configured to hide, not just gray out, invalid tags?
  • Can it be configured to insert the selected tag with just one mouse click?
Thank you,
Will

Radu
Posts: 7218
Joined: Fri Jul 09, 2004 5:18 pm

Re: Configuring the insert tag selector

Post by Radu » Thu Sep 03, 2020 7:29 am

Hi Will,

Please see some answers below:
Can it be stretched out more than shown here? That was the biggest I could get it. We've had a request to see if it can show all available tags in a given context.
No, it has a maximum height limit.
Can it be configured so it always opens up at it's maximum openness?
It should preserve this height during the editing session, but probably will not preserve it after restarting Oxygen.
We do have a side view with the same functionality named "Elements", it can be shown from the "Window->Show view" main menu. Maybe you can use that side view instead, dock it on the side so that it spans from the top of the editor to the bottom.
Can it be configured to hide, not just gray out, invalid tags?
Yes, there is a setting for this in the Oxygen Preferences->"Editor / Edit Modes / Author / Schema-Aware" page. The setting is named "Show all possible elements in the content completion list".
Can it be configured to insert the selected tag with just one mouse click?
No, you need to double click or press ENTER. Same for the elements view. One click insertion would make it quite hard to select elements just to find out more information about them in the documentation window or just to move the selection while scrolling the list.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

wmaclean
Posts: 25
Joined: Sat Jan 04, 2020 1:17 am

Re: Configuring the insert tag selector

Post by wmaclean » Sat Sep 05, 2020 2:13 am

Hi Radu,
Thank you!

-Will

vishwavaranasi
Posts: 26
Joined: Fri Feb 28, 2020 4:02 pm

Re: Configuring the insert tag selector

Post by vishwavaranasi » Thu Sep 10, 2020 8:35 pm

Hi Radu,

what is the parameter name for this "showAllPossibleElementsInCCList" to make "false" using pluginWorkspaceAccess.setGlobalObjectProperty?


Thanks,
vishwa
Thanks,
vishwa

Radu
Posts: 7218
Joined: Fri Jul 09, 2004 5:18 pm

Re: Configuring the insert tag selector

Post by Radu » Fri Sep 11, 2020 7:09 am

Hi,

The code would be something like:

Code: Select all

    AuthorSchemaAwareOptions schemaAwareOptions = new AuthorSchemaAwareOptions();
    schemaAwareOptions.setShowAllPossibleElementsInCCList(false);
    PluginWorkspaceProvider.getPluginWorkspace().setGlobalObjectProperty("author.editing.mode", schemaAwareOptions);
or you can use our API to impose options from an XML options file:

Code: Select all

PluginWorkspaceProvider.getPluginWorkspace().importGlobalOptions(optionsFile)
The XML options file can be generated using our main menu "Options->Export Global Options" action.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

vishwavaranasi
Posts: 26
Joined: Fri Feb 28, 2020 4:02 pm

Re: Configuring the insert tag selector

Post by vishwavaranasi » Wed Sep 16, 2020 4:40 pm

Thanks Radu , that worked for us.
Thanks,
vishwa

Post Reply