Package org.eclipse.jst.jsf.common.metadata.internal

Examples of org.eclipse.jst.jsf.common.metadata.internal.IImageDescriptorProvider


    return icon;
  }
   
  private ImageDescriptor getImageDescriptorFromString(IMetaDataSourceModelProvider sourceModelProvider,  String imgDesc, ImageDescriptor defaultValue){
    ImageDescriptor image = defaultValue;
    IImageDescriptorProvider imageProvider = (IImageDescriptorProvider)sourceModelProvider.getAdapter(IImageDescriptorProvider.class);     
    if (imageProvider != null){
      image = imageProvider.getImageDescriptor(imgDesc);
    }
    return image;
  }
View Full Code Here


    {
        dtTagConverter.setVisualByHTML(false);
        if (imagePath != null && imagePath.length() > 0)
        {
            Trait trait = dtInfo.getTrait();
            IImageDescriptorProvider imgDescProvider = (IImageDescriptorProvider) trait
                    .getSourceModelProvider().getAdapter(
                            IImageDescriptorProvider.class);
            if (imgDescProvider != null)
            {
                ImageDescriptor imageDescriptor = imgDescProvider
                        .getImageDescriptor(imagePath);
                dtTagConverter.setVisualImageDescriptor(imageDescriptor);
            }
        }
    }
View Full Code Here

      final IMetaDataSourceModelProvider sourceModelProvider, final String imgDesc,
      final ImageDescriptor defaultValue) {
   
    ImageDescriptor image = defaultValue;
    if (imgDesc != null) {
      final IImageDescriptorProvider imageProvider = (IImageDescriptorProvider) sourceModelProvider
          .getAdapter(IImageDescriptorProvider.class);
      if (imageProvider != null) {
        image = imageProvider.getImageDescriptor(imgDesc);
      }
    }
    return image;
  }
View Full Code Here

      return null;
   
    try {
      Trait t = getMetaDataContext().getTrait();
      IMetaDataSourceModelProvider provider = t.getSourceModelProvider();
      IImageDescriptorProvider ip = (IImageDescriptorProvider)provider.getAdapter(IImageDescriptorProvider.class);
      if (ip != null){
        return ip.getImageDescriptor(smallIcon);
      }
    } catch (RuntimeException e) {   
      //TODO: log error?

    }
View Full Code Here

      return null;
   
    try {
      Trait t = getMetaDataContext().getTrait();
      IMetaDataSourceModelProvider provider = t.getSourceModelProvider();
      IImageDescriptorProvider ip = (IImageDescriptorProvider)provider.getAdapter(IImageDescriptorProvider.class);
      if (ip != null){
        return ip.getImageDescriptor(smallIcon);
      }
    } catch (RuntimeException e) {   
      //TODO: log error?

    }
View Full Code Here

    return icon;
  }
   
  private ImageDescriptor getImageDescriptorFromString(IMetaDataSourceModelProvider sourceModelProvider,  String imgDesc, ImageDescriptor defaultValue){
    ImageDescriptor image = defaultValue;
    IImageDescriptorProvider imageProvider = (IImageDescriptorProvider)sourceModelProvider.getAdapter(IImageDescriptorProvider.class);     
    if (imageProvider != null){
      image = imageProvider.getImageDescriptor(imgDesc);
    }
    return image;
  }
View Full Code Here

    {
        dtTagConverter.setVisualByHTML(false);
        if (imagePath != null && imagePath.length() > 0)
        {
            Trait trait = dtInfo.getTrait();
            IImageDescriptorProvider imgDescProvider = (IImageDescriptorProvider) trait
                    .getSourceModelProvider().getAdapter(
                            IImageDescriptorProvider.class);
            if (imgDescProvider != null)
            {
                ImageDescriptor imageDescriptor = imgDescProvider
                        .getImageDescriptor(imagePath);
                dtTagConverter.setVisualImageDescriptor(imageDescriptor);
            }
        }
    }
View Full Code Here

      final IMetaDataSourceModelProvider sourceModelProvider, final String imgDesc,
      final ImageDescriptor defaultValue) {
   
    ImageDescriptor image = defaultValue;
    if (imgDesc != null) {
      final IImageDescriptorProvider imageProvider = (IImageDescriptorProvider) sourceModelProvider
          .getAdapter(IImageDescriptorProvider.class);
      if (imageProvider != null) {
        image = imageProvider.getImageDescriptor(imgDesc);
      }
    }
    return image;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.common.metadata.internal.IImageDescriptorProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.