mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-18 06:25:23 +02:00
[362440] File opened using remote system connection (SSH - Sftp) at some point save action was not saving it to the file system.
This commit is contained in:
parent
eb6a0e2dc0
commit
badcba3afc
1 changed files with 5 additions and 3 deletions
|
@ -30,6 +30,7 @@
|
||||||
* David McKnight (IBM) - [225747] [dstore] Trying to connect to an "Offline" system throws an NPE
|
* David McKnight (IBM) - [225747] [dstore] Trying to connect to an "Offline" system throws an NPE
|
||||||
* David McKnight (IBM) - [272882] [api] Handle exceptions in IService.initService()
|
* David McKnight (IBM) - [272882] [api] Handle exceptions in IService.initService()
|
||||||
* David McKnight (IBM) - [368454] provide thread safety for cachedRemoteFiles hashmap
|
* David McKnight (IBM) - [368454] provide thread safety for cachedRemoteFiles hashmap
|
||||||
|
* David McKnight (IBM) - [362440] File opened using remote system connection (SSH - Sftp) at some point save action was not saving it to the file system.
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.subsystems.files.core.subsystems;
|
package org.eclipse.rse.subsystems.files.core.subsystems;
|
||||||
|
@ -149,6 +150,9 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
|
||||||
{
|
{
|
||||||
super(host, connectorService);
|
super(host, connectorService);
|
||||||
_searchHistory = new ArrayList();
|
_searchHistory = new ArrayList();
|
||||||
|
|
||||||
|
// load UI plugin for adapters so that temp file listener is ready for any edits before connect
|
||||||
|
Platform.getAdapterManager().loadAdapter(new RemoteFileEmpty(), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @return true if this subsystem's properties should take precedence
|
* @return true if this subsystem's properties should take precedence
|
||||||
|
@ -1270,8 +1274,6 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
|
||||||
public void initializeSubSystem(IProgressMonitor monitor) throws SystemMessageException
|
public void initializeSubSystem(IProgressMonitor monitor) throws SystemMessageException
|
||||||
{
|
{
|
||||||
super.initializeSubSystem(monitor);
|
super.initializeSubSystem(monitor);
|
||||||
// load UI plugin for adapters right after successful connect
|
|
||||||
Platform.getAdapterManager().loadAdapter(new RemoteFileEmpty(), "org.eclipse.rse.ui.view.ISystemViewElementAdapter"); //$NON-NLS-1$
|
|
||||||
getConnectorService().addCommunicationsListener(this);
|
getConnectorService().addCommunicationsListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1355,7 +1357,7 @@ public abstract class RemoteFileSubSystem extends SubSystem implements IRemoteFi
|
||||||
}
|
}
|
||||||
if (_cachedRemoteFiles.containsKey(path))
|
if (_cachedRemoteFiles.containsKey(path))
|
||||||
{
|
{
|
||||||
{return (IRemoteFile)_cachedRemoteFiles.get(path);}
|
{return (IRemoteFile)_cachedRemoteFiles.get(path);}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue