|Custom editor indentation [message #1800393]
||Wed, 26 December 2018 12:59
| ayman salah
Registered: June 2015
I have my custom editor which extends TextEditor and I also have a custom SourceViewerConfiguration which extends TextSourceViewerConfiguration.
I have my own preference page. I would like to add fields with the same behavior of those found here General -> Editors -> Text Editors
(Displayed Tab Width, Insert spaces for tabs).
I have added the fields in my preference page and also done the following:
Override getTabWidth (in my SourceViewerConfiguration) method to return the tab width in my preference page.
I know that there exists those two functions in the class AbstractTextEditor:
I don't know what if I need to override these or not. Do I?
Problem is that nothing works. The changes are 100% ineffective although I can step into getTabWidth that I have have overridden. What am I missing?
Also, I don't know if performOK will need something special to update the currently opened editors or not (any listeners?).
[Updated on: Wed, 26 December 2018 12:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.28299 seconds