StringDescriptor (final String propName) { if (propName.equals(TAB_TITLE_PROPERTY)) { return myTitle; } if (propName.equals(TAB_TOOLTIP_PROPERTY)) { return myToolTip; } throw new IllegalArgumentException("Unknown property name " + propName); }