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:
authornitind2008-05-13 06:31:51 +0000
committernitind2008-05-13 06:31:51 +0000
commitc2a0e8fa6b9a682d0a804256cfeede5c2ab59186 (patch)
tree5a7f49fefcf5e4cf49764431142c62511b6d6f33 /bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml
parent857fc43e72ab16f6db9623db0ac471b9a97ec881 (diff)
downloadwebtools.sourceediting-c2a0e8fa6b9a682d0a804256cfeede5c2ab59186.tar.gz
webtools.sourceediting-c2a0e8fa6b9a682d0a804256cfeede5c2ab59186.tar.xz
webtools.sourceediting-c2a0e8fa6b9a682d0a804256cfeede5c2ab59186.zip
[231692] Poor formatting perfomance on single-line XML files
Diffstat (limited to 'bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml')
-rw-r--r--bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/XMLFormatterFormatProcessor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/XMLFormatterFormatProcessor.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/XMLFormatterFormatProcessor.java
index b12f3f5903..e02ee7e4cb 100644
--- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/XMLFormatterFormatProcessor.java
+++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/formatter/XMLFormatterFormatProcessor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 IBM Corporation and others.
+ * Copyright (c) 2007, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -94,7 +94,7 @@ public class XMLFormatterFormatProcessor implements IStructuredFormatProcessor {
DocumentRewriteSession activeRewriteSession = ((IDocumentExtension4) structuredDocument).getActiveRewriteSession();
boolean startedRewriteSession = false;
if (activeRewriteSession == null) {
- activeRewriteSession = ((IDocumentExtension4) structuredDocument).startRewriteSession(DocumentRewriteSessionType.SEQUENTIAL);
+ activeRewriteSession = ((IDocumentExtension4) structuredDocument).startRewriteSession(DocumentRewriteSessionType.UNRESTRICTED);
startedRewriteSession = true;
}
getFormatter().setProgressMonitor(new NullProgressMonitor() {

Back to the top