void (final StringDescriptor descriptor) { myValue = descriptor; final CardLayout cardLayout = (CardLayout)myForm.myCardHolder.getLayout(); if(descriptor == null || descriptor.getValue() != null){ // trivial descriptor myForm.myRbString.setSelected(true); myForm.showStringDescriptor(descriptor); cardLayout.show(myForm.myCardHolder, CARD_STRING); } else{ // bundled property myForm.myRbResourceBundle.setSelected(true); myForm.showResourceBundleDescriptor(descriptor); cardLayout.show(myForm.myCardHolder, CARD_BUNDLE); } }