Project

General

Profile

« Previous | Next » 

Revision 95aceac2

Added by Patrick Plitzner over 8 years ago

Refactor generic "open in..." framework

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerChooser.java
48 48
 */
49 49
public class CdmViewerChooser extends PopupDialog implements ISelectionChangedListener, ILabelProvider{
50 50

  
51
    private Map<String, String> nameViewerMap;
51
    private Map<Command, String> nameViewerMap;
52 52
    private Object input;
53 53

  
54 54
    public CdmViewerChooser(Shell parentShell) {
......
73 73

  
74 74
        //if only one editor is available then open it
75 75
        if(nameViewerMap.size()==1){
76
            String commandId = nameViewerMap.keySet().iterator().next();
77
            executeCommand(commandId, input);
76
            Command command = nameViewerMap.keySet().iterator().next();
77
            executeCommand(command.getId(), input);
78 78
        }
79 79
        else{
80 80
            if(nameViewerMap.isEmpty()){

Also available in: Unified diff