MIMETypes.st
changeset 4388 20e3d76cf3aa
parent 4279 0c07b6f38d45
child 4389 8e185bcef3dd
equal deleted inserted replaced
4387:d4bd95e7f814 4388:20e3d76cf3aa
       
     1 "{ Encoding: utf8 }"
       
     2 
     1 "
     3 "
     2  COPYRIGHT (c) 1997 by eXept Software AG 
     4  COPYRIGHT (c) 1997 by eXept Software AG 
     3 	      All Rights Reserved
     5 	      All Rights Reserved
     4 
     6 
     5  This software is furnished under a license and may be used
     7  This software is furnished under a license and may be used
  1564      MIMETypes commentStringsForMimeType:mime suffix:nil.
  1566      MIMETypes commentStringsForMimeType:mime suffix:nil.
  1565     "
  1567     "
  1566 !
  1568 !
  1567 
  1569 
  1568 parenthesisSpecForFilename:aFilename
  1570 parenthesisSpecForFilename:aFilename
  1569     "return a useful parentesis spec; heuristics for now.
  1571     "return a useful parentheses spec; heuristics for now.
  1570      The returned value is a dictionary to be used as parentesis spec in an editor"
  1572      The returned value is a dictionary to be used as parentheses spec in an editor"
  1571 
  1573 
  1572      |mime|
  1574      |mime|
  1573 
  1575 
  1574      mime := MIMETypes mimeTypeForFilename:aFilename.
  1576      mime := MIMETypes mimeTypeForFilename:aFilename.
  1575      ^ self parenthesisSpecForMimeType:mime suffix:(aFilename asFilename suffix)
  1577      ^ self parenthesisSpecForMimeType:mime suffix:(aFilename asFilename suffix)