Search in sources :

Example 1 with DeploymentStatusComparator

use of org.netxms.ui.eclipse.agentmanager.views.helpers.DeploymentStatusComparator in project netxms by netxms.

the class PackageDeploymentMonitor method createPartControl.

/* (non-Javadoc)
	 * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
	 */
@Override
public void createPartControl(Composite parent) {
    final String[] names = { Messages.get().PackageDeploymentMonitor_ColumnNode, Messages.get().PackageDeploymentMonitor_ColumnStatus, Messages.get().PackageDeploymentMonitor_ColumnMessage };
    final int[] widths = { 200, 110, 400 };
    viewer = new SortableTableViewer(parent, names, widths, COLUMN_NODE, SWT.DOWN, SWT.FULL_SELECTION | SWT.MULTI);
    viewer.setContentProvider(new ArrayContentProvider());
    viewer.setLabelProvider(new DeploymentStatusLabelProvider());
    viewer.setComparator(new DeploymentStatusComparator());
    createActions();
    contributeToActionBars();
}
Also used : DeploymentStatusComparator(org.netxms.ui.eclipse.agentmanager.views.helpers.DeploymentStatusComparator) ArrayContentProvider(org.eclipse.jface.viewers.ArrayContentProvider) SortableTableViewer(org.netxms.ui.eclipse.widgets.SortableTableViewer) DeploymentStatusLabelProvider(org.netxms.ui.eclipse.agentmanager.views.helpers.DeploymentStatusLabelProvider)

Aggregations

ArrayContentProvider (org.eclipse.jface.viewers.ArrayContentProvider)1 DeploymentStatusComparator (org.netxms.ui.eclipse.agentmanager.views.helpers.DeploymentStatusComparator)1 DeploymentStatusLabelProvider (org.netxms.ui.eclipse.agentmanager.views.helpers.DeploymentStatusLabelProvider)1 SortableTableViewer (org.netxms.ui.eclipse.widgets.SortableTableViewer)1