Source:
<code>private void createConnectorsSection(Composite parent) { TableWrapLayout layout = new TableWrapLayout(); layout.makeColumnsEqualWidth = true; layout.leftMargin = 0; layout.rightMargin = 0; layout.topMargin = 0; layout.bottomMargin = 0; ScrolledForm composite = toolkit.createScrolledForm(parent); composite.getBody().setLayout(layout); TableWrapData data = new TableWrapData(TableWrapData.FILL); composite.setLayoutData(data); List<AbstractRepositoryConnector> connectors = new ArrayList<AbstractRepositoryConnector>( TasksUi.getRepositoryManager().getRepositoryConnectors()); Collections.sort(connectors, new Comparator<AbstractRepositoryConnector>() { public int compare(AbstractRepositoryConnector o1, AbstractRepositoryConnector o2) { return o1.getLabel().compareToIgnoreCase(o2.getLabel()); } }); for (AbstractRepositoryConnector connector : connectors) { if (TasksUi.getRepositoryManager().getRepositories(connector.getConnectorKind()).isEmpty()) { continue; } AbstractRepositoryConnectorUi connectorUi = TasksUi.getRepositoryConnectorUi(connector.getConnectorKind()); if (connectorUi != null) { List<LegendElement> elements = connectorUi.getLegendElements(); if (elements != null && elements.size() > 0) { legendElements.addAll(elements); addLegendElements(composite.getBody(), connector, elements); } else { <START> List<LegendElement> items = connectorUi.getLegendElements(); <END> if (items != null && !items.isEmpty()) { addLegacyLegendItems(composite, connector, items); } } } } layout.numColumns = Math.max(composite.getBody().getChildren().length, 1); Point w = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT); data.maxWidth = (w.x / layout.numColumns) * 3; }</code><technical_language>This add items twice, it? remove addLegacyLegendItems method deprecated 3.0</technical_language>

Target:
private void createConnectorsSection(Composite parent) { TableWrapLayout layout = new TableWrapLayout(); layout.makeColumnsEqualWidth = true; layout.leftMargin = 0; layout.rightMargin = 0; layout.topMargin = 0; layout.bottomMargin = 0; ScrolledForm composite = toolkit.createScrolledForm(parent); composite.getBody().setLayout(layout); TableWrapData data = new TableWrapData(TableWrapData.FILL); composite.setLayoutData(data); List<AbstractRepositoryConnector> connectors = new ArrayList<AbstractRepositoryConnector>( TasksUi.getRepositoryManager().getRepositoryConnectors()); Collections.sort(connectors, new Comparator<AbstractRepositoryConnector>() { public int compare(AbstractRepositoryConnector o1, AbstractRepositoryConnector o2) { return o1.getLabel().compareToIgnoreCase(o2.getLabel()); } }); for (AbstractRepositoryConnector connector : connectors) { if (TasksUi.getRepositoryManager().getRepositories(connector.getConnectorKind()).isEmpty()) { continue; } AbstractRepositoryConnectorUi connectorUi = TasksUi.getRepositoryConnectorUi(connector.getConnectorKind()); if (connectorUi != null) { List<LegendElement> elements = connectorUi.getLegendElements(); if (elements != null && elements.size() > 0) { legendElements.addAll(elements); addLegendElements(composite.getBody(), connector, elements); } } } layout.numColumns = Math.max(composite.getBody().getChildren().length, 1); Point w = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT); data.maxWidth = (w.x / layout.numColumns) * 3; }