import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.TreeNode;
import org.eclipse.swt.SWT;
+import org.eclipse.ui.forms.IFormPart;
+import org.eclipse.ui.forms.widgets.Section;
import org.springframework.security.core.GrantedAuthority;
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
@Optional
private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_DETAILS)boolean refresh){
if(refresh){
- //refresh_withoutnew_build(); this would use the update without creation of all fields
+ //refresh_withoutnew_build(); this would use the update without creation of all fields
refresh();
}
}
+
+ @Inject
+ @Optional
+ private void blockView(@UIEventTopic(WorkbenchEventConstants.ENABLE_TAXON_DETAILS)boolean enable){
+ for (IFormPart part :this.managedForm.getParts()) {
+ if (part instanceof CdmSectionPart) {
+ ((CdmSectionPart)part).getSection().setEnabled(enable);
+ }
+ }
+
+
+ }
@Inject
@Optional