Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] Detecting variable closing


Hi,

You should be able to get the tree with something like:

                IWorkbenchPage page = ...;
                IViewPart view = page.findView(IDebugUIConstants.ID_VARIABLE_VIEW);
                if (view instanceof IDebugView) {
                        IDebugView debugView = (IDebugView) view;
                        Viewer viewer = debugView.getViewer();
                        Control control = viewer.getControl();
                        if (control instanceof Tree) {
                                Tree Tree = (Tree) control;
                                ...
                        }
                }

Darin Wright



Vladimir Prus <vladimir@xxxxxxxxxxxxxxxx>
Sent by: platform-debug-dev-bounces@xxxxxxxxxxx

11/24/2006 12:53 PM

Please respond to
"Eclipse Platform Debug component developers list."        <platform-debug-dev@xxxxxxxxxxx>

To
"Eclipse Platform Debug component developers list." <platform-debug-dev@xxxxxxxxxxx>
cc
Subject
Re: [platform-debug-dev] Detecting variable closing





On Friday 24 November 2006 02:05, Darin Wright wrote:
> Currently the debug platform does not explicitly notify clients when items
> are collapsed or expanded in trees. Please enter a feature request so we
> can consider this with the flexible hierarhcy/asynch viewer support (see
> bug 153500). It might be something that could reside on an "element
> content provider" - i.e. notification that an element has been collapsed.

Hi Darin,

I've looked further and I think I can get away with setting TreeListener on
the underlying tree. However, to do that, I need to make CDT use it's own
variable view class, derived from VariablesView, instead of VariablesView
itself.

Is there an easy way to do so? While I know I can add new view, here I'd
rather want to completely override VariablesView so that it's not even
accessible for C++ perspectives.

- Volodya
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev


Back to the top