[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: R09 Question on nameFilter in popupMenus
|
Soonthorn,
Unfortunately the nameFilter does not currently support OR-style combination
of patterns.
I've filed a problem report for this.
As a workaround, you could define separate objectContribution's for *.1 and
*.2.
The spec for nameFilter says that the contribution will not appear if the
pattern does not match, so the action should show up at most once.
Nick
"Soonthorn Ativanichayaphong" <soonthor@xxxxxxxxxx> wrote in message
news:9lrck1$3cm$1@xxxxxxxxxxxxxxxx
> Hi,
>
> How can we filter multiple file extensions in popupMenus?
> For example,
> ..
> .
> <extension point="org.eclipse.ui.popupMenus">
> <objectContribution
> id="com.ibm.voicetools.grammar.menu"
> objectClass="org.eclipse.core.resources.IFile"
> nameFilter="*.1 , *.2">
> <action
> id="com.ibm.testtool"
> label="%popupMenus.label"
> ..
> .
>
> I've already tried " *.1 *.2" and "*.1;*.2". It doesn't seem to work.
> Note: I'm using R09 version of Eclipse.
>
> Thanks,
> Soonthorn A.
>
>
>