コード例 #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;
 }
コード例 #3
0
 @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);
 }