| DocumentAdapter [message #1066876] |
Thu, 04 July 2013 17:31  |
Rodrigo Antonio Messages: 16 Registered: June 2010 Location: São Paulo - Brasil |
Junior Member |
|
|
I'm developing my editor with DLTK (4.0.0.201206062034).
In some moments I need to write in the sources.
I got no problems using GetBuffer().Append ("source")
However if my string contains line delimititers(like "function() \nlocal oLocalVar1 \nreturn"), I got this exception:
! MESSAGE WARNING: DocumentAdapter added new line delimiter to code: 13 10
! STACK 0
java.lang.Throwable
at org.eclipse.dltk.internal.ui.editor.DocumentAdapter.validateLineDelimiters (DocumentAdapter.java: 498)
Analyzing DocumentAdapter I saw this:
private static final boolean DEBUG_LINE_DELIMITERS = true;
How do I not give exception:this case?
I really need to add sources such as:
thank you
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.07851 seconds