editorClass = defaultEditorClass;
}
// instantiate PropertyEditor
Class propertyEditorClass = null;
PropertyEditor editor = null;
try {
propertyEditorClass = Class.forName(editorClass);
editor = (PropertyEditor) propertyEditorClass.newInstance();
if (editor instanceof PropertyConsumer) {
((PropertyConsumer) editor).setProperties(marker, info);
}
editors.put(prop, editor);
} catch (Exception e) {
e.printStackTrace();
editorClass = null;
}
Component editorFace = null;
if (editor != null && editor.supportsCustomEditor()) {
editorFace = editor.getCustomEditor();
} else {
editorFace = new JLabel("Does not support custom editor");
}
if (editor != null) {
Object propVal = props.get(prop);
if (Debug.debugging("inspector")) {
Debug.output("Inspector loading " + prop + "(" + propVal
+ ")");
}
editor.setValue(propVal);
}
// Customized labels for each property, instead of the
// abbreviated nature of the true property names.
String labelMarker = marker + PropertyConsumer.LabelEditorProperty;