Bug 579244 - LinkHelper must not activate editor that is already active
diff --git a/org.eclipse.handly.ui/src/org/eclipse/handly/ui/navigator/LinkHelper.java b/org.eclipse.handly.ui/src/org/eclipse/handly/ui/navigator/LinkHelper.java
index 85558d9..233e600 100644
--- a/org.eclipse.handly.ui/src/org/eclipse/handly/ui/navigator/LinkHelper.java
+++ b/org.eclipse.handly.ui/src/org/eclipse/handly/ui/navigator/LinkHelper.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2014, 2018 1C-Soft LLC and others.
+ * Copyright (c) 2014, 2022 1C-Soft LLC and others.
  *
  * This program and the accompanying materials are made available under
  * the terms of the Eclipse Public License 2.0 which is available at
@@ -106,7 +106,7 @@
         if (reference != null)
         {
             IEditorPart editor = reference.getEditor(true);
-            if (editor != null)
+            if (editor != null && editor != page.getActiveEditor())
             {
                 page.bringToTop(editor);
                 editorUtility.revealElement(editor, element);