mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-08 17:45:24 +02:00
[181105] daytime subsystem needs to implement IServiceSubsystem
This commit is contained in:
parent
f3b73bb973
commit
01a09936d5
1 changed files with 12 additions and 1 deletions
|
@ -18,6 +18,8 @@ import org.eclipse.rse.core.model.IHost;
|
||||||
import org.eclipse.rse.core.model.ISystemMessageObject;
|
import org.eclipse.rse.core.model.ISystemMessageObject;
|
||||||
import org.eclipse.rse.core.model.SystemMessageObject;
|
import org.eclipse.rse.core.model.SystemMessageObject;
|
||||||
import org.eclipse.rse.core.subsystems.IConnectorService;
|
import org.eclipse.rse.core.subsystems.IConnectorService;
|
||||||
|
import org.eclipse.rse.core.subsystems.IServiceSubSystem;
|
||||||
|
import org.eclipse.rse.core.subsystems.IServiceSubSystemConfiguration;
|
||||||
import org.eclipse.rse.core.subsystems.SubSystem;
|
import org.eclipse.rse.core.subsystems.SubSystem;
|
||||||
import org.eclipse.rse.examples.daytime.model.DaytimeResource;
|
import org.eclipse.rse.examples.daytime.model.DaytimeResource;
|
||||||
import org.eclipse.rse.examples.daytime.service.IDaytimeService;
|
import org.eclipse.rse.examples.daytime.service.IDaytimeService;
|
||||||
|
@ -32,7 +34,7 @@ import org.eclipse.rse.ui.RSEUIPlugin;
|
||||||
* This is our subsystem, which manages the remote connection and resources for
|
* This is our subsystem, which manages the remote connection and resources for
|
||||||
* a particular Service (system connection) object.
|
* a particular Service (system connection) object.
|
||||||
*/
|
*/
|
||||||
public class DaytimeSubSystem extends SubSystem {
|
public class DaytimeSubSystem extends SubSystem implements IServiceSubSystem {
|
||||||
|
|
||||||
private IDaytimeService fDaytimeService;
|
private IDaytimeService fDaytimeService;
|
||||||
|
|
||||||
|
@ -84,4 +86,13 @@ public class DaytimeSubSystem extends SubSystem {
|
||||||
//nothing to do
|
//nothing to do
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Class getServiceType() {
|
||||||
|
return IDaytimeService.class;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void switchServiceFactory(IServiceSubSystemConfiguration factory) {
|
||||||
|
// not applicable here
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue