Summary: | [IDE] Add lock icon to read-only files in package explorer | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Dustin Callaway <dustin> | ||||||||
Component: | IDE | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> | ||||||||
Status: | RESOLVED WONTFIX | QA Contact: | |||||||||
Severity: | enhancement | ||||||||||
Priority: | P3 | CC: | b.muskalla, daniel_megert, Tod_Creasey | ||||||||
Version: | 3.1 | ||||||||||
Target Milestone: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | All | ||||||||||
Whiteboard: | haspatch | ||||||||||
Attachments: |
|
Description
Dustin Callaway
2004-10-28 12:23:00 EDT
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
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. |