How to access the PluginBase [message #637008] |
Wed, 03 November 2010 18:19 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
Hello,
I generate a little bit of code. My problem now is that I'm not able to
add several plugin dependencies to the plugin.xml of the plugin into
which I generate the code. I found the following link:
http://dev.eclipse.org/mhonarc/lists/pde-ui-dev/msg00090.htm l and the
following snippet:
IPluginBase plugin = model.getPluginBase();
IPluginModelFactory factory = model.getFactory();
IPluginImport importEntries = factory.createImport();
importEntries.setId("org.eclipse.emf.ecore");
plugin.add(importEntries);
My problem now is that I don't know how to get such a 'model'. If I
could do this this would do the trick. What I have is the IProject and
the corresponding IJavaProject. But how do I get the IPluginBase for my
project?
|
|
|
Re: How to access the PluginBase [message #637054 is a reply to message #637008] |
Wed, 03 November 2010 22:57 |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
I explored the code a little bit. It's a pitty that all of the
interesting classes from the PDE are internals. So e.g. the class
NewProjectCreationOperation is interesting: the method
createManifest(IProject project) creates the manifest file with help of
static methods of PDEProject. Another class I would like to look into
the sources is WorkspaceBundlePluginModel. But it's not possible. So why
did you declare those classes as internals and why isn't it possible to
look into the sources of the interesting ones?
Gilbert Mirenque wrote:
> Hello,
> I generate a little bit of code. My problem now is that I'm not able to
> add several plugin dependencies to the plugin.xml of the plugin into
> which I generate the code. I found the following link:
>
> http://dev.eclipse.org/mhonarc/lists/pde-ui-dev/msg00090.htm l and the
> following snippet:
>
> IPluginBase plugin = model.getPluginBase();
> IPluginModelFactory factory = model.getFactory();
> IPluginImport importEntries = factory.createImport();
> importEntries.setId("org.eclipse.emf.ecore");
> plugin.add(importEntries);
>
> My problem now is that I don't know how to get such a 'model'. If I
> could do this this would do the trick. What I have is the IProject and
> the corresponding IJavaProject. But how do I get the IPluginBase for my
> project?
|
|
|
|
Powered by
FUDForum. Page generated in 0.01374 seconds