/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider#provides(org.eclipse.emf.eef.runtime.context.PropertiesEditingContext, * java.lang.String, java.lang.Class) */ @SuppressWarnings("rawtypes") public boolean provides( PropertiesEditingContext editingContext, String part, java.lang.Class refinement) { return (editingContext.getEObject() instanceof JavaDeclarationFilter) && ((JavaDeclarationFilterBasePropertiesEditionComponent.BASE_PART.equals(part) && refinement == JavaDeclarationFilterBasePropertiesEditionComponent.class) || (DocumentedElementPropertiesEditionComponent.DOCUMENTATION_PART.equals(part) && refinement == DocumentedElementPropertiesEditionComponent.class) || (FilterPropertiesPropertiesEditionComponent.FILTERPROPERTIES_PART.equals(part) && refinement == FilterPropertiesPropertiesEditionComponent.class)); }
/** * {@inheritDoc} * * @see * org.eclipse.emf.eef.runtime.providers.PropertiesEditingProvider#getPropertiesEditingComponent(org.eclipse.emf.eef.runtime.context.PropertiesEditingContext, * java.lang.String, java.lang.String) */ public IPropertiesEditionComponent getPropertiesEditingComponent( PropertiesEditingContext editingContext, String mode, String part) { if (editingContext.getEObject() instanceof JavaDeclarationFilter) { if (JavaDeclarationFilterBasePropertiesEditionComponent.BASE_PART.equals(part)) return new JavaDeclarationFilterBasePropertiesEditionComponent( editingContext, editingContext.getEObject(), mode); if (DocumentedElementPropertiesEditionComponent.DOCUMENTATION_PART.equals(part)) return new DocumentedElementPropertiesEditionComponent( editingContext, editingContext.getEObject(), mode); if (FilterPropertiesPropertiesEditionComponent.FILTERPROPERTIES_PART.equals(part)) return new FilterPropertiesPropertiesEditionComponent( 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) */ @SuppressWarnings("rawtypes") public IPropertiesEditionComponent getPropertiesEditingComponent( PropertiesEditingContext editingContext, String mode, String part, java.lang.Class refinement) { if (editingContext.getEObject() instanceof JavaDeclarationFilter) { if (JavaDeclarationFilterBasePropertiesEditionComponent.BASE_PART.equals(part) && refinement == JavaDeclarationFilterBasePropertiesEditionComponent.class) return new JavaDeclarationFilterBasePropertiesEditionComponent( editingContext, editingContext.getEObject(), mode); if (DocumentedElementPropertiesEditionComponent.DOCUMENTATION_PART.equals(part) && refinement == DocumentedElementPropertiesEditionComponent.class) return new DocumentedElementPropertiesEditionComponent( editingContext, editingContext.getEObject(), mode); if (FilterPropertiesPropertiesEditionComponent.FILTERPROPERTIES_PART.equals(part) && refinement == FilterPropertiesPropertiesEditionComponent.class) return new FilterPropertiesPropertiesEditionComponent( 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) */ public boolean provides(PropertiesEditingContext editingContext, String part) { return (editingContext.getEObject() instanceof JavaDeclarationFilter) && (JavaDeclarationFilterBasePropertiesEditionComponent.BASE_PART.equals(part) || DocumentedElementPropertiesEditionComponent.DOCUMENTATION_PART.equals(part) || FilterPropertiesPropertiesEditionComponent.FILTERPROPERTIES_PART.equals(part)); }