I have created a plugin view (source ) and am trying to update it from other plugin (target).
I have done following and still getting a NPE , please help:
Exported all the packages including the view class in (source) plugin
Included the package visibility to the (target) plugin
Added the (source) plugin as Required Plugin in dependencies tab
(Source Plugin)
<plugin>
<extension
point="org.eclipse.ui.views">
<view
class="com.he.reportLayer.views.BrowserView"
id="com.he.reportLayer.views.BrowserView"
name="Live Reporter!">
</view>
</extension>
</plugin>
(Target Plugin)
BrowserView view=null;
try {
view =(BrowserView)PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("com.he.reportLayer.views.BrowserView");
} catch (PartInitException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}