Reputation: 1
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
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