I have an idea that I constantly put on my perspective. This view cannot be closed and cannot be opened from Windows → show views
I struct to remove View from Windows -> view list.
How can i achieve this?
I tried your solution, it does everything, but it also removes the view from the perspective. Below are the steps that I followed.
I added the following view in plugin.XML
<view allowMultiple="false" category="org.view.ui.IDECategory" class="org.view.ui.BannerInformationView" id="org.view.ui.BannerInformationView" name="BannerInfo" restorable="true"> </view>
After that I added this view to my Perspective
public void defineLayout( IPageLayout layout ) { layout.setEditorAreaVisible( true ); layout.addStandaloneView( BANNER_INFO_VIEW_ID, false, IPageLayout.TOP, 0.03f, layout.getEditorArea() ); IViewLayout viewLayout = layout.getViewLayout( BANNER_INFO_VIEW_ID ); viewLayout.setMoveable( false ); }
Now I have added activity to hide my view name from the view menu.
<extension point="org.eclipse.ui.activities"> <activity id="activity.ide" name="ide"> </activity> <activityPatternBinding activityId="activity.ide" isEqualityPattern="true" pattern="org.view.ui.IDECategory.pluginid/org.view.ui.BannerInformationView"> </activityPatternBinding> </extension>
Now my problem is that by hiding the view record from the window → show view, it also hides the view from my point of view.
I want to hide the only entry from the show view so that the user can not do anything about it, but it should always be visible in my perspective.
source share