Bug 535964 - Move some non UI classes from jface.text to o.e.text.

Another update to the #equals() implementation.

bb4abd131785dc66b2a4da321ded042fd4e37db1 broke equals() in other
scenarios.

A = org.eclipse.text.templates.TemplatePersistenceData
B = org.eclipse.jface.text.templates.persistence.TemplatePersistenceData

Properly implement equals() in the super class (A) and in the deprecated
subclass (B), such that the symmetric property of equals holds:
A.equals(B)
B.equals(A)

This is ensured by always using B as a dummy and delegating via "ref".

In the super type A introduce a new dummy UUID just for equals. This
simulates the previous object identity semantics for equals (there can
exist multiple *different* templates with identical values).

Change-Id: Ia34e7019a54464b6f4d95521eddea8e682e87bf1
Signed-off-by: Sebastian Ratz <sebastian.ratz@sap.com>
3 files changed