|
@@ -69,13 +69,13 @@ public class PluginPanel extends AddonPanel implements ActionListener {
|
69
|
69
|
/** {@inheritDoc} */
|
70
|
70
|
@Override
|
71
|
71
|
protected JTable populateList(final JTable table) {
|
72
|
|
- final List<PluginInfo> list = new ArrayList<PluginInfo>();
|
73
|
|
- final List<PluginInfo> sortedList = new ArrayList<PluginInfo>();
|
|
72
|
+ final List<PluginInfo> list = new ArrayList<>();
|
|
73
|
+ final List<PluginInfo> sortedList = new ArrayList<>();
|
74
|
74
|
list.addAll(controller.getPluginManager().getPluginInfos());
|
75
|
75
|
Collections.sort(list);
|
76
|
76
|
for (final PluginInfo plugin : list) {
|
77
|
|
- if (plugin.getMetaData().getParents().length == 0) {
|
78
|
|
- final List<PluginInfo> childList = new ArrayList<PluginInfo>();
|
|
77
|
+ if (plugin.getMetaData().getParent() == null) {
|
|
78
|
+ final List<PluginInfo> childList = new ArrayList<>();
|
79
|
79
|
sortedList.add(plugin);
|
80
|
80
|
for (final PluginInfo child : plugin.getChildren()) {
|
81
|
81
|
if (!childList.contains(child)) {
|