all_cache_image = new Checkbox("cache as image");
EventBus.getSystem().addListener(all_cache_image, ActionEvent.Action, new Callback<Event>() {
public void call(Event event) throws Exception {
Selection sel = ctx.getSelection();
if (sel.size() == 1) {
SNode n = sel.firstItem();
n.setBooleanProperty("com.joshondesign.amino.nodecacheimage",all_cache_image.isSelected());
}
}
});
propsPanel.add(all_cache_image);