diff options
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/ActionListenerTypeItemProvider.java')
-rw-r--r-- | jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/ActionListenerTypeItemProvider.java | 175 |
1 files changed, 87 insertions, 88 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/ActionListenerTypeItemProvider.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/ActionListenerTypeItemProvider.java index 785263dee..db9605f4f 100644 --- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/ActionListenerTypeItemProvider.java +++ b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/ActionListenerTypeItemProvider.java @@ -40,42 +40,41 @@ import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage; * * @generated */ +@SuppressWarnings("nls") public class ActionListenerTypeItemProvider extends ItemProviderAdapter implements IEditingDomainItemProvider, IStructuredItemContentProvider, ITreeItemContentProvider, IItemLabelProvider, IItemPropertySource, ITableItemLabelProvider { /** - * <!-- begin-user-doc --> <!-- end-user-doc --> - * @generated - */ + * <!-- begin-user-doc --> <!-- end-user-doc --> + * @generated + */ public static final String copyright = "Copyright (c) 2005, 2006 IBM Corporation and others"; //$NON-NLS-1$ /** - * This constructs an instance from a factory and a notifier. + * This constructs an instance from a factory and a notifier. * <!--begin-user-doc --> * @param adapterFactory * <!-- end-user-doc --> - * * @generated */ public ActionListenerTypeItemProvider(AdapterFactory adapterFactory) { - super(adapterFactory); - } + super(adapterFactory); + } /** - * This returns the property descriptors for the adapted class. + * This returns the property descriptors for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> - * * @generated */ public List getPropertyDescriptors(Object object) { - if (itemPropertyDescriptors == null) { - super.getPropertyDescriptors(object); + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); - addTextContentPropertyDescriptor(object); - addIdPropertyDescriptor(object); - } - return itemPropertyDescriptors; - } + addTextContentPropertyDescriptor(object); + addIdPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } /** * This adds a property descriptor for the Text Content feature. <!-- @@ -85,96 +84,96 @@ public class ActionListenerTypeItemProvider extends ItemProviderAdapter * @generated */ protected void addTextContentPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ActionListenerType_textContent_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ActionListenerType_textContent_feature", "_UI_ActionListenerType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - FacesConfigPackage.Literals.ACTION_LISTENER_TYPE__TEXT_CONTENT, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ActionListenerType_textContent_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ActionListenerType_textContent_feature", "_UI_ActionListenerType_type"), + FacesConfigPackage.Literals.ACTION_LISTENER_TYPE__TEXT_CONTENT, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } /** - * This adds a property descriptor for the Id feature. - * <!-- begin-user-doc - * --> <!-- end-user-doc --> - * @param object - * @generated - */ + * This adds a property descriptor for the Id feature. + * <!-- begin-user-doc> + * @param object + * <!-- end-user-doc --> + * @generated + */ protected void addIdPropertyDescriptor(Object object) { - itemPropertyDescriptors.add - (createItemPropertyDescriptor - (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), - getResourceLocator(), - getString("_UI_ActionListenerType_id_feature"), //$NON-NLS-1$ - getString("_UI_PropertyDescriptor_description", "_UI_ActionListenerType_id_feature", "_UI_ActionListenerType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ - FacesConfigPackage.Literals.ACTION_LISTENER_TYPE__ID, - true, - false, - false, - ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, - null, - null)); - } + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ActionListenerType_id_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ActionListenerType_id_feature", "_UI_ActionListenerType_type"), + FacesConfigPackage.Literals.ACTION_LISTENER_TYPE__ID, + true, + false, + false, + ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, + null, + null)); + } /** - * This returns ActionListenerType.gif. - * <!-- begin-user-doc --> <!-- + * This returns ActionListenerType.gif. + * <!-- begin-user-doc --> <!-- * end-user-doc --> - * @generated - */ + * @generated + */ public Object getImage(Object object) { - return overlayImage(object, getResourceLocator().getImage("full/obj16/ActionListenerType")); //$NON-NLS-1$ - } + return overlayImage(object, getResourceLocator().getImage("full/obj16/ActionListenerType")); + } /** - * This returns the label text for the adapted class. - * <!-- begin-user-doc + * This returns the label text for the adapted class. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * @generated - */ + * @generated + */ public String getText(Object object) { - String label = ((ActionListenerType)object).getId(); - return label == null || label.length() == 0 ? - getString("_UI_ActionListenerType_type") : //$NON-NLS-1$ - getString("_UI_ActionListenerType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ - } + String label = ((ActionListenerType)object).getId(); + return label == null || label.length() == 0 ? + getString("_UI_ActionListenerType_type") : + getString("_UI_ActionListenerType_type") + " " + label; + } /** - * This handles model notifications by calling {@link #updateChildren(Notification)} to update any cached - * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged(Notification)}. - * <!-- begin-user-doc --> <!-- + * 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 - */ + * @generated + */ public void notifyChanged(Notification notification) { - updateChildren(notification); + updateChildren(notification); - switch (notification.getFeatureID(ActionListenerType.class)) { - case FacesConfigPackage.ACTION_LISTENER_TYPE__TEXT_CONTENT: - case FacesConfigPackage.ACTION_LISTENER_TYPE__ID: - fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); - return; - } - super.notifyChanged(notification); - } + switch (notification.getFeatureID(ActionListenerType.class)) { + case FacesConfigPackage.ACTION_LISTENER_TYPE__TEXT_CONTENT: + case FacesConfigPackage.ACTION_LISTENER_TYPE__ID: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + } + super.notifyChanged(notification); + } /** - * This adds to the collection of {@link org.eclipse.emf.edit.command.CommandParameter}s - * describing all of the children that can be created under this object. - * <!-- begin-user-doc + * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children + * that can be created under this object. + * <!-- begin-user-doc * --> <!-- end-user-doc --> - * @generated - */ + * @generated + */ protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { - super.collectNewChildDescriptors(newChildDescriptors, object); - } + super.collectNewChildDescriptors(newChildDescriptors, object); + } /** * Return the resource locator for this item provider's resources. <!-- @@ -183,8 +182,8 @@ public class ActionListenerTypeItemProvider extends ItemProviderAdapter * @generated */ public ResourceLocator getResourceLocator() { - return FacesConfigPlugin.INSTANCE; - } + return FacesConfigPlugin.INSTANCE; + } /* (non-Javadoc) * @see org.eclipse.emf.edit.provider.ITableItemLabelProvider#getColumnImage(java.lang.Object, int) |