This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 14890 - CVS:->enable/disable menuitems according to state of selected item
Summary: CVS:->enable/disable menuitems according to state of selected item
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: CVS (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@versioncontrol
URL:
Keywords: UI
: 14889 29225 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-08-29 10:16 UTC by dmladek
Modified: 2007-01-04 17:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dmladek 2001-08-29 10:16:48 UTC
Note: This issue was created as copy of bug #10749 filed on vcscvs module.
=====

It is good to enable/disable menuitems to indicate to users the state of the
selected item.  For example, if the user has already Edited the currently
selected item it would be good to disable the "Edit" menuitem. Likewise, don't
enable "Commit" on an item that I have not yet "Edit"ed.
You can probably find other menuitems which can also be disabled when they do
not apply.  Managing the menuitem state helps the user by: 1. giving them an
indication of the state of the selected item, and 2. it narrows the list of
actions they can perform on the selected item and that shorter list makes it
easier for them to find the action they want to run.
By the same reasoning, if a menuitem can NEVER apply for the selected item's
type, then that menuitem should be removed completely from the list for that
item type, rather than just being dimmed.
------- Additional Comments From Jiri Kovalsky 2001-03-27 23:22 PST -------
Only for your information:
Support for this behaviour has already been implemented in both vcscvs and
vcsgeneric modules. Please note that if the file is e.g. [Up-to-date] it can't
be added once more to the repository and therefore "CVS | Add" action is
disabled in its popup menu.
Furthermore this is customizable by user in Generic VCS module through "Disabled
on statuses" property of each command. If you set it to "Local" for Commit
command you won't be allowed to run Commit on [Local] file.
Is this what you meant ?
OTOH it concerns only status and not the real state of the file i.e. it won't
work for Edit command since it doesn't change the status. :-(
Comment 1 dmladek 2001-08-29 10:19:15 UTC
*** Issue 14889 has been marked as a duplicate of this issue. ***
Comment 2 Jan Chalupa 2001-11-27 17:34:21 UTC
Target milestone -> 3.3.1.
Comment 3 Filip Rachunek 2002-04-30 15:46:09 UTC
UI keyword added.
Comment 4 Marek Grummich 2002-07-22 11:58:36 UTC
Set target milestone to TBD
Comment 5 Martin Entlicher 2003-07-21 17:46:53 UTC
A further demand was requested in issue #29225 - to disable all menu
items but Init when the CVS repository was not yet initialized. Since
this might have a bad effect on performance, this will likely not be
implemented. However the logic of disabling/enabling should be
elaborated for more commands.
Comment 6 Martin Entlicher 2003-07-21 17:47:36 UTC
*** Issue 29225 has been marked as a duplicate of this issue. ***
Comment 7 Maros Sandor 2005-05-03 14:48:35 UTC
Moving to CVSlite.
Comment 8 Maros Sandor 2005-05-03 14:49:14 UTC
All menu items should be enabled/disbaled present/removed as expected.