eclipse-cdo / cdo

Eclipse Public License 1.0
3 stars 6 forks source link

Provide a public LMImporter #58

Closed estepper closed 3 months ago

estepper commented 3 months ago

Make the LMImporter from issue #52 public API.

Also add API to handle external references in custom ways.

estepper commented 3 months ago

There are now 3 overloaded resolve() methods:

org.eclipse.emf.cdo.lm.client.LMImporter.resolve(ResourceSet) org.eclipse.emf.cdo.lm.client.LMImporter.resolve(ResourceSet, boolean rejectExternalReferences) org.eclipse.emf.cdo.lm.client.LMImporter.resolve(ResourceSet, UnaryOperator externalReferenceHandler)

Plus the 3 default handlers for external references:

org.eclipse.emf.cdo.lm.client.LMImporter.EXTERNAL_REFERENCE_PRESERVER org.eclipse.emf.cdo.lm.client.LMImporter.EXTERNAL_REFERENCE_REJECTER org.eclipse.emf.cdo.lm.client.LMImporter.EXTERNAL_REFERENCE_UNSETTER

The default for all 3 methods is EXTERNAL_REFERENCE_PRESERVER.