REPOST: Plugin parameters [message #168610] |
Wed, 10 December 2003 04:49  |
Eclipse User |
|
|
|
Hi,
I posted the following message, but received no replies. I thought I
would give it one more go before going down the extension point route:
I have a requirement to pass a parameter (a single integer) to my plugin
when it is created. I would like to do this via the plugin's manifest
file. The research I have done suggests that I could probably achieve
this by defining extension points for the plugin. Doing this seems a
little bit of an overkill for what I want to achieve (defining the schema
and so forth). Is there an easier way?
Thanks.
James
|
|
|
|
Re: REPOST: Plugin parameters [message #171988 is a reply to message #168610] |
Thu, 18 December 2003 12:21  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
To clarify, you want to pass an integer to your plug-in that is
hard-coded in your plugin.xml file? I assume your plug-in defines
extensions... if any of these are executable extensions (specifying a
class name), then you can add parameters to the extension. See the
javadoc of IExecutableExtension for more details.
And to confirm the answer from Matthias, you don't need a schema for an
extension point. The following is a complete, valid extension point
declaration:
<extension-point name="Foo" id="bar"/>
--
James Willans wrote:
> Hi,
>
> I posted the following message, but received no replies. I thought I
> would give it one more go before going down the extension point route:
>
> I have a requirement to pass a parameter (a single integer) to my plugin
> when it is created. I would like to do this via the plugin's manifest
> file. The research I have done suggests that I could probably achieve
> this by defining extension points for the plugin. Doing this seems a
> little bit of an overkill for what I want to achieve (defining the schema
> and so forth). Is there an easier way?
>
> Thanks.
>
> James
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.19269 seconds