Revision 940e1f09
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/e4/DefaultOpenHandlerBaseE4.java | ||
---|---|---|
43 | 43 |
Object transientData = menuItem.getTransientData().get(commandId+".uuid"); |
44 | 44 |
|
45 | 45 |
if (transientData instanceof IStructuredSelection){ |
46 |
|
|
47 | 46 |
for (Object element: ((IStructuredSelection)transientData).toArray()) { |
48 | 47 |
open((T)element, shell, partService); |
49 | 48 |
} |
50 | 49 |
}else if (transientData instanceof UuidAndTitleCache || transientData instanceof CdmBase){ |
51 |
// T entity = getEntity(((UuidAndTitleCache)transientData).getUuid()); |
|
52 | 50 |
open((T)transientData, shell, partService); |
53 | 51 |
} |
54 | 52 |
} |
... | ... | |
72 | 70 |
return canExecute; |
73 | 71 |
} |
74 | 72 |
|
75 |
// protected abstract T getEntity(UUID uuid); |
|
76 |
|
|
77 | 73 |
protected abstract void open(T entity, Shell shell, EPartService partService) throws Exception; |
78 | 74 |
|
79 | 75 |
protected abstract boolean canExecute(Object entity); |
Also available in: Unified diff
cleanup