Author: bobtarling Date: 2010-11-20 07:31:34-0800 New Revision: 18849 Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java
Log: If a panel configuration is not found then log an error and also display what was not found to the panel - exception is no longer thrown Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java?view=diff&pathrev=18849&r1=18848&r2=18849 ============================================================================== --- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java (original) +++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/ui/SwingUIFactory.java 2010-11-20 07:31:34-0800 @@ -87,7 +87,13 @@ PanelData panelData = XMLPropPanelFactory.getInstance().getPropertyPanelsData( target.getClass()); - + + if (panelData == null) { + panel.add(new JLabel("There is no panel configured for " + target.getClass())); + LOG.error("No panel found for " + target.getClass()); + return; + } + createLabel(target, panelData, panel); for (ControlData prop : panelData.getProperties()) { ------------------------------------------------------ http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2683882 To unsubscribe from this discussion, e-mail: [[email protected]].
