Search in sources :

Example 16 with ComponentExtension

use of org.talend.designer.components.exchange.model.ComponentExtension in project tdi-studio-se by Talend.

the class ImportCompatibleEcoComponentsComposite method addItemElements.

public void addItemElements(List<ComponentExtension> extensions) {
    if (extensions == null || extensions.isEmpty()) {
        return;
    }
    table.setRedraw(false);
    for (final ComponentExtension object : extensions) {
        final TableItem tableItem = new TableItem(table, SWT.NONE);
        tableItem.setData(object);
        tableItem.setText(0, object.getLabel());
        tableItem.setText(1, object.getAuthor());
        tableItem.setText(2, object.getVersionExtension());
        tableItem.setText(3, object.getDescription());
    }
    table.setRedraw(true);
}
Also used : TableItem(org.eclipse.swt.widgets.TableItem) ComponentExtension(org.talend.designer.components.exchange.model.ComponentExtension)

Aggregations

ComponentExtension (org.talend.designer.components.exchange.model.ComponentExtension)16 ArrayList (java.util.ArrayList)7 HashMap (java.util.HashMap)5 Element (org.w3c.dom.Element)4 JSONArray (us.monoid.json.JSONArray)4 JSONObject (us.monoid.json.JSONObject)4 List (java.util.List)3 Document (org.w3c.dom.Document)3 Date (java.util.Date)2 AvailableExtensionViewDetail (org.talend.designer.components.exchange.model.AvailableExtensionViewDetail)2 Text (org.w3c.dom.Text)2 Iterator (java.util.Iterator)1 Properties (java.util.Properties)1 ExecutorService (java.util.concurrent.ExecutorService)1 IJobChangeEvent (org.eclipse.core.runtime.jobs.IJobChangeEvent)1 Job (org.eclipse.core.runtime.jobs.Job)1 JobChangeAdapter (org.eclipse.core.runtime.jobs.JobChangeAdapter)1 IPreferenceStore (org.eclipse.jface.preference.IPreferenceStore)1 TableItem (org.eclipse.swt.widgets.TableItem)1 IntroContentProvider (org.eclipse.ui.internal.intro.impl.model.IntroContentProvider)1