Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » REPOST: Plugin parameters
REPOST: Plugin parameters [message #168610] Wed, 10 December 2003 04:49 Go to next message
Eclipse UserFriend
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 #169715 is a reply to message #168610] Fri, 12 December 2003 10:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lists.lRuEeMbOkVeEn.com

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?
>

It's not that much of a problem.
Have a look how extensions are processed.
Get the extension, get the element, get the value.
Defining schema is just for developing help.
You don't have to use it.

matt
Re: REPOST: Plugin parameters [message #171988 is a reply to message #168610] Thu, 18 December 2003 12:21 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Upgrading from M2 to M5
Next Topic:synchronize with cvs got dramatically slow down
Goto Forum:
  


Current Time: Sat Jul 19 00:00:44 EDT 2025

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

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

Back to the top