示例#1
0
 /*
  * (non-Javadoc) Method declared on IPropertySheetEntry.
  */
 public Image getImage() {
   ILabelProvider provider = descriptor.getLabelProvider();
   if (provider == null) {
     return null;
   }
   return provider.getImage(editValue);
 }
示例#2
0
 /*
  * (non-Javadoc) Method declared on IPropertySheetEntry.
  */
 public String getValueAsString() {
   if (editValue == null) {
     return ""; //$NON-NLS-1$
   }
   ILabelProvider provider = descriptor.getLabelProvider();
   if (provider == null) {
     return editValue.toString();
   }
   String text = provider.getText(editValue);
   if (text == null) {
     return ""; //$NON-NLS-1$
   }
   return text;
 }
 @Override
 public ILabelProvider getLabelProvider() {
   return mDelegate.getLabelProvider();
 }
示例#4
0
 public String getValueAsString() {
   if (editValue == null) return ""; // $NON-NLS-1$
   ILabelProvider provider = descriptor.getLabelProvider();
   if (provider == null) return editValue.toString();
   return provider.getText(editValue);
 }