It's all about the answers!

Ask a question

Is the needed (in general) for a Participant?

Susan Hanson (1.6k2201194) | asked Jun 13 '14, 8:50 p.m.
I have a few different Participants that I have gotten from different individuals.   Some contain an file and some do not.  This file contains a static String with a COMPONENT_ID but nothing else.

I'm not clear what these are for or if I need them.  The ones without the file works just fine ... but I have been asked about the use of the file and if they can be removed or not.


sam detweiler commented Jun 13 '14, 9:15 p.m. | edited Jun 13 '14, 9:15 p.m.

I do not use that model in any of my plugins 

One answer

permanent link
Ralph Schoon (63.2k33646) | answered Jun 16 '14, 3:30 a.m.
edited Jun 16 '14, 8:41 a.m.
Susan, as explained in the Extensions Workshop, you need to define a component.

However, the IComponentDefinitions Java file in this workshop is just an interface, that is used to provide some constants e.g. the component ID. This is not strictly necessary, but can be used e.g. creating error messages.This is strictly optimal and the class is not needed if you code your own extensions.

sam detweiler commented Jun 16 '14, 8:24 a.m.

said a different way, when defining an extension, you MUST have a component element in the plugin.xml

            <component id=""
                name="RTC File Synchronization Service Properties">

and its required attribute id= must contain a unique string value.

you CAN use a class in the bundle to provide that string value.
but this approach is not required.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.