Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Custom editor indentation
Custom editor indentation [message #1800393] Wed, 26 December 2018 12:59
ayman salah is currently offline ayman salahFriend
Messages: 131
Registered: June 2015
Senior Member
Hi all,

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:

  1. isTabsToSpacesConversionEnabled
  2. installTabsToSpacesConverter


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

Previous Topic:Migrating Eclipse RCP
Next Topic:Custom Tooltip getting disposed when perspective is changed in Windows -10
Goto Forum:
  


Current Time: Sat Nov 28 23:54:54 GMT 2020

Powered by FUDForum. Page generated in 0.01721 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top