SmalltalkCodeGeneratorTool.st
changeset 16903 245c704778d5
parent 16900 1bd3cf6ce330
child 16914 1e315f4ce45d
equal deleted inserted replaced
16902:cc814affa81d 16903:245c704778d5
  2561      This is used as the name of some exclusive OS-resource, which is used to find out,
  2561      This is used as the name of some exclusive OS-resource, which is used to find out,
  2562      if another instance of this application is already running.
  2562      if another instance of this application is already running.
  2563      Under win32, a mutex is used; under unix, an exclusive file in the tempDir could be used.
  2563      Under win32, a mutex is used; under unix, an exclusive file in the tempDir could be used.
  2564      If redefined, please return a real UUID (i.e. UUID fromString:''.....'') and not a string or
  2564      If redefined, please return a real UUID (i.e. UUID fromString:''.....'') and not a string or
  2565      similar possibly conflicting identifier.
  2565      similar possibly conflicting identifier.
  2566      You can paste a fresh worldwide unique id via the editor''s more-misc-paste UUID menuFunction."
  2566      You can paste a fresh worldwide unique id via the editor''s ''more''-''misc''-''paste UUID'' menu function."
  2567 
  2567 
  2568     ^ UUID fromString:''', UUID genUUID printString, '''
  2568     ^ UUID fromString:''', UUID genUUID printString, '''
  2569 '.
  2569 '.
  2570 
  2570 
  2571     "Created: / 19-08-2011 / 02:13:19 / cg"
  2571     "Created: / 19-08-2011 / 02:13:19 / cg"
  2652 'main:argv
  2652 'main:argv
  2653     "main entry; argv is the array of command arguments 
  2653     "main entry; argv is the array of command arguments 
  2654      (as array of words from space-separated command line).
  2654      (as array of words from space-separated command line).
  2655      Creates an instance of myself and calls the main: method on the instance side."
  2655      Creates an instance of myself and calls the main: method on the instance side."
  2656 
  2656 
       
  2657     "/ to check if another instance is already running (win32 only for now)
       
  2658     "/     self checkForAndExitIfAnotherApplicationInstanceIsRunning
       
  2659     "/ (which tells the running app to open a new window on the passed in document file)
       
  2660     "/ see my superclass for how this works.
       
  2661     
  2657     ^ self new main:argv
  2662     ^ self new main:argv
  2658     
  2663     
  2659     "to try from within the IDE:
  2664     "to try from within the IDE:
  2660         self main:#(''-a'' ''someArg'' ''-h'')
  2665         self main:#(''-a'' ''someArg'' ''-h'')
  2661      when deployed, start at the command line with:
  2666      when deployed, start at the command line with: