X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.cms.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Fui%2Fviewers%2FSection.java;h=730ba671d71def6011c3d025a8beed39fb8cc58b;hb=d4cc6d09f6159ce5491f012b1987519071dd43b1;hp=6f870509981ccc180f2ef5b20625864e1a55f47b;hpb=f647205f8594dfd5014e3bce0ec4c3ff8e710abf;p=lgpl%2Fargeo-commons.git 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;