void (ItemWrapper wrapper) { if (wrapper != null) { wrapper.updateDetailView(myDetailView); } else { myDetailView.clearEditor(); myDetailView.setPropertiesPanel(null); myDetailView.setCurrentItem(null); } }