if a file is already marked read-only, the context menu item for doing so should not be enabled. Vice-versa for a writable file. In fact, t he two menu items are mutually exclusive.
Note: this could get tricker if multiple-selection support is added.