diff options
author | amywu | 2006-07-26 04:32:35 +0000 |
---|---|---|
committer | amywu | 2006-07-26 04:32:35 +0000 |
commit | d400a057831ebc45beca0ef371ecaf17d923acb6 (patch) | |
tree | d21e15227a18493a5c3150d048811b6c9472be1d /bundles/org.eclipse.wst.sse.core/src | |
parent | 81da0d1299ae7ee2175386b208b3888fcc5d7964 (diff) | |
download | webtools.sourceediting-d400a057831ebc45beca0ef371ecaf17d923acb6.tar.gz webtools.sourceediting-d400a057831ebc45beca0ef371ecaf17d923acb6.tar.xz webtools.sourceediting-d400a057831ebc45beca0ef371ecaf17d923acb6.zip |
[151069] StructuredDocument is not reloaded on ResourceChangedEvent
Diffstat (limited to 'bundles/org.eclipse.wst.sse.core/src')
-rw-r--r-- | bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java index b229c8d192..6a4ae05a75 100644 --- a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java +++ b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/text/BasicStructuredDocument.java @@ -2852,12 +2852,9 @@ public class BasicStructuredDocument implements IStructuredDocument, IDocumentEx * long) */ public void set(String text, long modificationStamp) { - try { - replace(0, getLength(), text); - } - catch (BadLocationException exception) { - Logger.logException(exception); - } + // bug 151069 - overwrite read only regions when setting entire document + replaceText(null, 0, getLength(), text, true); + fModificationStamp = modificationStamp; } |