- show user dialog when class specified in CustomControl wizard is no Control
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8620 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
4dd25e370c
commit
1fa17fa99a
@ -108,6 +108,8 @@ public final class NewCustomControlWizardAction extends AbstractNewControlWizard
|
|||||||
Object contr = clazz.newInstance();
|
Object contr = clazz.newInstance();
|
||||||
if (contr instanceof Control) {
|
if (contr instanceof Control) {
|
||||||
return (Control) contr;
|
return (Control) contr;
|
||||||
|
} else {
|
||||||
|
DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("This is no Control class!"));
|
||||||
}
|
}
|
||||||
} catch (InstantiationException ex) {
|
} catch (InstantiationException ex) {
|
||||||
Exceptions.printStackTrace(ex);
|
Exceptions.printStackTrace(ex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user