Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/SmallIconTypeItemProvider.java')
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/SmallIconTypeItemProvider.java198
1 files changed, 99 insertions, 99 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/SmallIconTypeItemProvider.java b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/SmallIconTypeItemProvider.java
index a0a68d01c..3972ae616 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/SmallIconTypeItemProvider.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.facesconfig/facesconfig/org/eclipse/jst/jsf/facesconfig/edit/provider/SmallIconTypeItemProvider.java
@@ -28,7 +28,6 @@ import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.emf.edit.provider.ItemProviderAdapter;
import org.eclipse.emf.edit.provider.ViewerNotification;
import org.eclipse.jst.jsf.facesconfig.FacesConfigPlugin;
-
import org.eclipse.jst.jsf.facesconfig.emf.FacesConfigPackage;
import org.eclipse.jst.jsf.facesconfig.emf.SmallIconType;
@@ -38,6 +37,7 @@ import org.eclipse.jst.jsf.facesconfig.emf.SmallIconType;
* <!-- end-user-doc -->
* @generated
*/
+@SuppressWarnings("nls")
public class SmallIconTypeItemProvider
extends ItemProviderAdapter
implements
@@ -47,146 +47,146 @@ public class SmallIconTypeItemProvider
IItemLabelProvider,
IItemPropertySource {
/**
- * <!-- begin-user-doc -->
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @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.
- * <!-- begin-user-doc -->
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
* @param adapterFactory
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public SmallIconTypeItemProvider(AdapterFactory adapterFactory) {
- super(adapterFactory);
- }
+ super(adapterFactory);
+ }
/**
- * This returns the property descriptors for the adapted class.
- * <!-- begin-user-doc -->
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @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.
- * <!-- begin-user-doc -->
+ * This adds a property descriptor for the Text Content feature.
+ * <!-- begin-user-doc -->
* @param object
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected void addTextContentPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmallIconType_textContent_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_SmallIconType_textContent_feature", "_UI_SmallIconType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- FacesConfigPackage.Literals.SMALL_ICON_TYPE__TEXT_CONTENT,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_SmallIconType_textContent_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_SmallIconType_textContent_feature", "_UI_SmallIconType_type"),
+ FacesConfigPackage.Literals.SMALL_ICON_TYPE__TEXT_CONTENT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
/**
- * This adds a property descriptor for the Id feature.
- * <!-- begin-user-doc -->
+ * This adds a property descriptor for the Id feature.
+ * <!-- begin-user-doc -->
* @param object
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
protected void addIdPropertyDescriptor(Object object) {
- itemPropertyDescriptors.add
- (createItemPropertyDescriptor
- (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
- getResourceLocator(),
- getString("_UI_SmallIconType_id_feature"), //$NON-NLS-1$
- getString("_UI_PropertyDescriptor_description", "_UI_SmallIconType_id_feature", "_UI_SmallIconType_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
- FacesConfigPackage.Literals.SMALL_ICON_TYPE__ID,
- true,
- false,
- false,
- ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
- null,
- null));
- }
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_SmallIconType_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_SmallIconType_id_feature", "_UI_SmallIconType_type"),
+ FacesConfigPackage.Literals.SMALL_ICON_TYPE__ID,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
/**
- * This returns SmallIconType.gif.
- * <!-- begin-user-doc -->
+ * This returns SmallIconType.gif.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public Object getImage(Object object) {
- return overlayImage(object, getResourceLocator().getImage("full/obj16/SmallIconType")); //$NON-NLS-1$
- }
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/SmallIconType"));
+ }
/**
- * 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 = ((SmallIconType)object).getId();
- return label == null || label.length() == 0 ?
- getString("_UI_SmallIconType_type") : //$NON-NLS-1$
- getString("_UI_SmallIconType_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
- }
+ String label = ((SmallIconType)object).getId();
+ return label == null || label.length() == 0 ?
+ getString("_UI_SmallIconType_type") :
+ getString("_UI_SmallIconType_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(SmallIconType.class)) {
- case FacesConfigPackage.SMALL_ICON_TYPE__TEXT_CONTENT:
- case FacesConfigPackage.SMALL_ICON_TYPE__ID:
- fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
- return;
- }
- super.notifyChanged(notification);
- }
+ switch (notification.getFeatureID(SmallIconType.class)) {
+ case FacesConfigPackage.SMALL_ICON_TYPE__TEXT_CONTENT:
+ case FacesConfigPackage.SMALL_ICON_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.
- * <!-- begin-user-doc -->
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- * @generated
- */
+ * @generated
+ */
public ResourceLocator getResourceLocator() {
- return FacesConfigPlugin.INSTANCE;
- }
+ return FacesConfigPlugin.INSTANCE;
+ }
}

Back to the top