Community
Participate
Working Groups
Build Identifier: 20110916-0149 org.eclipse.ui.forms.widgets.FormText has deprecated JavaDoc: "vspace: attribute for paragraphs and lists is no longer valid: it doesn't work because in org.eclipse.ui.internal.forms.widgets.FormTextModel "addVerticalSpace" attribute is expected instead of "vspace" Reproducible: Always Steps to Reproduce: Probably it's needed to update org.eclipse.ui.internal.forms.widgets.FormTextModel: replace addVerticalSpace with vspace to be consistent with JavaDoc for the FormText widget
Use case: need to decrease vertical space between text lines in paragraphs and list items. Documented, but doesn't work: <form><p vspace="false"></p></form> Works fine, but not documented: <form><p addVerticalSpace="false"></p></form>
Moving to platform UI. Can you provide a more detailed explanation of what needs to be updated? I don't see any mention of addVerticalSpace in FormText and in FormTextModel it is an attribute. I have the 4.x code checked out currently so it may be different then what you are looking at. Better yet, a patch would be great.
Taking another look, Isee that vspace is used when processing the paragraph if addVerticalSpace is not found. However, processListItem only checks addVerticalSpace. So perhaps this is a bug in the model code?
Agree, for the paragraphs it looks like vspace attribute is really read, but doesn't take any effect for me. But in case of list items the bug is still present: At least in private Paragraph processListItem(Node listItem, boolean expandURLs) method line 194: Node addSpaceAtt = atts.getNamedItem("addVerticalSpace");//$NON-NLS-1$ addVerticalSpace attribute is used only, no vspace attribute presents in the code. However, in the documentation the only vspace attribute is described.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.