Skip to content
This repository was archived by the owner on Jul 3, 2026. It is now read-only.

b2ihealthcare/eclipse-avatar

Repository files navigation

📢 We've Moved

B2i Healthcare is now part of IQVIA, and our open-source projects have a new home within the IQVIA GitHub organization.

👉 Please visit: https://github.com/iqvia-hds-oss/eclipse-avatar

This repository is no longer actively maintained here and is being kept available for historical reference. For the latest source code, releases, issue tracking, and ongoing development, please use the corresponding repository in our new organization.

We'd be delighted to see you there and appreciate your continued interest in our work!


Eclipse Gravatar Plug-in

Forked from: https://github.com/kevinsawicki/eclipse-avatar

This is a plug-in to add Gravatar support to Eclipse.

The org.avatar.github plug-in contains a persistent store of fetched Gravatar images that can be used directly to get Image/ImageData instances for a specific hash or e-mail address.

This plug-in also contains LabelProvider and WorkbenchAdapter classes that provide images for objects that can provide a hash.

Avatar Example

Fetching an avatar from the plug-in store

Avatar avatar = AvatarPlugin.getDefault().getAvatars().loadAvatarByEmail("name@example.com");
Image image = new AvatarImage(avatar).getScaledImage(32);

Getting a cached avatar from the plug-in store

Avatar avatar = AvatarPlugin.getDefault().getAvatars().getAvatarByEmail("name@example.com");
Image image =  new AvatarImage(avatar).getScaledImage(32);

Creating a table viewer with Gravatar images

TableViewer viewer = new TableViewer(parent, SWT.H_SCROLL | SWT.V_SCROLL);
viewer.setContentProvider(new ArrayContentProvider());
viewer.setLabelProvider(new AvatarLabelProvider(viewer));
//Replace with a valid e-mail address
viewer.setInput(new Object[] { "name@example.com" });

Build and Release

To build, run command

	mvn clean package

Other

Eclipse Public License

About

Eclipse Gravatar Plug-in

Resources

License

Stars

1 star

Watchers

7 watching

Forks

Packages

 
 
 

Contributors

Languages