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 7603bf528c5..1b7cefd99e9 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 @@ -543,6 +543,33 @@ public interface ISystemRegistry extends ISchedulingRule { */ public IHost createHost(String systemType, String connectionName, String hostAddress, String description) throws Exception; + /** + * Update an existing host given the new information. + * This method: + * + *

+ * @param host the host to be updated + * @param systemType system type matching one of the system type names defined via the + * systemTypes extension point. + * @param connectionName unique connection name. + * @param hostName ip name of host. + * @param description optional description of the host. Can be null. + * @param defaultUserId userId to use as the default for the subsystems under this host. + * @param defaultUserIdLocation one of the constants in {@link org.eclipse.rse.core.IRSEUserIdConstants} + * that tells us where to set the user Id + */ + public void updateHost(IHost host, String systemType, String connectionName, + String hostName, String description, + String defaultUserId, int defaultUserIdLocation); + /** * Creates subsystems for a given host and subsystem configurations. * @param host the host. diff --git a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/model/ISystemRegistryUI.java b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/model/ISystemRegistryUI.java index b56d01d6d8d..c2994e07d4e 100644 --- a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/model/ISystemRegistryUI.java +++ b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/model/ISystemRegistryUI.java @@ -15,7 +15,6 @@ ********************************************************************************/ package org.eclipse.rse.model; -import org.eclipse.rse.core.model.IHost; import org.eclipse.rse.core.model.ISystemRegistry; import org.eclipse.swt.dnd.Clipboard; @@ -24,33 +23,6 @@ import org.eclipse.swt.dnd.Clipboard; */ public interface ISystemRegistryUI extends ISystemRegistry { - /** - * Update an existing host given the new information. - * This method: - *

- *

- * @param host the host to be updated - * @param systemType system type matching one of the system type names defined via the - * systemTypes extension point. - * @param connectionName unique connection name. - * @param hostName ip name of host. - * @param description optional description of the host. Can be null. - * @param defaultUserId userId to use as the default for the subsystems under this host. - * @param defaultUserIdLocation one of the constants in {@link org.eclipse.rse.core.IRSEUserIdConstants} - * that tells us where to set the user Id - */ - public void updateHost(IHost host, String systemType, String connectionName, - String hostName, String description, - String defaultUserId, int defaultUserIdLocation); - /** * Returns the clipboard used for copy actions */ diff --git a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/AbstractConnectorService.java b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/AbstractConnectorService.java index 558d2e630b6..2a568aba336 100644 --- a/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/AbstractConnectorService.java +++ b/rse/plugins/org.eclipse.rse.ui/subsystems/org/eclipse/rse/core/subsystems/AbstractConnectorService.java @@ -25,8 +25,6 @@ import org.eclipse.rse.core.RSECorePlugin; import org.eclipse.rse.core.model.IHost; import org.eclipse.rse.core.model.ISystemRegistry; import org.eclipse.rse.core.model.SystemSignonInformation; -import org.eclipse.rse.model.ISystemRegistryUI; -import org.eclipse.rse.ui.RSEUIPlugin; /** * This is a base class to make it easier to create connector service classes. @@ -320,7 +318,7 @@ public abstract class AbstractConnectorService extends SuperAbstractConnectorSer } else { int whereToUpdate = IRSEUserIdConstants.USERID_LOCATION_HOST; IHost host = subsystem.getHost(); - ISystemRegistryUI sr = RSEUIPlugin.getDefault().getSystemRegistry(); + ISystemRegistry sr = RSECorePlugin.getDefault().getSystemRegistry(); sr.updateHost(host, host.getSystemType(), host.getAliasName(), host.getHostName(), host.getDescription(), userId, whereToUpdate); } }