Reputation: 1
i.e close button should be disabled/ removed how can i achieve this? public class ReferencesView extends ViewPart implements ISearchResultViewPart, IPersistable {...}
i tried this but it did't help
@Override
public void init(IViewSite site) throws PartInitException {
super.init(site);
site.getActionBars().getToolBarManager().remove("org.eclipse.ui.file.close");
}
Upvotes: 0
Views: 47
Reputation: 45
I guess you are using Eclipse legacy. Perhaps you can take a look at addStandaloneView() method in IPageLayout : view’s title can be hidden and no more close button. Can be used in Perspective createInitialLayout() method.
Upvotes: 0