Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-ui-dev] Show error messages directly in editor

On 12/20/2013 10:45 PM, Simon Schäfer wrote:
After searching a while the sources I found out that the base functionality is done by org.eclipse.swt.custom.StyledText. It seems that this class is only responsible to work with text, adding other data that are not text seems not to be possible. Probably this has to be done by oneself.
You could imagine wrapping the editor widget as a StyledText in a StackLayout, and have the error messages displayed as other widgets (Image, StyledText...) on other "layers" of this StackLayout, on top of the editor.
Not sure how much effort it represents. On a new Editor made by yourself, it should be easy to tweak the underlying SWT layouts to implement it. On existing Editors, it would probably be a bit trickier.

Anyway, that's indeed a nice thing to have. You should open a feature request. https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform&component=Text

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

Back to the top