Object obj = ComponentFactory.create(loaderClassString,
loaderPropertyPrefix,
props);
if (obj != null && obj instanceof EditToolLoader) {
EditToolLoader loader = (EditToolLoader) obj;
if (Debug.debugging("editortool")) {
Debug.output("DrawingEditorTool: adding "
+ loaderClassString);
}
addEditToolLoader(loader);
if (loaderAttributeClass != null) {
if (Debug.debugging("editortool")) {
Debug.output("DrawingEditorTool: getting attributes for "
+ loaderAttributeClass);
}
Object daObject = ComponentFactory.create(loaderAttributeClass,
loaderPropertyPrefix,
props);
if (daObject != null
&& daObject instanceof DrawingAttributes) {
if (Debug.debugging("editortool")) {
Debug.output("DrawingEditorTool: attributes from "
+ loaderAttributeClass);
}
String[] classnames = loader.getEditableClasses();
for (int i = 0; i < classnames.length; i++) {
drawingAttributesTable.put(classnames[i],
daObject);
}