Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2009-09-02 16:25:24 -0400
committerpelder2009-09-02 16:25:24 -0400
commitbae8549d85b50bb11113ef40d4839680f5303a51 (patch)
tree90106510a38245d34ed23db0851f8c5910d31117
parent351123f83577bed247f82515381c2ca63e5f846e (diff)
downloadorg.eclipse.jet-bae8549d85b50bb11113ef40d4839680f5303a51.tar.gz
org.eclipse.jet-bae8549d85b50bb11113ef40d4839680f5303a51.tar.xz
org.eclipse.jet-bae8549d85b50bb11113ef40d4839680f5303a51.zip
[288403] JET deletes content within c:userRegion section after regenerating
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/UserRegionHelper.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/UserRegionHelper.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/UserRegionHelper.java
index 995a898..e661471 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/UserRegionHelper.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/taglib/UserRegionHelper.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2008 IBM Corporation and others.
+ * Copyright (c) 2005, 2009 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
@@ -163,6 +163,10 @@ public final class UserRegionHelper implements IWriterListener, IWriterListenerE
for (int i = 0; i < icPositions.length; i++)
{
Position pos = icPositions[i];
+ if(pos.isDeleted()) {
+ // skip deleted positions - they are not updated
+ continue;
+ }
if (pos.offset + pos.length > userRegionPosition.offset + userRegionPosition.length)
{
return null;

Back to the top