X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.eclipse.ui.workbench%2Fsrc%2Forg%2Fargeo%2Feclipse%2Fspring%2FSpringExtensionFactory.java;h=6a56266252dc82b68ac8aef39f90faae56b4c87a;hb=3a0d866fbeea3f78c293212f4b4fbaeba7dfe2bd;hp=7a0486fd265470317a766a897f3ee8f8a73d553e;hpb=ebc46b310bf1f44c4acbeae3d2ab8c1aeaef5eb5;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/spring/SpringExtensionFactory.java b/org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/spring/SpringExtensionFactory.java index 7a0486fd2..6a5626625 100644 --- a/org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/spring/SpringExtensionFactory.java +++ b/org.argeo.eclipse.ui.workbench/src/org/argeo/eclipse/spring/SpringExtensionFactory.java @@ -15,7 +15,7 @@ */ package org.argeo.eclipse.spring; -import org.argeo.ArgeoException; +import org.argeo.eclipse.ui.EclipseUiException; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IConfigurationElement; import org.eclipse.core.runtime.IExecutableExtension; @@ -55,7 +55,7 @@ public class SpringExtensionFactory implements IExecutableExtensionFactory, public Object create() throws CoreException { if (bean == null) - throw new ArgeoException("No underlying bean for extension"); + throw new EclipseUiException("No underlying bean for extension"); return bean; } @@ -65,13 +65,13 @@ public class SpringExtensionFactory implements IExecutableExtensionFactory, ApplicationContext applicationContext = ApplicationContextTracker .getApplicationContext(bundleSymbolicName); if (applicationContext == null) - throw new ArgeoException( + throw new EclipseUiException( "Cannot find application context for bundle " + bundleSymbolicName); String beanName = getBeanName(data, config); if (beanName == null) - throw new ArgeoException("Cannot find bean name for extension " + throw new EclipseUiException("Cannot find bean name for extension " + config); if (!applicationContext.containsBean(beanName)) { @@ -80,7 +80,7 @@ public class SpringExtensionFactory implements IExecutableExtensionFactory, } if (!applicationContext.containsBean(beanName)) - throw new ArgeoException("No bean with name '" + beanName + "'"); + throw new EclipseUiException("No bean with name '" + beanName + "'"); this.bean = applicationContext.getBean(beanName); if (this.bean instanceof IExecutableExtension) {