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 35155 - View Actions to always be present
Summary: View Actions to always be present
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2003-07-26 02:51 UTC by ivan
Modified: 2010-04-29 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ivan 2003-07-26 02:51:44 UTC
This may be a TTV issue but hard for me to tell.
In a given debugger view the context menu has Some
actions that pertain to the selected node and some
that pertain to the whole view. 

However the ones that pertain to the whole view
(for example Delete all in the breakpoints view) 
only appear in the menu if you click on an empty
area of the view. So if the view is _full_ and
there is no empty space there is no way to bring
up the view actions. 

In fact I think right now this is only visible in
the bpt view because the others don't have
view-specific actions, but I"m planning on adding
them.
Comment 1 Jan Jancura 2003-07-28 09:29:41 UTC
OK. The question for UI - how it should looks like?
For Ivan: You will not able to add "view" actions. They are taken from
Root Node defined by debuggercore, as I remember.
Comment 2 ivan 2003-07-28 20:51:27 UTC
Suggestion for UI: 
Can one use a double-wide menu item separator?
We could add code to render something special (but no-one
will recognize it for what it it?) Or we do a poormans version
and just put out two regular separators (but it will
look like a bug?).

Currently if you pop up the action menu on a clear area you get
some of the node specific actions at the bottom and greyed out.
Some choices:
- should the layout of menu be different when you click on a node
  vs clicking on a clear area?
- should the view specific items be bunched at the top or at the
  bottom?
Comment 3 jrojcek 2003-07-29 09:34:42 UTC
I don't think we need to do anything special here. I think it is
sufficient to assure that all view actions are visible also on a
particular item.

Now, we have these view actions:

  New Breakpoint...
  Create Group...
  -------------------
  Enable All
  Disable All
  Delete All
  -------------------
  Paste
  -------------------
  List Options      >
  -------------------
  Properties

And the following breakpoint item menu (depending on a breakpoint type):

  Go to Source
  -------------------
  Cut
  -------------------
  Delete
  -------------------
  List Options      >
  -------------------
  Properties

And the following breakpoint group menu:

  New Breakpoint...
  Create Group...
  -------------------
  Enable All
  Disable All
  -------------------
  Paste
  -------------------
  Delete
  -------------------
  List Options      >
  -------------------
  Properties
  
The goal is to make the global view actions available on each view
item. In the line breakpoint it might look like this:

  Go to Source
  ------------------------
  New Breakpoint...
  New Breakpoint Group...   - renamed from "Create Group"
  ------------------------
  Enable All
  Disable All
  Delete All
  ------------------------
  Cut
  Paste
  ------------------------
  Delete
  ------------------------
  List Options           >
  ------------------------
  Properties

In the breakpoint group:

  New Breakpoint...
  New Breakpoint Group...   - renamed from "Create Group"
  ------------------------
  Enable All
  Disable All
  Delete All
  ------------------------
  Paste
  ------------------------
  Delete
  ------------------------
  List Options           >
  ------------------------
  Properties

Of course, the semantics of global actions changes on a breakpoint
group node.
Comment 4 ivan 2003-07-29 20:27:12 UTC
Gack ...
1) In my debugger there's no notion of breakpoint groups.
   How can I disable that?
2) The menu is getting rather big especially since 
   I'd like to add a few more per-node actions.

I'm used to "view" actions hanging off a toolbar menu strongly
associated with the view or the window containing the view.
So I"m sort of at a loss how to proceed here.
Comment 5 jrojcek 2003-07-30 14:16:11 UTC
If you don't have a project groups then your "view" menu looks like
this, I hope:

  New Breakpoint...
  -------------------
  Enable All
  Disable All
  Delete All
  -------------------
  List Options      >
  -------------------
  Properties

I removed "Paste" and "Create Group" menu items (which do not make
sense without the project groups). Btw, "Properties" shouldn't be
there either.

Now, I don't think that the menu length should be a problem.

I am also not sure what kind of toolbar menu you are used to.
Something like a drop down menu placed in the view's toolbar? This is
also an option, but I would try to go with context menu solution, as
right now we don't have any view toolbars in the views (From the
property sheet has been removed recently). Introducing a view's
menus/toolbars should be well though out.
Comment 6 jrojcek 2003-07-30 16:50:02 UTC
I meant to say "breakpoint groups" instead of project groups in the
last comment.
Comment 7 David-john Burrowes 2003-08-01 01:31:36 UTC
I agree with Jano's analysis.

I think all that I'd add is that it would be good to spend some time
at some point of establishing a standard pattern for these items.  I
note that one of the examples below we get:

node
---
view
view
---
view 
view
view
---
view
---
node
---
view
---
node

and I think it would be good if we could get a logical pattern which
didn't result in view and node items being so intermixed.  It may not
be possible (I'm not putting a lot of thought into this issue at the
moment), but it should be thought about.

(and, to repeat one of Ivan's concerns in another form, the
breakpoints menu has 11 items, below.  I'm not too bothered by 11, but
if we ended up with, say, 20 I'd probably begin to think it was too
long. Might be good to think about guidelines for what is a bit too
long.  (are enable and disable all common actions?))
Comment 8 Jan Jancura 2003-08-01 09:29:01 UTC
So, its not a bug, but a task for UI team to produce some UI spec
after all!
Comment 9 ivan 2003-08-01 23:54:22 UTC
Inasmuch as the view actions can become inaccessible if there
is no white space in a TTV this _is_ a bug. Consider that
you have a bpt view with too many breakpoints and you want 
to get rid of them, but you have no way to get to the DeleteAll
action. (I know you can work around this but ...)

Once you fix it _then_ it becomes a UI issue.
Are the UI issues _that_ bad that we shy from fixing the bug?
Comment 10 Maros Sandor 2003-08-22 15:47:36 UTC
The breakpoints view popup menu for a breakpoint now 
contains all actions ( breakpoint-specific and view-
specific).
Comment 11 Quality Engineering 2010-04-29 09:14:17 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.