Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Sandonato2013-01-16 23:25:25 +0000
committerNick Sandonato2013-01-17 22:22:34 +0000
commit922e67f7fce0040629c50dbf06a3be110bfb3dc5 (patch)
tree15436fad5bc51fa6fb312b3dabfa2d9f9da9a8bb
parentf48c40b65e1a7a02958df7af99cb8100ede06ad1 (diff)
downloadwebtools.sourceediting-922e67f7fce0040629c50dbf06a3be110bfb3dc5.tar.gz
webtools.sourceediting-922e67f7fce0040629c50dbf06a3be110bfb3dc5.tar.xz
webtools.sourceediting-922e67f7fce0040629c50dbf06a3be110bfb3dc5.zip
[398345] Numerous action handler conflicts when changing editorsv201301172222
-rw-r--r--bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/ActionContributorXML.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/ActionContributorXML.java b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/ActionContributorXML.java
index c4f8285df7..4498ff0a14 100644
--- a/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/ActionContributorXML.java
+++ b/bundles/org.eclipse.wst.xml.ui/src/org/eclipse/wst/xml/ui/internal/actions/ActionContributorXML.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2001, 2008 IBM Corporation and others.
+ * Copyright (c) 2001, 2013 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
@@ -196,7 +196,9 @@ public class ActionContributorXML extends ActionContributor {
fGoToMatchingTagAction.setEditor(textEditor);
if (textEditor != null) {
- textEditor.setAction(GO_TO_MATCHING_TAG_ID, fGoToMatchingTagAction);
+ if (textEditor.getAction(GO_TO_MATCHING_TAG_ID) != fGoToMatchingTagAction) {
+ textEditor.setAction(GO_TO_MATCHING_TAG_ID, fGoToMatchingTagAction);
+ }
}
}

Back to the top