public static String getString(String key) { if (fgResourceBundle == null) { fgResourceBundle = getResourceBundle(); } if (fgResourceBundle != null) { try { return fgResourceBundle.getString(key); } catch (MissingResourceException e) { return "!" + key + "!";//$NON-NLS-2$//$NON-NLS-1$ } } return "!" + key + "!";//$NON-NLS-2$//$NON-NLS-1$ }
public static String getString(String key, Object[] args, int x) { return getString(key); } }
/** * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc * --> * */ public String getText(Object object) { String label = ((Description) object).getValue(); return label == null || label.length() == 0 ? CommonEditResourceHandler.getString("Description_UI_") : //$NON-NLS-1$ CommonEditResourceHandler.getString("Description_UI_") + ": " + label; //$NON-NLS-1$ //$NON-NLS-2$ }
/** * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @generated */ public String getText(Object object) { String label = ((ParamValue) object).getName(); return label == null || label.length() == 0 ? CommonEditResourceHandler.getString("_UI_ParamValue_type") : //$NON-NLS-1$ CommonEditResourceHandler.getString("_UI_ParamValue_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$ }
/** * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc * --> */ public String getText(Object object) { String md = CommonEditResourceHandler.getString("MessageDestination_UI_"); //$NON-NLS-1$ String label = ((MessageDestination) object).getName(); return label == null || label.length() == 0 ? md : md + " " + label; //$NON-NLS-1$ }
/** * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc * --> */ public String getText(Object object) { String label = ((EJBLocalRef) object).getName(); return label == null || label.length() == 0 ? CommonEditResourceHandler.getString("_UI_EJBLocalRef_type") : label; //$NON-NLS-1$ }
/** * This returns the label text for the adapted class. <!-- begin-user-doc --> <!-- end-user-doc * --> * * @generated */ public String getText(Object object) { String label = ((MessageDestinationRef) object).getName(); return CommonEditResourceHandler.getString("MessageDestinationRefItemProvider_UI_0") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$, $NON-NLS-2$ }
/** * This returns the default label for {@link com.ibm.etools.common.command.CreateChildCommand}. */ public String getCreateChildText(Object object) { //EObject refObject = (EObject)object; Collection localChildrenReferences = getChildrenReferences(object); if (localChildrenReferences.size() != 1) { return CommonEditResourceHandler.getString("Create_Child_UI_"); //$NON-NLS-1$ } return CommonEditResourceHandler.getString("18concat_UI_", (new Object[]{((EReference) localChildrenReferences.iterator().next()).getEType().getName()})); //$NON-NLS-1$ = "Create {0}" }
/** * This returns the default create children label. */ public String getCreateChildrenText(Object object) { //EObject refObject = (EObject)object; Collection localChildrenReferences = getChildrenReferences(object); if (localChildrenReferences.size() != 1) { return CommonEditResourceHandler.getString("Create_Two_Children_UI_"); //$NON-NLS-1$ } return CommonEditResourceHandler.getString("21concat", (new Object[]{((EReference) localChildrenReferences.iterator().next()).getEType().getName()})); //$NON-NLS-1$ }
/** * This returns the default create children help text. */ public String getCreateChildrenToolTipText(Object object) { EObject refObject = (EObject) object; Collection localChildrenReferences = getChildrenReferences(object); if (localChildrenReferences.size() != 1) { return CommonEditResourceHandler.getString("19concat_UI_", (new Object[]{refObject.eClass().getName()})); //$NON-NLS-1$ } return CommonEditResourceHandler.getString("20concat_UI_", (new Object[]{((EReference) localChildrenReferences.iterator().next()).getEType().getName(), refObject.eClass().getName()})); //$NON-NLS-1$ = "Create two new children of type {0} for the selected {1}." }
/** * This returns the default help text for * {@link com.ibm.etools.common.command.CreateChildCommand}. */ public String getCreateChildToolTipText(Object object) { EObject refObject = (EObject) object; Collection localChildrenReferences = getChildrenReferences(object); if (localChildrenReferences.size() != 1) { return CommonEditResourceHandler.getString("29concat", (new Object[]{refObject.eClass().getName()})); //$NON-NLS-1$ = "Create a new child for the selected {0}." } return CommonEditResourceHandler.getString("16concat_UI_", (new Object[]{((EReference) localChildrenReferences.iterator().next()).getEType().getName(), refObject.eClass().getName()})); //$NON-NLS-1$ = "Create a child of type {0} for the selected {1}." } }
/** * This adds a property descriptor for the Name feature. */ protected void addNamePropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("Name_UI_"), //$NON-NLS-1$ CommonEditResourceHandler.getString("The_name_property_UI_"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getMessageDestinationRef_Name(), true)); }
/** * This adds a property descriptor for the Link feature. */ protected void addLinkPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("Link_UI_"), //$NON-NLS-1$ CommonEditResourceHandler.getString("The_link_property_UI_"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getMessageDestinationRef_Link(), true)); }
/** * This adds a property descriptor for the Local Part feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * */ protected void addLocalPartPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("_UI_QName_localPart_feature"), //$NON-NLS-1$ CommonEditResourceHandler.getString("_UI_QName_localPart_feature_desc"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getQName_LocalPart(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
/** * This adds a property descriptor for the Small Icon feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * */ protected void addSmallIconPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("_UI_CompatibilityDescriptionGroup_smallIcon_feature"), //$NON-NLS-1$ CommonEditResourceHandler.getString("_UI_CompatibilityDescriptionGroup_smallIcon_feature_desc"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getCompatibilityDescriptionGroup_SmallIcon(), false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
/** * This adds a property descriptor for the Description feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * */ protected void addDescriptionPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("_UI_CompatibilityDescriptionGroup_description_feature"), //$NON-NLS-1$ CommonEditResourceHandler.getString("_UI_CompatibilityDescriptionGroup_description_feature_desc"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getCompatibilityDescriptionGroup_Description(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
/** * This adds a property descriptor for the Type feature. */ protected void addTypePropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("Type_UI_"), //$NON-NLS-1$ CommonEditResourceHandler.getString("The_type_property_UI_"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getMessageDestinationRef_Type(), true)); }
/** * This adds a property descriptor for the Namespace URI feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * */ protected void addNamespaceURIPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("_UI_QName_namespaceURI_feature"), //$NON-NLS-1$ CommonEditResourceHandler.getString("_UI_QName_namespaceURI_feature_desc"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getQName_NamespaceURI(), true, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }
/** * This adds a property descriptor for the Large Icon feature. <!-- begin-user-doc --> <!-- * end-user-doc --> * */ protected void addLargeIconPropertyDescriptor(Object object) { itemPropertyDescriptors.add(new ItemPropertyDescriptor(((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), CommonEditResourceHandler.getString("_UI_CompatibilityDescriptionGroup_largeIcon_feature"), //$NON-NLS-1$ CommonEditResourceHandler.getString("_UI_CompatibilityDescriptionGroup_largeIcon_feature_desc"), //$NON-NLS-1$ CommonPackage.eINSTANCE.getCompatibilityDescriptionGroup_LargeIcon(), false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE)); }