Squeak Class Documentation category index | class index  
 
AbstractLauncher
  category: System-Support
  superclass: Object
  subclasses: CommandLineLauncherExample ProjectLauncher

The class AutoStart in combination with the Launcher classes provides a mechanism for starting Squeak from the command line or a web page. Parameters on the command line or in the embed tag in the web page a parsed and stored in the lauchner's parameter dictionary.
Subclasses can access these parameters to determine what to do.

CommandLineLauncherExample provides an example for a command line application. if you start squeak with a command line 'class Integer' it will launch a class browser on class Integer.
To enable this execute
CommandLineLauncherExample activate
before you save the image.
To disable execute
CommandLineLauncherExample deactivate

The PluginLauchner is an example how to use this framework to start Squeak as a browser plugin. It looks for a parameter 'src' which should point to a file containing a squeak script.

instance methods
  initialization
  initialize

  private
  commandLine:
determineParameterNameFrom:
includesParameter:
numericParameterAtOneOf:ifAbsent:
parameterAt:
parameterAt:ifAbsent:
parameterAtOneOf:
parameters
parameters:

  running
  startUp

class methods
  activation
  activate
deactivate

  instance creation
  new

  private
  autoStarter
extractParameters

instance methods
  initialization top  
 

initialize


  private top  
 

commandLine:

Start up this launcher from within Squeak as if it Squeak been launched the given command line.


 

determineParameterNameFrom:

Determine which of the given alternate parameter names is actually used.


 

includesParameter:

Return if the parameter named parName exists.


 

numericParameterAtOneOf:ifAbsent:

Return the parameter named using one of the alternate names or an empty string


 

parameterAt:

Return the parameter named parName or an empty string


 

parameterAt:ifAbsent:

Return the parameter named parName.
Evaluate the block if parameter does not exist.


 

parameterAtOneOf:

Return the parameter named using one of the alternate names or an empty string


 

parameters


 

parameters:


  running top  
 

startUp

A backstop for subclasses. Note that this is not a class message (most startUps are class messages).


class methods
  activation top  
 

activate

Register this launcher with the auto start class


 

deactivate

Unregister this launcher with the auto start class


  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.


  private top  
 

autoStarter


 

extractParameters