| Summary: | [Navigator View and Editor Sockets] Addition of the use of custom adapter factories in basic form editors | ||
|---|---|---|---|
| Product: | [Automotive] Sphinx | Reporter: | Idrissa Dieng <idydieng> |
| Component: | Core | Assignee: | Idrissa Dieng <idydieng> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | idydieng, r.sezestre, stephaneberle9 |
| Version: | 0.7.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Idrissa Dieng
Fixed by adding:
- org.eclipse.sphinx.emf.editors.forms.BasicTransactionalFormEditor#getCustomAdapterFactory() method that return null by default. Clients which want to use their own adapter factory that creates item providers which are specifically designed for the editor in which this form editor is used may override this method and return any adapter factory of their choice.
- modification of the org.eclipse.sphinx.emf.editors.forms.BasicTransactionalFormEditor#getAdapterFactory()
method like this:
public AdapterFactory getAdapterFactory() {
EditingDomain editingDomain = getEditingDomain();
AdapterFactory customAdapterFactory = getCustomAdapterFactory();
if (customAdapterFactory != null) {
return customAdapterFactory;
} else if (editingDomain != null) {
return ((AdapterFactoryEditingDomain) editingDomain).getAdapterFactory();
}
return null;
}
Mass-closing Resolved tickets |