[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [Subclipse-users] UI: Show "Unlock" only when file is locked

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-06-30 16:41:15 CEST

Daniel Serodio <daniel.listas@xxx.com.br> wrote on 06/30/2006 10:32:48 AM:

> The "Unlock" command should only be shown when the file is locked. Does
> the API allow this?

Technically you could apply this same logic to almost all of our options.
For example, Commit and Revert are enabled on files that are not modified.
 Mark Resolved on files that are not in conflict, etc... With some
changes, I think these options could be conditioned. I cannot decide if
it is worth it. The Eclipse UI guidelines ask you to only conditions
options when the condition can be performed "cheaply". None of our
options behave incorrectly if they are taken at times when they are not
needed.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Fri Jun 30 16:41:28 2006

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.