From d4cc6d09f6159ce5491f012b1987519071dd43b1 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Thu, 14 Jan 2021 12:00:25 +0100 Subject: [PATCH] Documentation. --- org.argeo.cms.ui/src/org/argeo/cms/ui/viewers/Section.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/org.argeo.cms.ui/src/org/argeo/cms/ui/viewers/Section.java b/org.argeo.cms.ui/src/org/argeo/cms/ui/viewers/Section.java index 6f8705099..730ba671d 100644 --- a/org.argeo.cms.ui/src/org/argeo/cms/ui/viewers/Section.java +++ b/org.argeo.cms.ui/src/org/argeo/cms/ui/viewers/Section.java @@ -13,6 +13,7 @@ import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; +/** A structured UI related to a JCR context. */ public class Section extends JcrComposite { private static final long serialVersionUID = -5933796173755739207L; @@ -94,9 +95,9 @@ public class Section extends JcrComposite { public SectionPart getSectionPart(String partId) { for (Control child : getChildren()) { if (child instanceof SectionPart) { - SectionPart paragraph = (SectionPart) child; - if (paragraph.getPartId().equals(partId)) - return paragraph; + SectionPart sectionPart = (SectionPart) child; + if (sectionPart.getPartId().equals(partId)) + return sectionPart; } } return null; -- 2.30.2