mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-22 15:53:58 +02:00
[api][170639] change IHost to implement IAdaptable
This commit is contained in:
parent
715878ed24
commit
911aa6d674
3 changed files with 5 additions and 4 deletions
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
package org.eclipse.rse.core.model;
|
package org.eclipse.rse.core.model;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.IAdaptable;
|
||||||
import org.eclipse.rse.core.subsystems.IConnectorService;
|
import org.eclipse.rse.core.subsystems.IConnectorService;
|
||||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||||
|
|
||||||
|
@ -29,7 +30,7 @@ import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||||
/**
|
/**
|
||||||
* @lastgen interface SystemConnection {}
|
* @lastgen interface SystemConnection {}
|
||||||
*/
|
*/
|
||||||
public interface IHost extends IRSEModelObject {
|
public interface IHost extends IAdaptable, IRSEModelObject {
|
||||||
/**
|
/**
|
||||||
* Return the system profile that owns this connection
|
* Return the system profile that owns this connection
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -18,7 +18,6 @@ package org.eclipse.rse.internal.model;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
import org.eclipse.core.runtime.IAdaptable;
|
|
||||||
import org.eclipse.core.runtime.Platform;
|
import org.eclipse.core.runtime.Platform;
|
||||||
import org.eclipse.rse.core.IRSESystemType;
|
import org.eclipse.rse.core.IRSESystemType;
|
||||||
import org.eclipse.rse.core.SystemPreferencesManager;
|
import org.eclipse.rse.core.SystemPreferencesManager;
|
||||||
|
@ -35,7 +34,7 @@ import org.eclipse.rse.ui.RSEUIPlugin;
|
||||||
/**
|
/**
|
||||||
* A single connection object.
|
* A single connection object.
|
||||||
*/
|
*/
|
||||||
public class Host extends RSEModelObject implements IHost, IAdaptable
|
public class Host extends RSEModelObject implements IHost
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.model;
|
package org.eclipse.rse.model;
|
||||||
|
import org.eclipse.core.runtime.PlatformObject;
|
||||||
import org.eclipse.rse.core.model.IHost;
|
import org.eclipse.rse.core.model.IHost;
|
||||||
import org.eclipse.rse.core.model.IPropertySet;
|
import org.eclipse.rse.core.model.IPropertySet;
|
||||||
import org.eclipse.rse.core.model.ISystemHostPool;
|
import org.eclipse.rse.core.model.ISystemHostPool;
|
||||||
|
@ -22,7 +23,7 @@ import org.eclipse.rse.core.model.ISystemProfile;
|
||||||
import org.eclipse.rse.core.subsystems.IConnectorService;
|
import org.eclipse.rse.core.subsystems.IConnectorService;
|
||||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||||
|
|
||||||
public class DummyHost implements IHost
|
public class DummyHost extends PlatformObject implements IHost
|
||||||
{
|
{
|
||||||
protected String _hostName;
|
protected String _hostName;
|
||||||
protected String _systemType;
|
protected String _systemType;
|
||||||
|
|
Loading…
Add table
Reference in a new issue