Opening a SystemEditableRemoteFile ignores the readonly flag in case of OLE/Word
Bugzilla Link | 416031 |
Status | NEW |
Importance | P3 normal |
Reported | Aug 28, 2013 07:40 EDT |
Modified | Aug 28, 2013 07:59 EDT |
Version | 3.4.1 |
Reporter | Wim Jongman |
Description
I am calling the following code:
SystemEditableRemoteFile remoteFile = new SystemEditableRemoteFile(ifsFile);
remoteFile.open(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), true); // readonly = true
In this particular case the file is opened in MS Word. Even if the readonly flag is set correctly, word just ignores it and saves the file anyway.
I assume that Word does some magic that allows it do just ignore the readonly attributes so there is not much that we can do here.
However, if I type some code in the editor, it becomes dirty and the save and saveall handlers become active. This is eclipse. Is it possible to do some extra stuff when the file is set to readonly. For example disable the dirty markers or not call the upload routine or remove the file from the local filesystem if it has been changed despite the readonly flag.
I am using Rational RDi to edit a file on the IFS.
see also bug 310215