How to remove a perspective from perspective toolbar(placed in the top right corner) programmatically

岁酱吖の 提交于 2019-12-12 03:35:38

问题


If i select a perspective(eg. Java EE perspective) from "open perspective" combo the perspective will be opened and it will be added near to the "open perspective" icon placed in the toolbar.Upon changing multiple perspectives the respective perspectives will be added in toolbar for shortcut purpose.

I have an rcp application in which we can install selective/all plugins from the available list of plugins.First i am installing all the plugins, opening the rcp application(windows msi) and switching to "Sample" perspective.Now the sample perspective shortcut will be added to toolbar.Now i am closing the rcp application and chaging the installation by removing Sample plugin(Which Contains Sample Perspective). If i run the rcp application and click Sample perspective in the toolbar it throws null pointer exception

Note: The "Sample" perspective is removed inside the "Open perspective" combo list.

来源:https://stackoverflow.com/questions/42874157/how-to-remove-a-perspective-from-perspective-toolbarplaced-in-the-top-right-cor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!