Bug 3311 - Variable Watch window enhancements
Summary: Variable Watch window enhancements
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Mike Cvet
URL:
Keywords:
Depends on:
Blocks: 1633 3663
  Show dependency treegraph
 
Reported: 2006-10-05 21:25 UTC by Rick Moseley
Modified: 2006-12-05 20:57 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Moseley 2006-10-05 21:25:20 UTC
1) You should be able to right-click on a variable in the window and remove it
from the list

2) We need a method to call from SourceView.getVariable that allows us to keep
from adding a variable to the Variable Watch window multiple times.
Comment 1 Rick Moseley 2006-10-05 21:33:19 UTC
Oooops, instead of SourceView.getVariable I meant that to be
SourceView.clickedOnTextArea.
Comment 2 Mike Cvet 2006-10-16 14:21:41 UTC
Log message:
        2006-10-10  Mike Cvet  <mcvet@redhat.com>
        
        * SourceBuffer.java: (getVariable): Cleaned up a bit.
        * SourceView.java: Added a new HashMap to uniquely identify
        Variables.
        (removeVar): Added. Removes variable from the HashMap and calls
        to remove the variable trace from the GUI.
        (clickedOnTextArea): Added new menu option for removing Variables.
        * SourceWindow.java: (SourceWindow): New VariableWatchView with
        this as a parameter.
        (removeVariableTrace): Added - removes the Variable trace from the
        VariableWatchView.
        (getView): Added.
        * VariableWatchView.java: (VariableWatchView): Sets incoming
        SourceWindow as parent, initializes new TreeStore and Listener.
        (removeTrace): Added. Removes the row from the TreeView.
        (selectionChangedEvent): Added catch for index exception.
        (clickedOnVariable): Added. Creates new menu when a row is clicked
        from the TreeView.
        (handleClick): Added. Tells the parent to remove the clicked Variable.
        (mouseEvent): Added. Determines whether the mouse event is worth
        pursuing.