/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider#provides(org.eclipse.emf.eef.runtime.context.PropertiesEditingContext, * java.lang.String, java.lang.Class) */ @Override @SuppressWarnings("rawtypes") public boolean provides( PropertiesEditingContext editingContext, String part, java.lang.Class refinement) { return (editingContext.getEObject() instanceof Book) && ((BookPropertiesEditionComponent.BASE_PART.equals(part) && refinement == BookPropertiesEditionComponent.class)); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider#getPropertiesEditingComponent(org.eclipse.emf.eef.runtime.context.PropertiesEditingContext, * java.lang.String, java.lang.String) */ @Override public IPropertiesEditionComponent getPropertiesEditingComponent( PropertiesEditingContext editingContext, String mode, String part) { if (editingContext.getEObject() instanceof Book) { if (BookPropertiesEditionComponent.BASE_PART.equals(part)) { return new BookPropertiesEditionComponent( editingContext, editingContext.getEObject(), mode); } } return super.getPropertiesEditingComponent(editingContext, mode, part); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider#getPropertiesEditingComponent(org.eclipse.emf.eef.runtime.context.PropertiesEditingContext, * java.lang.String, java.lang.String, java.lang.Class) */ @Override @SuppressWarnings("rawtypes") public IPropertiesEditionComponent getPropertiesEditingComponent( PropertiesEditingContext editingContext, String mode, String part, java.lang.Class refinement) { if (editingContext.getEObject() instanceof Book) { if (BookPropertiesEditionComponent.BASE_PART.equals(part) && refinement == BookPropertiesEditionComponent.class) { return new BookPropertiesEditionComponent( editingContext, editingContext.getEObject(), mode); } } return super.getPropertiesEditingComponent(editingContext, mode, part, refinement); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider#provides(org.eclipse.emf.eef.runtime.context.PropertiesEditingContext, * java.lang.String) */ @Override public boolean provides(PropertiesEditingContext editingContext, String part) { return (editingContext.getEObject() instanceof Book) && (BookPropertiesEditionComponent.BASE_PART.equals(part)); }