CDT CEditor typing preferences [message #230311] |
Thu, 12 February 2009 15:57  |
Eclipse User |
|
|
|
In an archive post (msg 14564) Raghavendra described a problem when
CEditor is embedded in a multipage editor. Specifically, when embedded,
if you type '{' followed by CR, the embedded editor does not generate the
closing '}'.
The thread does not have a solution to the problem. The final entry
suggests debugging BracketInserter.verifyKey(), but this method generates
the closing char for '[', '(', '\'', and '\"', but not '{'.
I'm hoping someone knows the solution or at least can point me to where
the closing '}' is generated.
|
|
|
Re: CDT CEditor typing preferences [message #230340 is a reply to message #230311] |
Fri, 13 February 2009 13:15   |
Eclipse User |
|
|
|
Carl Hagenmaier schrieb:
> In an archive post (msg 14564) Raghavendra described a problem when
> CEditor is embedded in a multipage editor. Specifically, when embedded,
> if you type '{' followed by CR, the embedded editor does not generate
> the closing '}'.
>
> The thread does not have a solution to the problem. The final entry
> suggests debugging BracketInserter.verifyKey(), but this method
> generates the closing char for '[', '(', '\'', and '\"', but not '{'.
>
> I'm hoping someone knows the solution or at least can point me to where
> the closing '}' is generated.
>
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=206301
--
Anton Leherbauer
Wind River CDT Team, Austria
|
|
|
|
Re: CDT CEditor typing preferences [message #230356 is a reply to message #230349] |
Sat, 14 February 2009 05:48  |
Eclipse User |
|
|
|
Carl Hagenmaier schrieb:
> Thank you, Anton
>
> As the curly brackets problem also occurs with the Java and JavaScript
> editors, can you tell me what you changed to fix the problem in cdt 4.0.2?
>
Look at CAutoIndentStrategy.computeSmartMode()
|
|
|
Powered by
FUDForum. Page generated in 0.03445 seconds