Adapt PluginListPage to changes in PDE#1968
Adapt PluginListPage to changes in PDE#1968ptziegler wants to merge 1 commit intoeclipse-m2e:mainfrom
Conversation
The list of Plug-ins is now realized via a TableViewer, rather than a TreeViewer.
|
Would be nicer if M2E would not use internal API to avoid such situations |
Well this is the m2e PDE integration and of course it would be nice if PDE would have such things properly exposed in a way it can be safely reused instead of reimplemented... I just doubt anyone would like to take the effort for this. @ptziegler we can't use "new" (internal) API unless a new release is performed. One option would be to use |
| public class PluginListPage extends BasePluginListPage { | ||
|
|
||
| class PluginContentProvider implements ITreeContentProvider { | ||
| class PluginContentProvider implements IStructuredContentProvider { |
There was a problem hiding this comment.
| class PluginContentProvider implements IStructuredContentProvider { | |
| class PluginContentProvider implements IStructuredContentProvider, ITreeContentProvider { |
That won't be sufficient. If m2e won't use the nightly build of the PDE plugin then I can't explicitly reference the Unless I fall back to reflection, of course. But that doesn't just sound incredibly nasty, but will also look incredibly nasty. |
Unless of course the |
|
But that class extends |
|
Even if I were to override this method now, it would still cause bugs with older versions of PDE, as those methods don't behave the same way once a filter is applied. |
|
Maybe m2e can simply register a CheckListener then?! In any case if it does not work and there is a M1 repo we can probably use that, and then m2e requires latest Eclipse release that's always been the case in the past, its just a bit unfortunate that it is the latest unreleased as usually we are only require RELEASE - 1 until there is RELEASE. |
Hm... I wonder about that. From what I can tell, the main difference between this Perhaps it would be more efficient to subclass the PluginListPage directly, disable the launch configuration and then there wouldn't be any need to handle the viewers at all. |
|
We can adapt to whatever seems sufficient here. |
|
Someone else is free to continue if the changes to the CheckboxTablePart are merged to PDE. But at least from my perception, this becomes more trouble than it's worth. |
The list of Plug-ins is now realized via a TableViewer, rather than a TreeViewer.