Revision a8284340
Added by Katja Luther over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataViewerE4.java | ||
---|---|---|
15 | 15 |
import org.eclipse.e4.ui.di.UIEventTopic; |
16 | 16 |
import org.eclipse.jface.viewers.ISelection; |
17 | 17 |
import org.eclipse.swt.SWT; |
18 |
import org.eclipse.ui.forms.IFormPart; |
|
18 | 19 |
import org.eclipse.ui.forms.widgets.ExpandableComposite; |
19 | 20 |
|
20 | 21 |
import eu.etaxonomy.cdm.model.common.AnnotatableEntity; |
... | ... | |
42 | 43 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.SourceSection; |
43 | 44 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.VersionSection; |
44 | 45 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.identifier.IdentifierSection; |
46 |
import eu.etaxonomy.taxeditor.view.detail.CdmSectionPart; |
|
45 | 47 |
import eu.etaxonomy.taxeditor.view.e4.AbstractCdmDataViewerE4; |
46 | 48 |
|
47 | 49 |
/** |
... | ... | |
200 | 202 |
this.refresh(); |
201 | 203 |
} |
202 | 204 |
} |
205 |
|
|
206 |
public void setEnabled(boolean doEnable){ |
|
207 |
for (IFormPart section: this.managedForm.getParts()){ |
|
208 |
if (section instanceof CdmSectionPart){ |
|
209 |
((CdmSectionPart)section).getSection().setEnabled(doEnable); |
|
210 |
} |
|
211 |
} |
|
212 |
|
|
213 |
} |
|
214 |
|
|
203 | 215 |
} |
Also available in: Unified diff
ref #8239: disable details, facts and supplemental data for insufficient rights