I have an Eclipse plugin with a view (ViewPart) which can be opened as usual with Window->Show View... etc
In my activator class how can I find out if it's open and access the instance of it?
Activators are for the lifecycle management of the plugin. The activators are mainly used during the startup and shutdown of the plugin. If its going through the activator, the view is not created already. Can you give some more info on what you are trying to do?
Did you try PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().findView(View.ID);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With