The image for each node is acquired and then leaked. Using the outline view with the Json editor will result in SWT running out of handles eventually.
The JsonTreeNode's getImage method is where the problem occurs:
though the real problem is that the map of types-to-image should really be using an org.eclipse.jface.resource.ImageRegistry and put the ImageDescriptor, followed by getting the image from that.
static {
ImageRegistry registry = new ImageRegistry();
registry.put(JsonArrayNode.class.getName(), ImageDescriptor.createFromURL(JsonNode.getResource("/icons/JsonArray.gif")))
}
public Image getImage() {
return registry.get(jsonNode.getClass().getName());
}
Will be fixed in 0.9.8
Migrated to https://github.com/boothen/Json-Eclipse-Plugin/issues/4