diff --git a/releng/CDT.setup b/releng/CDT.setup
index 26532d41b28..3bcfd246b31 100644
--- a/releng/CDT.setup
+++ b/releng/CDT.setup
@@ -243,8 +243,6 @@
includeBinaryEquivalents="false">
-
-
-
-
-
-
diff --git a/terminal/plugins/org.eclipse.tm.terminal.view.ui/META-INF/MANIFEST.MF b/terminal/plugins/org.eclipse.tm.terminal.view.ui/META-INF/MANIFEST.MF
index 4ec4609f718..55ba5b71838 100644
--- a/terminal/plugins/org.eclipse.tm.terminal.view.ui/META-INF/MANIFEST.MF
+++ b/terminal/plugins/org.eclipse.tm.terminal.view.ui/META-INF/MANIFEST.MF
@@ -10,7 +10,6 @@ Require-Bundle: org.eclipse.core.expressions;bundle-version="[3.9.400,4)",
org.eclipse.core.resources;bundle-version="[3.22.200,4)";resolution:=optional,
org.eclipse.core.variables;bundle-version="[3.6.500,4)",
org.eclipse.debug.ui;bundle-version="[3.18.800,4)";resolution:=optional,
- org.eclipse.egit.ui;bundle-version="[7.3.0,8)";resolution:=optional,
org.eclipse.tm.terminal.view.core;bundle-version="[4.10.0,5.0.0)",
org.eclipse.tm.terminal.control;bundle-version="[5.6.0,6.0.0)",
org.eclipse.ui;bundle-version="[3.207.200,4)",
@@ -40,6 +39,5 @@ Export-Package: org.eclipse.tm.terminal.view.ui.actions,
org.eclipse.tm.terminal.view.ui.services,
org.eclipse.tm.terminal.view.ui.streams,
org.eclipse.tm.terminal.view.ui.tabs,
- org.eclipse.tm.terminal.view.ui.view,
- org.eclipse.tm.terminal.view.ui.view.showin;x-internal:=true
+ org.eclipse.tm.terminal.view.ui.view
Automatic-Module-Name: org.eclipse.tm.terminal.view.ui
diff --git a/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/view/TerminalsView.java b/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/view/TerminalsView.java
index 99623e40fb6..a1838db6137 100644
--- a/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/view/TerminalsView.java
+++ b/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/view/TerminalsView.java
@@ -60,7 +60,6 @@ import org.eclipse.tm.terminal.view.ui.nls.Messages;
import org.eclipse.tm.terminal.view.ui.tabs.TabFolderManager;
import org.eclipse.tm.terminal.view.ui.tabs.TabFolderMenuHandler;
import org.eclipse.tm.terminal.view.ui.tabs.TabFolderToolbarHandler;
-import org.eclipse.tm.terminal.view.ui.view.showin.GitShowInContextHandler;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.ISources;
import org.eclipse.ui.IViewSite;
@@ -622,21 +621,6 @@ public class TerminalsView extends ViewPart implements ITerminalsView, IShowInTa
// Get the selection from the context
ISelection selection = context.getSelection();
- // If the selection is not set or empty, look at the input element of
- // the show in context.
- if (!(selection instanceof IStructuredSelection) || selection.isEmpty()) {
- Object input = context.getInput();
- // If coming from the EGit repository viewer, the input element is
- // org.eclipse.egit.ui.internal.history.HistoryPageInput
- if ("org.eclipse.egit.ui.internal.history.HistoryPageInput".equals(input.getClass().getName())) { //$NON-NLS-1$
- Bundle bundle = Platform.getBundle("org.eclipse.egit.ui"); //$NON-NLS-1$
- if (bundle != null && bundle.getState() != Bundle.UNINSTALLED
- && bundle.getState() != Bundle.STOPPING) {
- selection = GitShowInContextHandler.getSelection(input);
- }
- }
- }
-
// The selection must contain elements that can be adapted to IResource, File or IPath
if (selection instanceof IStructuredSelection && !selection.isEmpty()) {
boolean isValid = true;
@@ -706,15 +690,6 @@ public class TerminalsView extends ViewPart implements ITerminalsView, IShowInTa
continue;
}
- // The EGit repository view can also set a RepositoryTreeNode (and subclasses)
- // "org.eclipse.egit.ui.internal.repository.tree...."
- if (element.getClass().getName().startsWith("org.eclipse.egit.ui.internal.repository.tree")) { //$NON-NLS-1$
- bundle = Platform.getBundle("org.eclipse.egit.ui"); //$NON-NLS-1$
- if (bundle != null && bundle.getState() != Bundle.UNINSTALLED
- && bundle.getState() != Bundle.STOPPING) {
- adapted = GitShowInContextHandler.getPath(element);
- }
- }
if (adapted != null) {
if (!elements.contains(adapted))
elements.add(adapted);
diff --git a/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/view/showin/GitShowInContextHandler.java b/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/view/showin/GitShowInContextHandler.java
deleted file mode 100644
index 9d453bbe750..00000000000
--- a/terminal/plugins/org.eclipse.tm.terminal.view.ui/src/org/eclipse/tm/terminal/view/ui/view/showin/GitShowInContextHandler.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2015, 2018 Wind River Systems, Inc. and others. All rights reserved.
- * This program and the accompanying materials are made available under the terms
- * of the Eclipse Public License 2.0 which accompanies this distribution, and is
- * available at https://www.eclipse.org/legal/epl-2.0/
- *
- * SPDX-License-Identifier: EPL-2.0
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tm.terminal.view.ui.view.showin;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.Assert;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.StructuredSelection;
-
-/**
- * Git show in context handler implementation.
- */
-@SuppressWarnings("restriction")
-public class GitShowInContextHandler {
-
- /**
- * Converts the data from the input object into a selection.
- *
- * @param input The input element. Must not be null.
- * @return The selection or null.
- */
- public static ISelection getSelection(Object input) {
- Assert.isNotNull(input);
-
- List