Re-activate content assist after making a selection [message #1815757] |
Wed, 09 October 2019 21:23  |
Eclipse User |
|
|
|
Hi,
Is it possible to trigger content assist a second time after the user has selected one of the choices?
For example I have created a scenario lilke the following
- The user types a '<' and is presented with a list of HTML tags
- The user selects a tag
- I'd then like the auto assist to insert the tag name plus a space and then show a list of attributes to select from
I haven't been able to get this to work without making the user type that space themselves (eg. space have the space in getCompletionProposalAutoActivationCharacters)
So when I think I want is to autoactivate a second time on the user's selection. Is this possible?
Thank you,
Andrew.
|
|
|
Re: Re-activate content assist after making a selection [message #1815761 is a reply to message #1815757] |
Thu, 10 October 2019 05:40  |
Eclipse User |
|
|
|
I'm not sure how one would do that, but one thing you might try is sending the space key events to simulate the user having entered the space by calling org.eclipse.swt.widgets.Widget.notifyListeners(int, Event) with the appropriate SWT event code, e.g., KeyUp/KeyDown and the appropriate information in the Event, which is a bit tricky, so you might want to listen for these events and see what information exactly is in the event when the user actually enters a space.
|
|
|
Powered by
FUDForum. Page generated in 0.35168 seconds