Revision 6abed072
Added by Katja Luther 5 months ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/container/AbstractGroupedContainer.java | ||
---|---|---|
168 | 168 |
storeCursor(); |
169 | 169 |
// notify selection listener |
170 | 170 |
setDelayedSelection(); |
171 |
|
|
171 |
EventUtility.postAsyncEvent(WorkbenchEventConstants.ENABLE_TAXON_DETAILS, false); |
|
172 | 172 |
|
173 | 173 |
}; |
174 | 174 |
|
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java | ||
---|---|---|
22 | 22 |
import org.eclipse.jface.viewers.SelectionChangedEvent; |
23 | 23 |
import org.eclipse.jface.viewers.TreeNode; |
24 | 24 |
import org.eclipse.swt.SWT; |
25 |
import org.eclipse.ui.forms.IFormPart; |
|
26 |
import org.eclipse.ui.forms.widgets.Section; |
|
25 | 27 |
import org.springframework.security.core.GrantedAuthority; |
26 | 28 |
|
27 | 29 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade; |
... | ... | |
984 | 986 |
@Optional |
985 | 987 |
private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_DETAILS)boolean refresh){ |
986 | 988 |
if(refresh){ |
987 |
//refresh_withoutnew_build(); this would use the update without creation of all fields
|
|
989 |
//refresh_withoutnew_build(); this would use the update without creation of all fields
|
|
988 | 990 |
refresh(); |
989 | 991 |
} |
990 | 992 |
} |
993 |
|
|
994 |
@Inject |
|
995 |
@Optional |
|
996 |
private void blockView(@UIEventTopic(WorkbenchEventConstants.ENABLE_TAXON_DETAILS)boolean enable){ |
|
997 |
for (IFormPart part :this.managedForm.getParts()) { |
|
998 |
if (part instanceof CdmSectionPart) { |
|
999 |
((CdmSectionPart)part).getSection().setEnabled(enable); |
|
1000 |
} |
|
1001 |
} |
|
1002 |
|
|
1003 |
|
|
1004 |
} |
|
991 | 1005 |
|
992 | 1006 |
@Inject |
993 | 1007 |
@Optional |
Also available in: Unified diff
ref #10182: disable details view after editing name in name editor