Project

General

Profile

Revision 9d6458e9

ID9d6458e923febc87e9578c4bf84c359486cbc236
Parent 8360c0ff
Child a4784593

Added by Patrick Plitzner about 2 years ago

ref #7439 disable auto-resize after search

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorE4.java
59 59
import org.eclipse.nebula.widgets.nattable.grid.layer.RowHeaderLayer;
60 60
import org.eclipse.nebula.widgets.nattable.layer.DataLayer;
61 61
import org.eclipse.nebula.widgets.nattable.layer.stack.DefaultBodyLayerStack;
62
import org.eclipse.nebula.widgets.nattable.resize.command.InitializeAutoResizeColumnsCommand;
63 62
import org.eclipse.nebula.widgets.nattable.selection.RowSelectionModel;
64 63
import org.eclipse.nebula.widgets.nattable.selection.RowSelectionProvider;
65 64
import org.eclipse.nebula.widgets.nattable.sort.SortHeaderLayer;
......
70 69
import org.eclipse.nebula.widgets.nattable.ui.matcher.MouseEventMatcher;
71 70
import org.eclipse.nebula.widgets.nattable.ui.menu.PopupMenuAction;
72 71
import org.eclipse.nebula.widgets.nattable.ui.menu.PopupMenuBuilder;
73
import org.eclipse.nebula.widgets.nattable.util.GCFactory;
74 72
import org.eclipse.swt.SWT;
75 73
import org.eclipse.swt.dnd.Clipboard;
76 74
import org.eclipse.swt.dnd.TextTransfer;
......
411 409
        if(selection!=null){
412 410
            setSelection(selection);
413 411
        }
414
        //auto resize columns
415
        InitializeAutoResizeColumnsCommand command = new InitializeAutoResizeColumnsCommand(
416
                natTable, 2, natTable.getConfigRegistry(), new GCFactory(
417
                        natTable));
418
        natTable.doCommand(command);
419
        command = new InitializeAutoResizeColumnsCommand(
420
                natTable, 1, natTable.getConfigRegistry(), new GCFactory(
421
                        natTable));
422
        natTable.doCommand(command);
412
//        //auto resize columns
413
//        InitializeAutoResizeColumnsCommand command = new InitializeAutoResizeColumnsCommand(
414
//                natTable, 2, natTable.getConfigRegistry(), new GCFactory(
415
//                        natTable));
416
//        natTable.doCommand(command);
417
//        command = new InitializeAutoResizeColumnsCommand(
418
//                natTable, 1, natTable.getConfigRegistry(), new GCFactory(
419
//                        natTable));
420
//        natTable.doCommand(command);
423 421
    }
424 422

  
425 423
    public void refresh(){

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)