Bug 514719: [Browser][Webkit2] port Browser.getText() to webkit2

Webkit2 implementation of getText().

Implementation is similar to evaluate(), in that
it converts async call to sync by waiting for async callback.
It piggybacks on evaluate's async-callback framework. 

As both use the same framework, I abstracted the framework from
being specific to 'evaluate' to a generic 'asyncToSync'.

Test:
- Checkout this patch
- Cherry pick jUnit patch: (if not merged yet).
  https://git.eclipse.org/r/#/c/96984/
- Run Test_org_eclipse_swt_browser_Browser
- All newly added getText() jUnits pass on Webkit2.

Gtk3.22, Webkit2.16.1

Change-Id: I0a1d4e94b3a78abba4be9acb5a3f43311d023059
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=514719
Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
9 files changed
tree: b65485e1a4236a569dc4b3ce8b8708950f159b32
  1. .gitignore
  2. README.md
  3. bundles/
  4. examples/
  5. features/
  6. local-build/
  7. pom.xml
  8. tests/
README.md

Contributing to SWT

Thanks for your interest in this project.

Developer resources:

See the following description for how to contribute a feature or a bug fix to SWT.

Information regarding source code management, builds, coding standards, and more and be found under the following link.

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).

Contact:

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

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!