mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-20 22:55:51 +02:00
[210389] Display error dialog when setting file not read-only fails when saving
This commit is contained in:
parent
083f73ebaf
commit
8f8e0ed7c3
1 changed files with 7 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
||||||
* David McKnight (IBM) - [195285] mount path mapper changes
|
* David McKnight (IBM) - [195285] mount path mapper changes
|
||||||
* Kevin Doyle (IBM) - [197976] Synch up Read-Only attribute when performing save based on local copy
|
* Kevin Doyle (IBM) - [197976] Synch up Read-Only attribute when performing save based on local copy
|
||||||
* Kevin Doyle (IBM) - [204810] Saving file in Eclipse does not update remote file
|
* Kevin Doyle (IBM) - [204810] Saving file in Eclipse does not update remote file
|
||||||
|
* Kevin Doyle (IBM) - [210389] Display error dialog when setting file not read-only fails when saving
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.files.ui.resources;
|
package org.eclipse.rse.files.ui.resources;
|
||||||
|
@ -36,6 +37,7 @@ import org.eclipse.rse.core.model.ISystemRegistry;
|
||||||
import org.eclipse.rse.core.subsystems.ISubSystem;
|
import org.eclipse.rse.core.subsystems.ISubSystem;
|
||||||
import org.eclipse.rse.internal.files.ui.actions.SystemUploadConflictAction;
|
import org.eclipse.rse.internal.files.ui.actions.SystemUploadConflictAction;
|
||||||
import org.eclipse.rse.internal.files.ui.resources.SystemRemoteEditManager;
|
import org.eclipse.rse.internal.files.ui.resources.SystemRemoteEditManager;
|
||||||
|
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||||
import org.eclipse.rse.services.files.RemoteFileIOException;
|
import org.eclipse.rse.services.files.RemoteFileIOException;
|
||||||
import org.eclipse.rse.services.files.RemoteFileSecurityException;
|
import org.eclipse.rse.services.files.RemoteFileSecurityException;
|
||||||
import org.eclipse.rse.subsystems.files.core.SystemIFileProperties;
|
import org.eclipse.rse.subsystems.files.core.SystemIFileProperties;
|
||||||
|
@ -231,6 +233,10 @@ public class SystemUniversalTempFileListener extends SystemTempFileListener
|
||||||
upload(fs, remoteFile, tempFile, properties, storedModifiedStamp, editable, monitor);
|
upload(fs, remoteFile, tempFile, properties, storedModifiedStamp, editable, monitor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (SystemMessageException e) {
|
||||||
|
DisplaySystemMessageAction msgAction = new DisplaySystemMessageAction(e.getSystemMessage());
|
||||||
|
Display.getDefault().syncExec(msgAction);
|
||||||
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
SystemBasePlugin.logError(e.getMessage());
|
SystemBasePlugin.logError(e.getMessage());
|
||||||
|
|
Loading…
Add table
Reference in a new issue