diff options
author | Nick Sandonato | 2013-01-16 23:25:25 +0000 |
---|---|---|
committer | Nick Sandonato | 2013-01-17 22:22:34 +0000 |
commit | 922e67f7fce0040629c50dbf06a3be110bfb3dc5 (patch) | |
tree | 15436fad5bc51fa6fb312b3dabfa2d9f9da9a8bb | |
parent | f48c40b65e1a7a02958df7af99cb8100ede06ad1 (diff) | |
download | webtools.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.java | 6 |
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); + } } } |