[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: How do I know the available filter names?

funny, I just updated the docs yesterday for IActionFilter about this very
issue  ;-)

If a plugin is providing an IActionFilter implementation for their objects,
the recommendation if for the plugin to extend the IActionFilter interface
and list the attribute names (along with valid values if appropriate) that
are made public to other plugin developers. You can see this by looking at
IResourceActionFilter, IProjectActionFilter, and IMarkerActionFilter.

If you find objects that implement the IActionFilter interface but you can't
find any docs (or the extended interface to IActionFilter), open a problem
report against that component.

Simon :-)

"Tobias Müller" <TRMueller@xxxxxx> wrote in message
news:b29bfv$t7b$1@xxxxxxxxxxxxxxxx
> Hello,
>
> a little newbie question, so please don't laugh.
>
> If I contribute (objectContribution) for example a popup menu action, I
> can specify a filter (<filter name="..." value="...">), so the Platform
> will try to retrieve an IActionFilter object from the selected item and
> look if the name/value-pair is matching. (Am I right this far?)
>
> But how do I know what kind of "names" (or keys) there are available?
> IProject for example has a name "projectNature", so I can check whether
> or not the selected Project has the expected project nature. But how do
> I know there exists something like a "projectNature"-name/key?
>
> I couldn't find an answer to this (probably easy) question. Maybe you
> can help. (I hope this question is not too stupid.)
>
> Thanks!
> Tobias
>