Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tm-dev] Opening remote file selection dialog? + Rec. way of fetching host?

Hi,

I use this: (resource is an instance of a subclass of AbstractResource)

IHost host = resource.getSubSystem().getHost();
ISubSystem[] sss = RSECorePlugin.getTheSystemRegistry().getSubsystems(host, IFileServiceSubSystem.class);
if (sss.length == 0 || !(sss[0] instanceof FileServiceSubSystem)) {
    MessageDialog.openWarning(getShell(), ..., ...);
    return;
}
FileServiceSubSystem fsss = (FileServiceSubSystem) sss[0];

Patrick


Back to the top