Inconsistant displaying of lock dialog in Eclipse
When I load a repository workspace as an eclipse project, I do not see either the locked icons or the text "Locked by <user>" in the Eclipse "Resource" workspace.
Once I attempt a lock on an already locked file, then the dialog appears for the artifacts. Is there a way to display locks I am not aware of?
Accepted answer
This problem is closely related to work item 77416 ("Prevent editing a
file when it is locked by another user"). Without that work item being
implemented, loading the "locked" status of a file after it has been
edited is too late ... they've already edited the file. What we tell
users currently is to look for the "locked" icon on a file before
editing it. But if that icon isn't there until after they've edited it,
even that manual approach doesn't work.
On the other hand, if work item 77416 were implemented, then the lazy
query for locks is no longer a problem, because the user will be warned
when they actually try to modify a locked file.
Cheers,
Geoff
Andrew Hoo wrote:
file when it is locked by another user"). Without that work item being
implemented, loading the "locked" status of a file after it has been
edited is too late ... they've already edited the file. What we tell
users currently is to look for the "locked" icon on a file before
editing it. But if that icon isn't there until after they've edited it,
even that manual approach doesn't work.
On the other hand, if work item 77416 were implemented, then the lazy
query for locks is no longer a problem, because the user will be warned
when they actually try to modify a locked file.
Cheers,
Geoff
Andrew Hoo wrote:
There is a Search>Jazz Source Control>Locks... that will find all locks.
The locked state of the file is all server side information, so we cache
and update decorators instead of greedily trying to figure out what is
locked and not. These icons will be updated as those files are edited
and becoming incoming our outgoing changes (but that's why you don't see
any decorators on a freshly loaded workspace).
On Fri, 23 Oct 2009 15:07:58 -0400, shelbyph
shelby.a.phillips@accenture-dot-com.no-spam.invalid> wrote:
When I load a repository workspace as an eclipse project, I do not see
either the locked icons or the text "Locked by <user>"
in the Eclipse "Resource" workspace.
Once I attempt a lock on an already locked file, then the dialog
appears for the artifacts. Is there a way to display locks I am not
aware of?
2 other answers
I am a bit confused by your use of the word "Workspace." Are you referring to the Eclipse resource perspective and a specific view within that perspective?
--
Aaron
Comments
I am a bit confused by your use of the word "Workspace." Are you referring to the Eclipse resource perspective and a specific view within that perspective?
--
Aaron
Yes, this is the "Resource" perspective. I have loaded my workspace as an Eclipse project, and am interacting with it via this perspective.
There is a Search>Jazz Source Control>Locks... that will find all locks.
The locked state of the file is all server side information, so we cache
and update decorators instead of greedily trying to figure out what is
locked and not. These icons will be updated as those files are edited and
becoming incoming our outgoing changes (but that's why you don't see any
decorators on a freshly loaded workspace).
On Fri, 23 Oct 2009 15:07:58 -0400, shelbyph
<shelby> wrote:
The locked state of the file is all server side information, so we cache
and update decorators instead of greedily trying to figure out what is
locked and not. These icons will be updated as those files are edited and
becoming incoming our outgoing changes (but that's why you don't see any
decorators on a freshly loaded workspace).
On Fri, 23 Oct 2009 15:07:58 -0400, shelbyph
<shelby> wrote:
When I load a repository workspace as an eclipse project, I do not see
either the locked icons or the text "Locked by <user>"
in the Eclipse "Resource" workspace.
Once I attempt a lock on an already locked file, then the dialog
appears for the artifacts. Is there a way to display locks I am not
aware of?