[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] IExtensionRegistry.addContribution


Hi Scott,
In the "default" Eclipse extension registry you can add non-persisted contributions using null token:

        addContribution(..., persist = false, ..., token = null)

but only if you start Eclipse with an option "eclipse.registry.nulltoken" set to "true".

As you can see, the existing functionality is geared towards "products" that can specify the nulltoken option in the .ini file.  We discussed extending dynamic contribution support but so far it has not made it into any plans.

Sincerely,
Oleg Besedin




Scott Lewis <slewis@xxxxxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

05/25/2007 12:14 PM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>
cc
Subject
[equinox-dev] IExtensionRegistry.addContribution





I would like to call IExtensionRegistry.addContribution to add a
contribution to the extension registry at runtime.  The addContribution
method takes an Object 'token' as its last parameter to check that the
caller is permitted to make this call.  How does a non-platform bundle
get a hold of the appropriate user token?

Thanks,

Scott

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev