Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
SimpleServiceEntry
Last updated at 1:25 am UTC on 27 March 2017
subclass of Model

 Model subclass: #SimpleServiceEntry
	instanceVariableNames: 'provider label selector useLineAfter stateSelector description argumentGetter buttonLabel'
	classVariableNames: ''
	poolDictionaries: ''
	category: 'System-FileRegistry'

Class comment

I represent a service

provider : the service provider
label : to be display in a menu
selector : to do the service
useLineAfter
stateSelector : a secondary selector (to be able to query state of the provider for example)
description : a description for balloon for example

To get a list of all service providers type
 fileReaderServicesForFile:suffix:
into a Workspace; put the cursor into the selector and hit ALT-M.

After you have added a new service you have to do

 FileServices initialize