Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-text-dev] How to get Generic Editor into "Smart Insert" mode?

Hi,

It looks like the Generic Editor is configured to be in "Insert" mode (ITextEditorExtension3.getInsertMode() == INSERT).

Is there a supported way to get it into "Smart Insert" mode (ITextEditorExtension3.getInsertMode() == SMART_INSERT) instead?

The usual way would be to call setInsertMode(SMART_INSERT), but TextEditor.initializeEditor() (which ExtensionBasedTextEditor does not override) calls configureInsertMode(SMART_INSERT,false) which basically marks SMART_INSERT mode as illegal. I would need to call configureInsertMode(SMART_INSERT,true) followed by setInsertMode(SMART_INSERT), but configureInsertMode() is protected.

Thanks,
Nate

Back to the top