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 116576 - Redefine operations menu item should be disabled if there is nothing to be redefined
Summary: Redefine operations menu item should be disabled if there is nothing to be re...
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-24 21:06 UTC by Joanne Lau
Modified: 2007-09-24 21:43 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
screenshot attached (13.71 KB, application/octet-stream)
2007-09-24 21:06 UTC, Joanne Lau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2007-09-24 21:06:01 UTC
NB: 200709232115

Steps to reproduce:
1) Create a UML Java Platform model project, create a class diagram
2) Create 2 class elements (Class1, Class2) 
3) Add 2 operations (op1, op2) to Class1
4) Connect a generalization link from Class2 to Class1
5) Redefine dialog appears, select checkbox for Class1
6) From the editor, right click Class2 -> Redefine Operations
   Redefine dialog came up but is empty  (see attached screenshot)
   
7) From the Projects window, right click Class1 -> Redefine Operations
   There is nothing come up, no dialog.  This also causes confusion to the user.
  
   Observing a couple problems here and request for enhancement to improve usability:
    1) From the editor, Redefine Operation menu item should be grayed out/or disabled if there is nothing to 
       be redefined
    2) From the Projects window, if no more option can be selected for the class element, request to gray out/or
       disable the menu item instead of showing an empty dialog
Comment 1 Joanne Lau 2007-09-24 21:06:22 UTC
Created attachment 49384 [details]
screenshot attached
Comment 2 Joanne Lau 2007-09-24 21:25:05 UTC
Clarification on the request:

 1) From the editor, Redefine Operation menu item should be grayed out/or disabled if there is nothing to 
    be redefined instead of showing an empty dialog
 2) From the Projects window, if no more option can be selected for the class element, request to gray out/or
    disable the menu item instead of nothing coming up
Comment 3 Peter Lam 2007-09-24 21:43:17 UTC
in addition to the last #2 comment, the menu item should also be disabled or grayed out from the diagram editor for the
selected class.