From c028bc42121f2469bb76c2040dfc3ee4dbaf331c Mon Sep 17 00:00:00 2001 From: "nor..67" Date: Wed, 9 Nov 2011 13:27:55 +0000 Subject: [PATCH] - add some user feedback when Custom Control classes cannot be instantiated git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8618 75d07b2b-3a1a-0410-a2c5-0572b91ccdca --- .../nodes/actions/impl/NewCustomControlWizardAction.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/NewCustomControlWizardAction.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/NewCustomControlWizardAction.java index 69b519dfd..ed1414b32 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/NewCustomControlWizardAction.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/NewCustomControlWizardAction.java @@ -111,11 +111,13 @@ public final class NewCustomControlWizardAction extends AbstractNewControlWizard } } catch (InstantiationException ex) { Exceptions.printStackTrace(ex); + DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Error instatiating class!")); } catch (IllegalAccessException ex) { Exceptions.printStackTrace(ex); + DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Error instatiating class!")); } } else { - DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Cannot find this class:\n" + className)); + DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Cannot find class:\n" + className+ "\nMake sure the name is correct, also make sure\nyour projects classes are compiled, best enable\n 'Save on Compile' in the project preferences under 'build'")); } return null; }