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 avatar = AvatarPlugin.getDefault().getAvatars().loadAvatarByEmail("[email protected]");
Image image = new AvatarImage(avatar).getScaledImage(32);
Avatar avatar = AvatarPlugin.getDefault().getAvatars().getAvatarByEmail("[email protected]");
Image image = new AvatarImage(avatar).getScaledImage(32);
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[] { "[email protected]" });
To build, run command
mvn clean package