AbstractOperatingSystem.st
changeset 13107 1bfbec80d8e3
parent 12971 8aa39c96e885
child 13111 26b9ff898bc6
equal deleted inserted replaced
13106:f2f4b6db778c 13107:1bfbec80d8e3
   587     "Smalltalk notifies us about changes"
   587     "Smalltalk notifies us about changes"
   588 
   588 
   589     ((something == #Language) or:[something == #LanguageTerritory]) ifTrue:[
   589     ((something == #Language) or:[something == #LanguageTerritory]) ifTrue:[
   590         self initResources
   590         self initResources
   591     ]
   591     ]
       
   592 ! !
       
   593 
       
   594 !AbstractOperatingSystem class methodsFor:'dummy shell operations'!
       
   595 
       
   596 openApplicationForDocument:aFilenameOrString operation:operationSymbol
       
   597     "open a windows-shell application to present the document contained in aFilenameOrString.
       
   598      This looks for the files extension, and is typically used to present help-files,
       
   599      html documents, pdf documents etc.
       
   600      operationSymbol is one of:
       
   601         open
       
   602         edit"
       
   603 
       
   604     "/ use a fileBrowser
       
   605     UserPreferences current fileBrowserClass openOn:aFilenameOrString
       
   606 
       
   607     "
       
   608      self openApplicationForDocument: Filename currentDirectory operation:#open
       
   609      self openApplicationForDocument: '..\..\doc\books\ArtOfSmalltalk\artMissing186187Fix1.pdf' asFilename operation:#open
       
   610 
       
   611      self openApplicationForDocument: 'C:\WINDOWS\Help\clipbrd.chm' asFilename operation:#open
       
   612     "
       
   613 
       
   614     "Created: / 29-10-2010 / 12:16:38 / cg"
   592 ! !
   615 ! !
   593 
   616 
   594 !AbstractOperatingSystem class methodsFor:'error messages'!
   617 !AbstractOperatingSystem class methodsFor:'error messages'!
   595 
   618 
   596 clearLastErrorNumber
   619 clearLastErrorNumber
  6951 ! !
  6974 ! !
  6952 
  6975 
  6953 !AbstractOperatingSystem class methodsFor:'documentation'!
  6976 !AbstractOperatingSystem class methodsFor:'documentation'!
  6954 
  6977 
  6955 version
  6978 version
  6956     ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.199 2010-07-29 10:14:05 sr Exp $'
  6979     ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.200 2010-10-29 10:17:02 cg Exp $'
  6957 !
  6980 !
  6958 
  6981 
  6959 version_CVS
  6982 version_CVS
  6960     ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.199 2010-07-29 10:14:05 sr Exp $'
  6983     ^ '$Header: /cvs/stx/stx/libbasic/AbstractOperatingSystem.st,v 1.200 2010-10-29 10:17:02 cg Exp $'
  6961 ! !
  6984 ! !
  6962 
  6985 
  6963 AbstractOperatingSystem initialize!
  6986 AbstractOperatingSystem initialize!