T - the type of reference service customization that I providepublic class ReferenceServiceCustomizationVendor<T> extends Object implements Vendor<T>
DefaultReferenceService
customization strategies in the bazaar. Clients may subclass to suit.| Constructor and Description |
|---|
ReferenceServiceCustomizationVendor()
Initializes me .
|
| Modifier and Type | Method and Description |
|---|---|
Double |
bid(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference)
Bid on provision for the given and
reference. |
protected boolean |
handles(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference)
Queries whether I should bid on the given
owner and reference. |
public ReferenceServiceCustomizationVendor()
public Double bid(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
reference. This implementation
returns the default bid, which is the OSGi configured ranking of this service,
if the handles(EObject, EReference) method return true.owner - the owner of a reference being edited by the Reference Servicereference - the reference being editednull to opt outhandles(EObject, EReference)protected boolean handles(org.eclipse.emf.ecore.EObject owner,
org.eclipse.emf.ecore.EReference reference)
owner and reference.
The default implementation just returns true; subclasses should override.owner - the owner of a reference being edited by the Reference Servicereference - the reference being editedCopyright © 2020. All rights reserved.