Revision 44f55f49
Added by Patrick Plitzner about 9 years ago
- added double click for type designations
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/association/TaxonAssociationDetailElement.java | ||
---|---|---|
123 | 123 |
*/ |
124 | 124 |
@Override |
125 | 125 |
public void doubleClick(DoubleClickEvent event) { |
126 |
if(associationsViewer.getSelection() instanceof IStructuredSelection){
|
|
127 |
Object firstElement = ((IStructuredSelection) associationsViewer.getSelection()).getFirstElement();
|
|
126 |
if(event.getSelection() instanceof IStructuredSelection){
|
|
127 |
Object firstElement = ((IStructuredSelection) event.getSelection()).getFirstElement();
|
|
128 | 128 |
if(firstElement instanceof TaxonBase<?>){ |
129 | 129 |
TaxonBase<?> taxonBase = (TaxonBase<?>)firstElement; |
130 | 130 |
String commandId = "eu.etaxonomy.taxeditor.editor.openTaxonEditor"; |
Also available in: Unified diff