- don't try to import models to projects without ProjectAssetManager.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9813 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2012-10-03 01:31:17 +00:00
parent 8349783b6f
commit 5e4fc894e6

View File

@ -72,6 +72,9 @@ public final class ImportModel implements ActionListener {
return;
}
}
if (context.getLookup().lookup(ProjectAssetManager.class) == null) {
return;
}
final WizardDescriptor wiz = new WizardDescriptor(getPanels());
// {0} will be replaced by WizardDesriptor.Panel.getComponent().getName()
wiz.setTitleFormat(new MessageFormat("{0}"));