Bug 225711 - Allow creation of custom NotificationFilter
Summary: Allow creation of custom NotificationFilter
Status: RESOLVED FIXED
Alias: None
Product: EMF Services
Classification: Modeling
Component: Transaction (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement
Target Milestone: ---   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard: Client Control
Keywords: api, noteworthy, plan
Depends on:
Blocks:
 
Reported: 2008-04-04 03:31 EDT by Sebastien Moran CLA
Modified: 2017-02-24 15:10 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastien Moran CLA 2008-04-04 03:31:26 EDT
Build ID: M20071023-1652

Steps To Reproduce:
Instanciating a ResourceSetListener allow you to filter the notifications you're interested in using NotificationFilters. 

The problem is that you only can use predefined ones. The constructor is package protected, so it is impossible to create a custom one. 

It would be nice to change the visibility of the constructor :)

More information:
Comment 1 Christian Damus CLA 2008-04-07 08:27:06 EDT
I'm thinking of something more like a new CustomNotificationFilter type that clients can extend, rather than opening up the existing class.  I'd still like to pursue the optimization/sharing of filters, which is easier when custom filters are easily identifiable.
Comment 2 Christian Damus CLA 2008-09-13 22:38:49 EDT
Added a NotificationFilter.Custom class that defines a public constructor.
Comment 3 Sebastien Moran CLA 2008-09-15 03:24:53 EDT
Great ! 

Thanks :)
Comment 4 Christian Damus CLA 2008-11-24 13:08:49 EST
Restore original target after milestones were deranged.