DynamicMenuAssessmentHandler and AddAssessmentHandler are specialized for assessments. Issue #21 talks about creating snippets from a context menu. This pattern is going to be repeated a lot: entry points, sinks, crypto, authentication, etc.
Instead of repeating the same thing here, create a conversion service. A basic API would be something like so:
Consumers of the API bind 0..many ModelConverter services, calling them in parallel or sequential. It's up to the consumer to deal with multiple returned values for the same source object.
Right now everything I'll be working currently will be IAdaptable, so I could specialize a provider for this case. If so, it seems an approach is to register an IAdapterFactory that can handle the types. And it seems the IAdapterManagershould be available via an OSGi service. So I could add factories for each type. This might help with identifying a better interface on the models too :) The provider should handle the ECP projects along with the EObjects.
DynamicMenuAssessmentHandler
andAddAssessmentHandler
are specialized for assessments. Issue #21 talks about creating snippets from a context menu. This pattern is going to be repeated a lot: entry points, sinks, crypto, authentication, etc.Instead of repeating the same thing here, create a conversion service. A basic API would be something like so:
Consumers of the API bind 0..many ModelConverter services, calling them in parallel or sequential. It's up to the consumer to deal with multiple returned values for the same source object.
Right now everything I'll be working currently will be
IAdaptable
, so I could specialize a provider for this case. If so, it seems an approach is to register anIAdapterFactory
that can handle the types. And it seems theIAdapterManager
should be available via an OSGi service. So I could add factories for each type. This might help with identifying a better interface on the models too :) The provider should handle the ECP projects along with the EObjects.