public PropertyPanel(ManagedObject pManagedObject, Map<Class, PropertyEditor> pEditors) {
super();
try {
managedObject = pManagedObject;
if (pEditors != null) {
PropertyEditorRegistry registry = (PropertyEditorRegistry) getEditorFactory();
for (Class key : pEditors.keySet()) {
registry.registerEditor(key, pEditors.get(key));
}
}
setMode(PropertySheet.VIEW_AS_CATEGORIES);
setSortingCategories(true);
setSortingProperties(true);