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?

On 05/30/2011 06:58 PM, Patrick Tassé wrote:
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

Thanks, will try this!

Cheers,
// Samuel



_______________________________________________ tm-dev mailing list tm-dev@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/tm-dev


-- 
Bioinformatician / System expert
SNIC-UPPMAX / UPPNEX
Uppsala University, Sweden
--------------------------------------
E-mail: samuel.lampa@xxxxxxxxxxxxxxxx
Mobile: +46 (0)70 - 207 3732
Uppnex: http://www.uppnex.uu.se

Back to the top