Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Enhanced extensibility for the default text editor in Eclipse

Hi all,

Here are some news about our progress:

Using the patch https://git.eclipse.org/r/75921 and a fork of LicLipse Text that you can see at https://github.com/mickaelistria/LiClipseText/tree/ext (interesting commit is https://github.com/mickaelistria/LiClipseText/commit/102c4fb84d2760b5b5e6a8bff27266e2137c932e ), we managed to have LicLipse completion working on the Text Editor directly. Here are the lines to enable it in plugin.xml: https://github.com/mickaelistria/LiClipseText/blob/102c4fb84d2760b5b5e6a8bff27266e2137c932e/plugins/org.brainwy.liclipsetext.editor/plugin.xml#L1838

See http://imgur.com/5eOYOBq

To do so, the ContentAssistProcessor from Liclipse was tweaked to not rely on the LiclipseEditor and to take care of steps such as partitioning as a "blackbox" rather than expecting the document to provide these data.
This happened to work very well, mostly because Liclipse code seems somewhat ready to handle this situation and have its logic well separated and reusable, and also because it gives the impression that the extension points suggested are at the right grain and hook themselves well in flow of Text Editor - at least for completion.

We're currently working on also plugging syntax highlighting from an external contribution, in a similar way and still using Liclipse as contributor.

Cheers,
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top