It's all about the answers!

Ask a question

Inconsistant displaying of lock dialog in Eclipse


Shelby Phillips (29614621) | asked Oct 23 '09, 2:56 p.m.
edited Oct 10 '17, 1:35 p.m. by David Lafreniere (4.4k7)

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


permanent link
Geoffrey Clemm (29.4k23035) | answered Oct 31 '09, 12:14 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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:
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?
David Lafreniere selected this answer as the correct answer

2 other answers



permanent link
Aaron Cohen (8207751) | answered Oct 25 '09, 9:23 p.m.
JAZZ DEVELOPER
edited Oct 10 '17, 1:33 p.m. by David Lafreniere (4.4k7)

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
Shelby Phillips commented Oct 26 '09, 9:50 a.m. | edited Oct 10 '17, 1:36 p.m.

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.


permanent link
Andrew Hoo (1.0k1) | answered Oct 29 '09, 9:49 a.m.
JAZZ DEVELOPER
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:

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?

Your answer


Register or to post your answer.