Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Instatiate an inner class usign createExecutableExtension ()
Instatiate an inner class usign createExecutableExtension () [message #651120] Thu, 27 January 2011 20:48 Go to next message
Eclipse UserFriend
Originally posted by: hodaie.in.tum.de

Hi all,

in my code I am trying to instatiate a public inner class
usingcreateExecutableExtension ("class") but I get teh following
exception. Can anyone please help me about it, or a hint for how to
create an instance of an inner class referenced in an extension. Is this
possible at all?

org.eclipse.core.runtime.CoreException: Plug-in
"org.unicase.orgChart.diagram" was unable to instantiate class
" org.unicase.model.orga.diagram.part.OrgaDiagramEditor$OrgaDi agramOpener ".
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:172)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:874)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
.....
Caused by: java.lang.InstantiationException:
org.unicase.model.orga.diagram.part.OrgaDiagramEditor$OrgaDi agramOpener
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)

Thanks in advance,
Zardosht
Re: Instatiate an inner class usign createExecutableExtension () [message #651139 is a reply to message #651120] Thu, 27 January 2011 22:39 Go to previous message
Eclipse UserFriend
Originally posted by: hodaie.in.tum.de

I solved it. The inner class should be static.


Am 27.01.2011 21:48, schrieb Zardosht Hodaie:
> Hi all,
>
> in my code I am trying to instatiate a public inner class
> usingcreateExecutableExtension ("class") but I get teh following
> exception. Can anyone please help me about it, or a hint for how to
> create an instance of an inner class referenced in an extension. Is this
> possible at all?
>
> org.eclipse.core.runtime.CoreException: Plug-in
> "org.unicase.orgChart.diagram" was unable to instantiate class
> " org.unicase.model.orga.diagram.part.OrgaDiagramEditor$OrgaDi agramOpener ".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:172)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:874)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> ....
> Caused by: java.lang.InstantiationException:
> org.unicase.model.orga.diagram.part.OrgaDiagramEditor$OrgaDi agramOpener
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
>
> Thanks in advance,
> Zardosht
>
Previous Topic:Integration of Findbugs into PDE build
Next Topic:How to programmatically customize perspective
Goto Forum:
  


Current Time: Thu Apr 25 02:14:59 GMT 2024

Powered by FUDForum. Page generated in 0.03243 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top