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 14889 - CVS:->enable/disable menuitems according to state of selected item
Summary: CVS:->enable/disable menuitems according to state of selected item
Status: CLOSED DUPLICATE of bug 14890
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcsgeneric (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P4 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-29 10:16 UTC by dmladek
Modified: 2001-08-29 10:19 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:03 UTC
Note: This issue was created as copy of bug #8525 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:16 UTC

*** This issue has been marked as a duplicate of 14890 ***