Community
Participate
Working Groups
It would be very helpful to display a small lock icon next to read-only files shown in the package explorer (as well as next to the filename in the editor tab). This is very useful when used in conjunction with a version control system since it provides an visual cue as to which files are checked-in (flagged as read-only) and checked out (writable). In addition, the lock icon should automatically refresh so that if a file is checked out using an external version control client, it should recognize this change and remove the lock icon for that file. This is one simple feature from IntelliJ IDEA that I really miss. Another useful feature that is somewhat related would be to allow the user to simply double-click the "Read-Only" or "Writable" text in the status bar in order to toggle a file's read/write status (rather than having to go into the file's properties to do this).
This should be implemented by a label decorator to make sure we see the information in all views (resource navigator, ...) . May be it can be incoopertated into the CVS label decorator. Moving to Platform/UI.
ccing Tod. Do we have label decorators on resources that could be augmented with this support? I don't think CVS cares whether a file is readonly or not so not sure I agree with Dirk on that one.
We don't supply any decorators right now so someone would have to write a new one or add to an existing one.
Created attachment 46675 [details] patch_readonly_decorator.diff Added new decorator to org.eclipse.ui.ide
Created attachment 46676 [details] org.eclipse.ui.ide/icons/full/ovr16/readonly_ovr.gif Please forgive me, it's only to show the functionality. I think there are more talented people than me out there to create such an overlay-icon :-)
Created attachment 46758 [details] patch_readonly_decorator_no_npe.diff Under some circumstances, you got an NPE because getResourceAttributes can also return null. Added null-check
Note that second feature from comment 0 is covered by bug 66970.
Just want to note that there is something ;)
We won't be including this in the SDK but feel free to contribute a plug-in for it via the community.