[Pydev-code] ExtensionRegistry does not recognize PythonNature code
Brought to you by:
fabioz
From: Florian S. <flo...@gm...> - 2008-08-21 05:43:54
|
Hi everyone, I am facing a very weird problem while trying to create an Eclipse fragment project that depends on the plugins org.python.pydev and org.python.pydev.core: I have a main Eclipse plugin and two fragment projects that add optional functionality to the plugin. Each of the fragments has only one source file, which adds a nature to a given IProject. The first fragment adds the C nature and the second fragment adds the Python nature (via PythonNature.addNature()). The two fragments also extend an extension point defined in the main plugin. Here's the weird part: the two fragments are almost identical (their ids are different of course) but only the C fragment is recognized at runtime as an extension of said extension point, while the Python fragment is not. I see this via Platform.getExtensionRegistry().getExtensionPoint(...).getExtensions() I believe the extension point is defined correctly in the main plugin and the two fragments also extend it correctly. The weirdest part is that when I comment out PythonNature.addNature() in the Python fragment (and I also remove the dependencies on org.python.pydev and org.python.pydev.core) the Python fragment *is* recognized by the extension registry. This leads me to believe that for some reason including code from org.python.pydev and org.python.pydev.core in an extension makes it "invalid". Can anyone help me find a way to correct this? Let me know if you need some actual code. Thanks in advance, Florian |