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


Sorry, there is no way to replace the views that get created in the debug perspective - the views are intended to be shared between debuggers. As well, the class you want to subclass is going to change in 3.3, as it was internal provisional API in 3.2. I would suggest to create a feature request for the problem you are trying to solve.

See bug 153500 to keep up with the changes in the 'flexible hierarchy' support.

Darin Wright



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

11/25/2006 03:54 AM

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 22:03, Darin Wright wrote:
> 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;
>                                 ...
>                         }
>                 }

I should have being more clear about overriding VariablesView. I know how I
can get to the tree, and how I can install TreeListener on it. However, I
also need to map from tree item to the model item. There's
AsynchronousViewer.findNode that does exactly that. Except that this method
is protected. To call it, I must create a class derived from VariablesViewer,
say CVariablesViewer.  To make CDT use that new class, I must derive from
VariablesView -- say creating CVariablesView, and make CVariablesView create
CVariablesViewer, as opposed of VariablesViewer. But, then, I need some way
to make CDT use CVariablesViewer, instead of VariablesView, and prevent
VariablesView from ever being created in C++ perspectives.

Is it possible?

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


Back to the top