Revision fe6bf49c
Added by Katja Luther about 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerContextMenuE4.java | ||
---|---|---|
51 | 51 |
return ; |
52 | 52 |
} |
53 | 53 |
if(firstElement instanceof TreeNode){ |
54 |
firstElement = ((TreeNode) selectedObject).getValue();
|
|
54 |
firstElement = ((TreeNode) firstElement).getValue();
|
|
55 | 55 |
} |
56 | 56 |
|
57 | 57 |
Map<Command, String> enabledCommands = CdmViewerUtilE4.getAvailableViewers(firstElement, commandService, handlerService); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java | ||
---|---|---|
615 | 615 |
if (activePart != null && activePart instanceof IDistributionEditorPart){ |
616 | 616 |
Reference defaultSource =((IDistributionEditorPart)activePart).getEditor().getDefaultSource(); |
617 | 617 |
descriptionElementSourceSection = formFactory.createDescriptionElementSourceSection(getConversationHolder(), parent, defaultSource, StoreUtil.getSectionStyle(DescriptionElementSourceSection.class, getInput().getClass().getCanonicalName())); |
618 |
for (ICdmFormElement element: descriptionElementDetailSection.getElements()){ |
|
619 |
if (element instanceof DescriptionElementDetailElement){ |
|
620 | 618 |
|
621 |
// ((DistributionDetailElement)element).setName(((IDistributionEditorPart)activePart).getEditor().getActualNameCache()); |
|
622 |
break; |
|
623 |
} |
|
624 |
} |
|
625 | 619 |
}else{ |
626 | 620 |
descriptionElementSourceSection = formFactory.createDescriptionElementSourceSection(getConversationHolder(), parent, StoreUtil.getSectionStyle(DescriptionElementSourceSection.class, getInput().getClass().getCanonicalName()) ); |
627 | 621 |
} |
Also available in: Unified diff
ref #8047: code cleaning