Bug 513867 - Properties generation sometimes incorrect

- to support empty strings and arrays, generate property value attribute
if body content absent, and vice-versa
- for empty array members, generate empty property element (no value
attribute)

By spec, if a property element has a value attribute, then it's a
single-value property; otherwise it's a multi-value (array) property
where each non-empty line in its body, trimmed, represents an array
element.

DSEditor considers empty value and content the same as no value/content.
The annotation processor, on the other hand, actually removes the value
attribute and/or body content node to distinguish between single and
multi-value properties. Thus, when writing out the property element XML,
we must write the value attribute or body content node if it's defined,
even when empty.

Change-Id: I4a0eb93240124e1a11cb5816e96af1357df78b92
Signed-off-by: Peter Nehrer <pnehrer@eclipticalsoftware.com>
2 files changed
tree: f160dbdfd14ab5ef7011f87f12c539e9409b6302
  1. apitools/
  2. ds/
  3. features/
  4. releng/
  5. tests-pom/
  6. ua/
  7. ui/
  8. .gitignore
  9. pom.xml
  10. README.md
README.md

Contributing to PDE - Plug-in development Environment

Thanks for your interest in this project.

Project description:

The PDE project the Eclipse tooling to develop plug-ins and OSGI bundles.
Website: https://www.eclipse.org/pde/

How to contribute:

Contributions to PDE are most welcome. There are many ways to contribute, from entering high quality bug reports, to contributing code or documentation changes. For a complete guide, see the [How to Contribute] 1 page on the team wiki.

Developer resources:

Information regarding source code management, builds, coding standards, and more.

Contributor License Agreement:

Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).

Search for bugs:

This project uses Bugzilla to track ongoing development and issues.

Create a new bug:

Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!

Contact:

Contact the project developers via the project's “dev” list.

License

Eclipse Public License (EPL) v1.0