문제

There is a Text control bound to a model with WidgetProperties.text(). I'm going to promote it to TextViewer. TextViewer uses IDocument as its input, so WidgetProperties.text() seems to be inapplicable now. How do I keep the text in the control bound to my model?

도움이 되었습니까?

해결책

I don't think there is anything for observing IDocument.

TextViewer uses the StyledText control to present the text, use TextViewer.getTextWidget() to access. WidgetProperties.text() supports observing StyledText.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top