if (logger.isDebugEnabled()) {
logger.debug("Opening component wizard '" + component.getWizardClassName() + "'");
}
ComponentWizard componentWizard = null;
try {
Class<?> componentWizardClass = Class.forName(component.getWizardClassName());
if (componentWizardClass == null) {
logger.error("Unable to open new component wizard '" + component.getWizardClassName() + "'");
Utils.openError("New Force.com Component Error",
"Unable to open new component wizard. The component for action is not supported.");
return;
}
componentWizard = (ComponentWizard) componentWizardClass.newInstance();
componentWizard.init(getWorkbench(), getStructuredSelection());
} catch (ClassNotFoundException e) {
logger.error("Unable to open new component wizard '" + component.getWizardClassName() + "'");
Utils.openError("New Force.com Component Error",
"Unable to open new component wizard. The component for action is not supported.");
return;