Project

General

Profile

Download (935 Bytes) Statistics
| Branch: | Tag: | Revision:
1

    
2
package eu.etaxonomy.taxeditor.editor.view.charactermatrix.handler;
3

    
4
import javax.inject.Named;
5

    
6
import org.eclipse.e4.core.di.annotations.Execute;
7
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
8
import org.eclipse.e4.ui.services.IServiceConstants;
9
import org.eclipse.nebula.widgets.nattable.NatTable;
10
import org.eclipse.nebula.widgets.nattable.export.command.ExportCommand;
11
import org.eclipse.swt.widgets.Shell;
12

    
13
import eu.etaxonomy.taxeditor.editor.descriptiveDataSet.matrix.CharacterMatrixPart;
14

    
15
public class ExportCharacterMatrixHandler {
16

    
17
	@Execute
18
	public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart,
19
	        @Named(IServiceConstants.ACTIVE_SHELL)Shell shell) {
20
	    CharacterMatrixPart characterMatrix = (CharacterMatrixPart) activePart.getObject();
21
	    NatTable natTable = characterMatrix.getNatTable();
22
	    natTable.doCommand(new ExportCommand(natTable.getConfigRegistry(), shell));
23
	}
24

    
25
}
    (1-1/1)