java - How to remove bookmarkview under general category from eclipse? -
hi in perspective don't want user see default bookmark view showing custom view similar functionality. how can remove it?
i tried hide using activities adding activity in plugin.xml of plugin , disabling in activator did not help.
<activity id="com.fd.vplus.core.defbookmarkviewactivity" name="default bookmark view"> </activity> <activitypatternbinding activityid="com.fd.vplus.core.defbookmarkviewactivity" isequalitypattern="false" pattern="org.eclipse.ui/org.eclipse.ui.views.bookmarkview"> </activitypatternbinding>
i tried change id of view of default bookmark view override did not help.though approach time showed mine view instead of default not working.
edit (activity code in plugin activator):
iworkbenchactivitysupport workbenchactivitysupport = platformui.getworkbench().getactivitysupport(); //enabling activity iactivitymanager activitymanager = workbenchactivitysupport.getactivitymanager(); set<string> enabledactivities = new hashset<string>(); string id = "com.fd.vplus.core.defbookmarkviewactivity"; if (activitymanager.getactivity(id).isdefined()) { enabledactivities.add(id); } workbenchactivitysupport.setenabledactivityids(enabledactivities);
the owning plugin bookmark view org.eclipse.ui.ide
, should use equality pattern match:
<activitypatternbinding activityid="com.fd.vplus.core.defbookmarkviewactivity" isequalitypattern="true" pattern="org.eclipse.ui.ide/org.eclipse.ui.views.bookmarkview"> </activitypatternbinding>
Comments
Post a Comment