}
/**
- * Opens a popup dialog with all possible viewers for the given input.
+ * Opens a pop-up dialog with all possible viewers for the given input.
* @param input the input for which the viewers are listed
*/
public void chooseViewer(Object input){
//build the parameterized command
ParameterizedCommand pc = ParameterizedCommand.generateCommand(command, params);
- IHandlerService handlerService = (IHandlerService)PlatformUI.getWorkbench().getService(IHandlerService.class);
+ IHandlerService handlerService = PlatformUI.getWorkbench().getService(IHandlerService.class);
try {
if(pc!=null){
handlerService.executeCommand(pc, null);
+/**
+ * Copyright (C) 2015 EDIT
+ * European Distributed Institute of Taxonomy
+ * http://www.e-taxonomy.eu
+ *
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
+ */
package eu.etaxonomy.taxeditor.view;
import java.util.List;
/**
* Generic context menu for opening elements in the taxeditor.
- *
*/
public class CdmViewerContextMenuE4 {