Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Reading info from plugin.xml
Reading info from plugin.xml [message #93313] Wed, 11 February 2009 14:37 Go to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------060006030005040401010107
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi all,

I was wondering if there is any API to read from a given plugin.xml and
get information on the extended extension points. I cannot use the
extension registry for this since the plugin.xml I am trying to retrieve
information from is in one of the workspace's plugins, not an installed one.

I did find PluginModel, IPluginModelBase, IPluginModel ... but all these
are either deprecated or internal. Is there no public API for such
needs? Re-writing a parser for this seems overkill to me.

Laurent Goubet
Obeo

--------------060006030005040401010107
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr/">Obeo</a>
email;internet:laurent.goubet@obeo.fr
url:http://www.obeo.fr
version:2.1
end:vcard


--------------060006030005040401010107--
Re: Reading info from plugin.xml [message #93591 is a reply to message #93313] Thu, 12 February 2009 22:46 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
laurent Goubet wrote:
> Hi all,
>
> I was wondering if there is any API to read from a given plugin.xml and
> get information on the extended extension points. I cannot use the
> extension registry for this since the plugin.xml I am trying to retrieve
> information from is in one of the workspace's plugins, not an installed
> one.
>
> I did find PluginModel, IPluginModelBase, IPluginModel ... but all these
> are either deprecated or internal. Is there no public API for such
> needs? Re-writing a parser for this seems overkill to me.

How about using the PluginRegistry API from PDE:

org.eclipse.pde.core.plugin.PluginRegistry

You should eventually be able to get an IExtensions or IExtension for
your model.

Let me know if you need more help.

Cheers,

~ Chris
Re: Reading info from plugin.xml [message #93736 is a reply to message #93591] Fri, 13 February 2009 14:26 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------080700020108010504020408
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Thanks Chris, this seems to be exactly what I was searching for. I
didn't find the actual entry point to all of this API :).

A little off subject but since I see this I might also get the info :
does this provide a way to get a default class loader for the plugins of
the workspace without launching a second runtime? Could be awesome to
test classes currently in development (might prove a little error-prone
but ... :)).

Laurent Goubet
Obeo

Chris Aniszczyk a
Re: Reading info from plugin.xml [message #93750 is a reply to message #93736] Fri, 13 February 2009 18:09 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
laurent Goubet wrote:
> A little off subject but since I see this I might also get the info :
> does this provide a way to get a default class loader for the plugins of
> the workspace without launching a second runtime? Could be awesome to
> test classes currently in development (might prove a little error-prone
> but ... :)).

So, as of Eclipse 3.5M4, we support exporting plug-ins from the
workspace in the current host:

http://download.eclipse.org/eclipse/downloads/drops/S-3.5M4- 200812111908/eclipse-news-M4.html#PDE

See, "Single-click export and install into running platform"

Cheers,

--
Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/caniszczyk | http://twitter.com/eclipsesource
Re: Reading info from plugin.xml [message #93763 is a reply to message #93750] Fri, 13 February 2009 18:09 Go to previous messageGo to next message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Chris Aniszczyk wrote:
> So, as of Eclipse 3.5M4, we support exporting plug-ins from the
> workspace in the current host:

Err, that would be Eclipse 3.5M3

http://download.eclipse.org/eclipse/downloads/drops/S-3.5M3- 200810301917/eclipse-news-M3.html#PDE
Re: Reading info from plugin.xml [message #93821 is a reply to message #93763] Mon, 16 February 2009 13:20 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020407060104020801060002
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Thanks Chris, I'll definitely have a look into this, seems like a great
feature :). A shame it only appeared in 3.5 though :(

Chris Aniszczyk a
Previous Topic:problems with breakpoints in xdebug in PDT2
Next Topic:Find / Replace dialog as tab?
Goto Forum:
  


Current Time: Wed Apr 24 23:15:20 GMT 2024

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

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

Back to the top