Project

General

Profile

« Previous | Next » 

Revision b09559de

Added by Patrick Plitzner over 6 years ago

ref #7095 Re-enable export button

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java
46 46
import org.eclipse.nebula.widgets.nattable.data.ListDataProvider;
47 47
import org.eclipse.nebula.widgets.nattable.edit.EditConfigAttributes;
48 48
import org.eclipse.nebula.widgets.nattable.edit.editor.IComboBoxDataProvider;
49
import org.eclipse.nebula.widgets.nattable.export.command.ExportCommand;
49 50
import org.eclipse.nebula.widgets.nattable.export.command.ExportCommandHandler;
50 51
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsEventLayer;
51 52
import org.eclipse.nebula.widgets.nattable.extension.glazedlists.GlazedListsSortModel;
......
172 173
        thisPart.setLabel(workingSet.getLabel());
173 174

  
174 175
        Composite toolbarComposite = new Composite(parent, SWT.NONE);
175
        toolbarComposite.setLayout(new GridLayout(2, false));
176
        toolbarComposite.setLayout(new GridLayout(3, false));
176 177
        toolbarComposite.setLayoutData(new GridData(SWT.TRAIL, SWT.CENTER, true, false));
177 178

  
178 179
        //get features/columns stored in working set
......
422 423
        /**
423 424
         * excel export
424 425
         */
425
//        Button addColumnButton = new Button(toolbarComposite, SWT.PUSH);
426
//        addColumnButton.setImage(ImageResources.getImage(ImageResources.EXPORT));
427
//        addColumnButton.addSelectionListener(new SelectionAdapter() {
428
//            @Override
429
//            public void widgetSelected(SelectionEvent e) {
430
//                natTable.doCommand(
431
//                        new ExportCommand(
432
//                                natTable.getConfigRegistry(),
433
//                                natTable.getShell()));
434
//            }
435
//        });
426
        Button addColumnButton = new Button(toolbarComposite, SWT.PUSH);
427
        addColumnButton.setImage(ImageResources.getImage(ImageResources.EXPORT));
428
        addColumnButton.addSelectionListener(new SelectionAdapter() {
429
            @Override
430
            public void widgetSelected(SelectionEvent e) {
431
                natTable.doCommand(
432
                        new ExportCommand(
433
                                natTable.getConfigRegistry(),
434
                                natTable.getShell()));
435
            }
436
        });
436 437

  
437 438
        parent.layout();
438 439
    }

Also available in: Unified diff