createFeatureDistributionSection(rootElement);
} else if (getInput() instanceof PolytomousKey) {
- createPolytomousKeySection(rootElement);
+ //createPolytomousKeySection(rootElement);
} else if ((getInput() instanceof PolytomousKeyNode)
|| (getInput() instanceof PolytomousKeyRelationship)) {
PolytomousKeyDetailSection polytomousKeyDetailSection = (PolytomousKeyDetailSection) formFactory
.createCdmDetailSection(DetailType.POLYTOMOUS_KEY,
getConversationHolder(), parent, this, Section.TWISTIE
- | Section.COMPACT);
+ | Section.COMPACT);
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
getConversationHolder(), parent, this, Section.TWISTIE
| Section.EXPANDED);
- formFactory.createHorizontalSeparator(parent, SWT.BORDER);
-
- GeographicalScopeDetailSection geographicalScopeDetailSection = (GeographicalScopeDetailSection) formFactory
- .createEntityDetailSection(EntityDetailType.GEOGRAPHICAL_SCOPE,
- getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
-
- formFactory.createHorizontalSeparator(parent, SWT.BORDER);
-
- ScopeRestrictionSection scopeRestrictionSection = (ScopeRestrictionSection) formFactory
- .createEntityDetailSection(EntityDetailType.SCOPE_RESTRICTION,
- getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
-
- formFactory.createHorizontalSeparator(parent, SWT.BORDER);
-
- TaxonomicScopeSection taxonomicScopeSection = (TaxonomicScopeSection) formFactory
- .createEntityDetailSection(EntityDetailType.TAXONOMIC_SCOPE,
- getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
+// formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+//
+// GeographicalScopeDetailSection geographicalScopeDetailSection = (GeographicalScopeDetailSection) formFactory
+// .createEntityDetailSection(EntityDetailType.GEOGRAPHICAL_SCOPE,
+// getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
+//
+// formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+//
+// ScopeRestrictionSection scopeRestrictionSection = (ScopeRestrictionSection) formFactory
+// .createEntityDetailSection(EntityDetailType.SCOPE_RESTRICTION,
+// getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
+//
+// formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+//
+// TaxonomicScopeSection taxonomicScopeSection = (TaxonomicScopeSection) formFactory
+// .createEntityDetailSection(EntityDetailType.TAXONOMIC_SCOPE,
+// getConversationHolder(), parent, Section.TWISTIE | Section.COMPACT);
addPart(polytomousKeyDetailSection);
- addPart(geographicalScopeDetailSection);
- addPart(scopeRestrictionSection);
- addPart(taxonomicScopeSection);
- addPart(polytomousKeyNodeDetailSection);
+ addPart(polytomousKeyNodeDetailSection);
+// addPart(geographicalScopeDetailSection);
+// addPart(scopeRestrictionSection);
+// addPart(taxonomicScopeSection);
+
}
/**
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.part.EditorPart;
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
+import eu.etaxonomy.cdm.model.description.PolytomousKeyNode;
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
import eu.etaxonomy.taxeditor.store.StoreUtil;
import eu.etaxonomy.taxeditor.view.AbstractCdmEditorViewPart;
import eu.etaxonomy.taxeditor.view.AbstractCdmViewPart;
+import eu.etaxonomy.taxeditor.view.detail.CdmSectionPart;
/**
if(structuredSelection.getFirstElement() instanceof DerivedUnitFacade){
return;
}
-
+ if(structuredSelection.getFirstElement() instanceof PolytomousKeyNode){
+ structuredSelection = new StructuredSelection(((PolytomousKeyNode)structuredSelection.getFirstElement()).getKey());
+ }
showViewer(part, structuredSelection);
}else{
showEmptyPage();