Community
Participate
Working Groups
From https://git.eclipse.org/r/#/c/163438/1/bundles/org.eclipse.ui.workbench/Eclipse+UI/org/eclipse/ui/internal/PerspectiveBarContributionItem.java Quote: Isn't this contribution item obsolete, i.e. dead code? It seems that the current perspective switcher is implemented in org.eclipse.e4.ui.workbench.addons.perspectiveswitcher.PerspectiveSwitcher Is also true for the PerspectiveBarNewContributionItem class. Moreover, PerspectiveAction class and its children seem obsolete too. How about the other Perspective* classes?
Rolf, can you take this one as you discovered it?
On a closer look, ToggleEditorsVisibilityAction (extends PerspectiveAction) is registered as global action with the id 'org.eclipse.ui.window.hideShowEditors'. This action is not used in Platform, should I consider this API? i.e. is it allowed to remove that class?
(In reply to Rolf Theunissen from comment #3) > On a closer look, ToggleEditorsVisibilityAction (extends PerspectiveAction) > is registered as global action with the id > 'org.eclipse.ui.window.hideShowEditors'. > > This action is not used in Platform, should I consider this API? i.e. is it > allowed to remove that class? As ToggleEditorsVisibilityAction is internal I would say it is not API. If API tooling does not give an error, I suggest to go ahead and remove it.
(In reply to Lars Vogel from comment #4) > (In reply to Rolf Theunissen from comment #3) > > On a closer look, ToggleEditorsVisibilityAction (extends PerspectiveAction) > > is registered as global action with the id > > 'org.eclipse.ui.window.hideShowEditors'. > > > > This action is not used in Platform, should I consider this API? i.e. is it > > allowed to remove that class? > > As ToggleEditorsVisibilityAction is internal I would say it is not API. If > API tooling does not give an error, I suggest to go ahead and remove it. That class is currently exported via the org.eclipse.ui.actions.ActionFactory.SHOW_EDITOR field. That is API. So the action cannot be removed without consequences. It can be replaced by a Handler, but that is out of scope of this bug.
You could asked the PMC to mark it for deletion if it is not used by platform...
New Gerrit change created: https://git.eclipse.org/r/164823
Gerrit change https://git.eclipse.org/r/164823 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=07a2949da2db7ad30729182a68cff70443ff3ecf
Thanks, Rolf.