Revision e97b77c6
Added by Patrick Plitzner over 9 years ago
- added preference for displaying associated taxa in specimen details view
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/association/TaxonAssociationDetailElement.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import java.util.Collection; |
13 | 13 |
|
14 |
import org.eclipse.core.commands.ExecutionException; |
|
15 |
import org.eclipse.core.commands.NotEnabledException; |
|
16 |
import org.eclipse.core.commands.NotHandledException; |
|
17 |
import org.eclipse.core.commands.common.NotDefinedException; |
|
18 | 14 |
import org.eclipse.jface.viewers.ArrayContentProvider; |
19 | 15 |
import org.eclipse.jface.viewers.DoubleClickEvent; |
20 | 16 |
import org.eclipse.jface.viewers.IDoubleClickListener; |
... | ... | |
81 | 77 |
*/ |
82 | 78 |
@Override |
83 | 79 |
public void doubleClick(DoubleClickEvent event) { |
84 |
String commandId = "eu.etaxonomy.taxeditor.navigation.command.update.editSelection"; |
|
85 |
|
|
86 |
IHandlerService handlerService = (IHandlerService) AbstractUtility.getService(IHandlerService.class); |
|
87 |
try { |
|
88 |
handlerService.executeCommand(commandId, null); |
|
89 |
} catch (ExecutionException e) { |
|
90 |
// TODO Auto-generated catch block |
|
91 |
e.printStackTrace(); |
|
92 |
} catch (NotDefinedException e) { |
|
93 |
// TODO Auto-generated catch block |
|
94 |
e.printStackTrace(); |
|
95 |
} catch (NotEnabledException e) { |
|
96 |
// TODO Auto-generated catch block |
|
97 |
e.printStackTrace(); |
|
98 |
} catch (NotHandledException e) { |
|
99 |
// TODO Auto-generated catch block |
|
100 |
e.printStackTrace(); |
|
101 |
} |
|
80 |
// String commandId = "eu.etaxonomy.taxeditor.navigation.command.update.editSelection";
|
|
81 |
// |
|
82 |
// IHandlerService handlerService = (IHandlerService) AbstractUtility.getService(IHandlerService.class);
|
|
83 |
// try {
|
|
84 |
// handlerService.executeCommand(commandId, null);
|
|
85 |
// } catch (ExecutionException e) {
|
|
86 |
// // TODO Auto-generated catch block
|
|
87 |
// e.printStackTrace();
|
|
88 |
// } catch (NotDefinedException e) {
|
|
89 |
// // TODO Auto-generated catch block
|
|
90 |
// e.printStackTrace();
|
|
91 |
// } catch (NotEnabledException e) {
|
|
92 |
// // TODO Auto-generated catch block
|
|
93 |
// e.printStackTrace();
|
|
94 |
// } catch (NotHandledException e) {
|
|
95 |
// // TODO Auto-generated catch block
|
|
96 |
// e.printStackTrace();
|
|
97 |
// }
|
|
102 | 98 |
|
103 | 99 |
|
104 | 100 |
// if(event.getSelection() instanceof StructuredSelection){ |
Also available in: Unified diff