BO.J
BO.J

Reputation: 1

How to get a debug view in eclipse?

If I want to get a view by entering the ID using this code,so from where I can get the MyView.ID?

IViewPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
        .findView(MyView.ID);
    if (part instanceof MyView) {
        MyView view = (MyView) part;

Upvotes: 0

Views: 231

Answers (1)

greg-449
greg-449

Reputation: 111142

You can either find the plugin that contributes the view and look in its 'plugin.xml' to find the org.eclipse.ui.views extension point that defines the view.

Or you can use the Eclipse plugin spy tool to identify the view.

Debug has many views so I'm not sure which one you are asking about. The one labelled 'Debug' has id org.eclipse.debug.ui.DebugView

Upvotes: 1

Related Questions