Manuscript (Case [Issue]22236) GTools - User friendly Announcer>>#gtInspectorSubscriptionsIn: extension

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22236) GTools - User friendly Announcer>>#gtInspectorSubscriptionsIn: extension

Pharo Issue Tracker
Manuscript Notification
avatar
Enhancement in Project:  GTools: Misc  •  You are subscribed to this case
This extension has very dangerous untitled button that resets all subscriptions. It is inconvenient in particular for SystemAnnouncer uniqueInstance.

I propose:

gtInspectorSubscriptionsIn: composite
<gtInspectorPresentationOrder: 30>
composite table
title: [ 'Subscriptions' translated ];
display: [ self subscriptions glmSubscriptions ];
when: [ self numberOfSubscriptions isZero not ];
beMultiple;
column: 'Subscriber' evaluated: [ :each | each subscriber asString ];
column: 'Announcement' evaluated: [ :each | each announcementClass printString ];
column: 'Kind' evaluated: [ :each | each class name ];
addAction: (GLMGenericAction new
action: [ :table | self subscriptions reset. table update ];
iconName: #glamorousCancel;
title: 'Reset All(!)' translated;
shouldShowTitle: true);
selectionAct: [ :table |
table selection do: [ :eachSelection |
self subscriptions remove: eachSelection ].
table update ]
iconName: #glamorousCancel
entitled: 'Reset subscription(s)' translated
Priority Priority: 4 – Would be nice Status Status: Work Needed
Assigned To Assigned to: Juraj Kubelka Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker