Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Questions about remote support


On Oct 8, 2007, at 12:21 PM, Dave Wootton wrote:

Greg
I don't understand the comment about subclassing
AbstractRemoteResourceManager in order to have the resource manager wizard correctly look at the remote system when validating the path to my proxy. I have a class PEResourceManagerConfigurationWizardPage that is subclassed from AbstractRemoteResourceManagerConfigurationWizardPage. When that page of the wizard dialog is displayed and I fill in a proxy path, it expects
that path to exist on the local system, not the remote system.

If I run the wizard, I can click the browse button for the proxy server executable and navigate to find the pathname of the proxy on the remote system. When I click OK, the pathname appears in the path to proxy server
executable text field, but is flagged in error since no file by that
pathname exists on the local server. I don't have any pathname validation logic in my PEResourceManagerConfigurationWizardPage, so I suspect this
error is coming from validation code in the superclass.

Ugh, yes I see the problem. I'll fix this asap.


I'm also trying to use the browseRemoteFile method in IRemoteFileManager, just to be able to get the remote file dialog to appear (I realize this will need to change, but I'm just trying to get this part working now). I think that I need to create an instance of RSEFileManager in order to call
browseRemoteFile. So I added org.eclipse.ptp.remote.rse to the list of
dependencies in the build.xml file for the package containing my parallel
tab class. I then tried importing
org.eclipse.ptp.remote.rse.RSEFileManager and I get an error message that
this is invalid due to access restrictions for package
org.eclipse.ptp.remote.rse

You should never need to create instances of the file manager implementation directly. Always use the IRemote* interfaces. Assuming you've subclassed AbstractRemoteResourceManagerConfiguration, use the getRemoteServicesId() method on your configuration to get the name of the remote service provider that has been selected. Then use PTPRemotePlugin.getRemoteServices() to get the IRemoteServices object. You then get the file manager by calling IRemoteServices.getFileManager().

I've committed some changes to the way this works, as well as added support for direct file manipulation. I'm just documenting it now.

Greg




Back to the top