[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.dsdp.tm] Re: Problem using SystemRemoteFolderDialog

I tried what you suggested and it works for both the 'My Home' and 'Root' cases.

Thanks

David McKnight wrote:

Hi Dave,

Here's something you may want to try:
// could have selected a filter reference

Object value = selectFolderAction.getValue();
if (value instanceof ISystemFilterReference){
    ISystemFilterReference fref = (ISystemFilterReference)value;
    ISubSystem ss = fref.getSubSystem();
    // target for filter should give the most relevant folder
    Object target = ss.getTargetForFilter(fref);
    if (target instanceof IRemoteFile){
        remoteFile = (IRemoteFile)target;
}

Dave