mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 07:05:24 +02:00
[189123][api][breaking] Prepare ISystemRegistry for move into non-UI
This commit is contained in:
parent
7fef0e5980
commit
2acbd133aa
4 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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$
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue