From e44ef41078ca8ffa985d7b2b8747d23bc51146a0 Mon Sep 17 00:00:00 2001 From: Jonah Graham Date: Wed, 19 May 2021 12:48:23 -0400 Subject: [PATCH] Bug 573646: Restore to correct secondary tab The handling of ssecondary ids was problematic, special cases were not well documented and depending on code paths, a secondary ID of null would mean different things. This commit fixes that documentation, defines shared constants, and fixes the logic so secondary id dispayed terminals restore to the correct location on restart. Change-Id: Ia87b64f735a37d505e1a5a7b7a4a8e210dfb8c1e --- .../META-INF/MANIFEST.MF | 2 +- .../ITerminalsConnectorConstants.java | 25 +++++++++ .../META-INF/MANIFEST.MF | 4 +- .../view/ui/manager/ConsoleManager.java | 51 +++++++++---------- .../view/ui/services/TerminalService.java | 10 ++-- 5 files changed, 57 insertions(+), 35 deletions(-) diff --git a/terminal/plugins/org.eclipse.tm.terminal.view.core/META-INF/MANIFEST.MF b/terminal/plugins/org.eclipse.tm.terminal.view.core/META-INF/MANIFEST.MF index 19c8c7373fd..9f15d97d265 100644 --- a/terminal/plugins/org.eclipse.tm.terminal.view.core/META-INF/MANIFEST.MF +++ b/terminal/plugins/org.eclipse.tm.terminal.view.core/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: org.eclipse.tm.terminal.view.core;singleton:=true -Bundle-Version: 4.7.100.qualifier +Bundle-Version: 4.8.0.qualifier Bundle-Activator: org.eclipse.tm.terminal.view.core.activator.CoreBundleActivator Bundle-Vendor: %providerName Require-Bundle: org.eclipse.core.expressions;bundle-version="3.4.400", diff --git a/terminal/plugins/org.eclipse.tm.terminal.view.core/src/org/eclipse/tm/terminal/view/core/interfaces/constants/ITerminalsConnectorConstants.java b/terminal/plugins/org.eclipse.tm.terminal.view.core/src/org/eclipse/tm/terminal/view/core/interfaces/constants/ITerminalsConnectorConstants.java index ed14256fce1..c94d0262618 100644 --- a/terminal/plugins/org.eclipse.tm.terminal.view.core/src/org/eclipse/tm/terminal/view/core/interfaces/constants/ITerminalsConnectorConstants.java +++ b/terminal/plugins/org.eclipse.tm.terminal.view.core/src/org/eclipse/tm/terminal/view/core/interfaces/constants/ITerminalsConnectorConstants.java @@ -32,10 +32,35 @@ public interface ITerminalsConnectorConstants { /** * Property: The unique secondary id of the terminals view to open. *

+ * Special values: + *