Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsActivity : can I use negative lookahead in a patternBinding (i.e "hide every contribution from
https://www.eclipse.org/forums/index.php/mv/msg/109623/334949/#msg_334949
activity1 - disabled by default
<!-- exclude anything from the ui.ide plugin -->
<activityPatternBinding activityId="activity1"
pattern="org\.eclipse\.ui\.ide/.*"/>
activity 2 - enabled by default, to show some selected contribution from
ui.ide:
<activityPatternBinding activityId="activity2"
pattern=" org\.eclipse\.ui\.ide/org\.eclipse\.ui\.wizards\.new\.projec t "/>
I'd rather like to have just one binding that means hide everything
except the following ...
something like :
<activityPatternBinding activityId="activity1"
pattern=" org\.eclipse\.ui\.ide/.*(?!org\.eclipse\.ui\.wizards\.new\.p roject) "/>
which isn't working for me, so I'd like to know if it just can't be made
to work ...
cheers]]>Edoardo Comar2009-03-11T15:45:51-00:00Re: Activity : can I use negative lookahead in a patternBinding (i.e "hide every contribution f
https://www.eclipse.org/forums/index.php/mv/msg/109623/334984/#msg_334984
not patch the pattern with your regex, it should work ... *if*.
Your best bet would be to put a breakpoint or conditional breakpoint in
org.eclipse.ui.internal.activities.Activity.isMatch(String) and see that
the String with the ID you care about is being matched (or not).