Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2012-05-14 02:36:27 -0400
committerDani Megert2012-05-14 02:36:27 -0400
commit4d478fe89dad590e34017386b29694213800ec1f (patch)
treedded4d9c5831a5afc2f49c4d81fb24b37c82242b
parentba8f3c1d6bfc90f4b454edbcb7e3d6579aa8dd83 (diff)
downloadeclipse.platform.text-4d478fe89dad590e34017386b29694213800ec1f.tar.gz
eclipse.platform.text-4d478fe89dad590e34017386b29694213800ec1f.tar.xz
eclipse.platform.text-4d478fe89dad590e34017386b29694213800ec1f.zip
Renamed endCompoundChange()v20120514-0636
-rw-r--r--org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java
index 5d5b11544..225465bad 100644
--- a/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java
+++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/link/LinkedModeUI.java
@@ -503,7 +503,7 @@ public class LinkedModeUI {
// if the last position is not the same and there is an open change: close it.
if (!position.equals(fPreviousPosition))
- endCompoundChange();
+ endCompoundChangeIfNeeded();
beginCompoundChangeIfNeeded();
}
@@ -838,7 +838,7 @@ public class LinkedModeUI {
fPositionListener.linkingFocusLost(fFramePosition, fCurrentTarget);
// undo
- endCompoundChange();
+ endCompoundChangeIfNeeded();
redraw(); // redraw current position being left - usually not needed
IDocument oldDoc= fFramePosition == null ? null : fFramePosition.getDocument();
@@ -1122,7 +1122,7 @@ public class LinkedModeUI {
return;
fIsActive= false;
- endCompoundChange();
+ endCompoundChangeIfNeeded();
Display display= null;
if (fCurrentTarget.fWidget != null && !fCurrentTarget.fWidget.isDisposed())
@@ -1203,7 +1203,7 @@ public class LinkedModeUI {
runnable.run();
}
- private void endCompoundChange() {
+ private void endCompoundChangeIfNeeded() {
if (fHasOpenCompoundChange) {
ITextViewerExtension extension= (ITextViewerExtension) fCurrentTarget.getViewer();
IRewriteTarget target= extension.getRewriteTarget();

Back to the top