diff --git a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemRegistry.java b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemRegistry.java index 7578fad8db8..4e9db3a8b60 100644 --- a/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemRegistry.java +++ b/rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemRegistry.java @@ -16,6 +16,7 @@ * Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods * Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry + * Martin Oberhuber (Wind River) - [189123] Prepare ISystemRegistry for move into non-UI ********************************************************************************/ package org.eclipse.rse.core.model; diff --git a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistry.java b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistry.java index c3f0e68ed22..3ee09cafab5 100644 --- a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistry.java +++ b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistry.java @@ -27,6 +27,7 @@ * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry * Martin Oberhuber (Wind River) - [186779] Fix IRSESystemType.getAdapter() * Martin Oberhuber (Wind River) - [186773] split SystemRegistryUI from SystemRegistry implementation + * Martin Oberhuber (Wind River) - [189123] Prepare ISystemRegistry for move into non-UI ********************************************************************************/ package org.eclipse.rse.ui.internal.model; @@ -608,6 +609,7 @@ public class SystemRegistry implements ISystemRegistry ISubSystemConfiguration factory = proxies[idx].getSubSystemConfiguration(); if (factory != null) { + //FIXME why is this done via the adapter, and not the ISubSystemConfiguration directly? ISubSystemConfigurationAdapter adapter = (ISubSystemConfigurationAdapter)factory.getAdapter(ISubSystemConfigurationAdapter.class); adapter.renameSubSystemProfile(factory,oldName, newName); } @@ -859,6 +861,8 @@ public class SystemRegistry implements ISystemRegistry } ISubSystem firstSubSystem = (ISubSystem) activeReferenceVector.elementAt(0); String connectionName = firstSubSystem.getHost().getSystemProfileName() + "." + firstSubSystem.getHost().getAliasName(); //$NON-NLS-1$ + //Warning. Profile '%1' should be active. Active connection '%2' contains a reference to it. + //FIXME I think it should be sufficient to log this as warning rather than open a dialog SystemMessage sysMsg = RSEUIPlugin.getPluginMessage(ISystemMessages.MSG_LOADING_PROFILE_SHOULDNOTBE_DEACTIVATED); sysMsg.makeSubstitution(profile.getName(), connectionName); SystemBasePlugin.logWarning(sysMsg.getFullMessageID() + ": " + sysMsg.getLevelOneText()); //$NON-NLS-1$ diff --git a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistryUI.java b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistryUI.java index fc7a18a3bf5..2d43656dca5 100644 --- a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistryUI.java +++ b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistryUI.java @@ -12,6 +12,7 @@ * * Contributors: * Martin Oberhuber (Wind River) - [186773] split SystemRegistryUI from SystemRegistry implementation + * Martin Oberhuber (Wind River) - [189123] Prepare ISystemRegistry for move into non-UI ********************************************************************************/ package org.eclipse.rse.ui.internal.model; diff --git a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/model/ISystemRegistryUI.java b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/model/ISystemRegistryUI.java index a34845cf4a1..a0c9f2df3bb 100644 --- a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/model/ISystemRegistryUI.java +++ b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/model/ISystemRegistryUI.java @@ -13,6 +13,7 @@ * Contributors: * Martin Oberhuber (Wind River) - [168975] Move RSE Events API to Core * Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry + * Martin Oberhuber (Wind River) - [189123] Prepare ISystemRegistry for move into non-UI ********************************************************************************/ package org.eclipse.rse.ui.model;