Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramywu2006-07-26 04:32:35 +0000
committeramywu2006-07-26 04:32:35 +0000
commitd400a057831ebc45beca0ef371ecaf17d923acb6 (patch)
treed21e15227a18493a5c3150d048811b6c9472be1d /bundles/org.eclipse.wst.sse.core/src
parent81da0d1299ae7ee2175386b208b3888fcc5d7964 (diff)
downloadwebtools.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.java9
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;
}

Back to the top