@Override public boolean canSetProperty(Object object) { return super.canSetProperty(object) && canEdit(object); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EStructuralFeature getChildFeature(Object object, Object child) { // Check the type of the specified child object and return the proper feature to use for // adding (see {@link AddCommand}) it as a child. return super.getChildFeature(object, child); }
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(GenModelPackage.Literals.GEN_CLASS__GEN_FEATURES); childrenFeatures.add(GenModelPackage.Literals.GEN_CLASS__GEN_OPERATIONS); } return childrenFeatures; }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addEcoreOperationPropertyDescriptor(object); } return itemPropertyDescriptors; }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(GenEnumLiteral.class)) { case GenModelPackage.GEN_ENUM_LITERAL__ECORE_ENUM_LITERAL: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(GenBase.class)) { case GenModelPackage.GEN_BASE__GEN_ANNOTATIONS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public String getText(Object object) { return getString("_UI_GenBase_type"); }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addEcoreDataTypePropertyDescriptor(object); } return itemPropertyDescriptors; }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(GenDataType.class)) { case GenModelPackage.GEN_DATA_TYPE__GEN_PACKAGE: case GenModelPackage.GEN_DATA_TYPE__GEN_TYPE_PARAMETERS: case GenModelPackage.GEN_DATA_TYPE__ECORE_DATA_TYPE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addEcoreEnumLiteralPropertyDescriptor(object); } return itemPropertyDescriptors; }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(GenOperation.class)) { case GenModelPackage.GEN_OPERATION__ECORE_OPERATION: case GenModelPackage.GEN_OPERATION__GEN_PARAMETERS: case GenModelPackage.GEN_OPERATION__GEN_TYPE_PARAMETERS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EStructuralFeature getChildFeature(Object object, Object child) { // Check the type of the specified child object and return the proper feature to use for // adding (see {@link AddCommand}) it as a child. return super.getChildFeature(object, child); }
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(GenModelPackage.Literals.GEN_MODEL__GEN_PACKAGES); childrenFeatures.add(GenModelPackage.Literals.GEN_MODEL__USED_GEN_PACKAGES); } return childrenFeatures; }
/** * Returns whether changes to the object will be persisted. */ protected static boolean canEdit(Object object) { if (object instanceof GenModel) return true; if (object instanceof GenPackage) { return ((GenPackage)object).canGenerate(); } if (object instanceof GenBase) { return canEdit(((GenBase)object).eContainer()); } return false; }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addSourcePropertyDescriptor(object); addReferencesPropertyDescriptor(object); } return itemPropertyDescriptors; }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(GenFeature.class)) { case GenModelPackage.GEN_FEATURE__PROPERTY: case GenModelPackage.GEN_FEATURE__NOTIFY: case GenModelPackage.GEN_FEATURE__CHILDREN: case GenModelPackage.GEN_FEATURE__CREATE_CHILD: case GenModelPackage.GEN_FEATURE__PROPERTY_CATEGORY: case GenModelPackage.GEN_FEATURE__PROPERTY_FILTER_FLAGS: case GenModelPackage.GEN_FEATURE__PROPERTY_DESCRIPTION: case GenModelPackage.GEN_FEATURE__PROPERTY_MULTI_LINE: case GenModelPackage.GEN_FEATURE__PROPERTY_SORT_CHOICES: case GenModelPackage.GEN_FEATURE__ECORE_FEATURE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override protected EStructuralFeature getChildFeature(Object object, Object child) { // Check the type of the specified child object and return the proper feature to use for // adding (see {@link AddCommand}) it as a child. return super.getChildFeature(object, child); }
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(GenModelPackage.Literals.GEN_ANNOTATION__DETAILS); childrenFeatures.add(GenModelPackage.Literals.GEN_ANNOTATION__CONTENTS); } return childrenFeatures; }
/** * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addProviderPropertyDescriptor(object); addImagePropertyDescriptor(object); addDynamicPropertyDescriptor(object); addEcoreClassPropertyDescriptor(object); addLabelFeaturePropertyDescriptor(object); } return itemPropertyDescriptors; }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(GenAnnotation.class)) { case GenModelPackage.GEN_ANNOTATION__SOURCE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; case GenModelPackage.GEN_ANNOTATION__DETAILS: case GenModelPackage.GEN_ANNOTATION__CONTENTS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); }