Search in sources :

Example 6 with DatabaseUIWrapper

use of com.cubrid.cubridquery.ui.spi.model.DatabaseUIWrapper in project cubrid-manager by CUBRID.

the class ImportExportConnectionDialog method setSelectAll.

@SuppressWarnings("unchecked")
private void setSelectAll(boolean selected) {
    List<DatabaseUIWrapper> input = (List<DatabaseUIWrapper>) hostListView.getInput();
    for (DatabaseUIWrapper check : input) {
        if (check.isSeleted() != selected)
            check.setSeleted(selected);
    }
    hostListView.setAllChecked(selected);
}
Also used : List(java.util.List) ArrayList(java.util.ArrayList) DatabaseUIWrapper(com.cubrid.cubridquery.ui.spi.model.DatabaseUIWrapper)

Aggregations

DatabaseUIWrapper (com.cubrid.cubridquery.ui.spi.model.DatabaseUIWrapper)6 ArrayList (java.util.ArrayList)4 CubridDatabase (com.cubrid.common.ui.spi.model.CubridDatabase)3 List (java.util.List)3 DatabaseInfoTableViewerContentProvider (com.cubrid.cubridquery.ui.connection.editor.DatabaseInfoTableViewerContentProvider)1 DatabaseInfoTableViewerLabelProvider (com.cubrid.cubridquery.ui.connection.editor.DatabaseInfoTableViewerLabelProvider)1 File (java.io.File)1 SimpleDateFormat (java.text.SimpleDateFormat)1 CheckStateChangedEvent (org.eclipse.jface.viewers.CheckStateChangedEvent)1 ICheckStateListener (org.eclipse.jface.viewers.ICheckStateListener)1 ISelectionChangedListener (org.eclipse.jface.viewers.ISelectionChangedListener)1 SelectionChangedEvent (org.eclipse.jface.viewers.SelectionChangedEvent)1 SelectionEvent (org.eclipse.swt.events.SelectionEvent)1 Image (org.eclipse.swt.graphics.Image)1 GridData (org.eclipse.swt.layout.GridData)1 Event (org.eclipse.swt.widgets.Event)1 Listener (org.eclipse.swt.widgets.Listener)1 TableColumn (org.eclipse.swt.widgets.TableColumn)1