--- a/MIMETypes.st Fri Mar 03 14:20:28 2006 +0100
+++ b/MIMETypes.st Fri Mar 03 14:20:47 2006 +0100
@@ -515,47 +515,6 @@
!MIMETypes class methodsFor:'queries'!
-defaultCommandForMimeType:mimeType
- self obsoleteMethodWarning:'use #defaultCommandTemplateToOpenMimeType:'.
-
- ^ self defaultCommandTemplateToOpenMimeType:mimeType
-
- "
- MIMETypes defaultCommandForMimeType:'application/pdf'
- "
-
- "Created: / 12-05-2004 / 11:09:22 / cg"
- "Modified: / 12-05-2004 / 11:16:53 / cg"
-!
-
-defaultCommandPerMIME
- "returns the collection which is used to map MIME-type to command-templates."
-
- "TODO: move this to OS/UserPreferences"
-
- DefaultCommandPerMIMEPerOS isNil ifTrue:[
- self initializeDefaultCommands
- ].
- OperatingSystem isUNIXlike ifTrue:[
- ^ DefaultCommandPerMIMEPerOS at:#unix
- ].
- ^ DefaultCommandPerMIMEPerOS at:#win32
-!
-
-defaultPrintCommandPerMIME
- "returns the collection which is used to map MIME-type to printing command-templates."
-
- "TODO: move this to OS/UserPreferences"
-
- DefaultPrintCommandPerMIMEPerOS isNil ifTrue:[
- self initializeDefaultCommands
- ].
- OperatingSystem isUNIXlike ifTrue:[
- ^ DefaultPrintCommandPerMIMEPerOS at:#unix
- ].
- ^ DefaultPrintCommandPerMIMEPerOS at:#win32
-!
-
defineImageType:mimeType suffix:aSuffix reader:aReaderClass
"register an image reader."
@@ -753,6 +712,33 @@
!MIMETypes class methodsFor:'queries-applications'!
+defaultCommandForMimeType:mimeType
+ self obsoleteMethodWarning:'use #defaultCommandTemplateToOpenMimeType:'.
+
+ ^ self defaultCommandTemplateToOpenMimeType:mimeType
+
+ "
+ MIMETypes defaultCommandForMimeType:'application/pdf'
+ "
+
+ "Created: / 12-05-2004 / 11:09:22 / cg"
+ "Modified: / 12-05-2004 / 11:16:53 / cg"
+!
+
+defaultCommandPerMIME
+ "returns the collection which is used to map MIME-type to command-templates."
+
+ "TODO: move this to OS/UserPreferences"
+
+ DefaultCommandPerMIMEPerOS isNil ifTrue:[
+ self initializeDefaultCommands
+ ].
+ OperatingSystem isUNIXlike ifTrue:[
+ ^ DefaultCommandPerMIMEPerOS at:#unix
+ ].
+ ^ DefaultCommandPerMIMEPerOS at:#win32
+!
+
defaultCommandTemplateToOpenMimeType:mimeType
|cmd|
@@ -786,6 +772,20 @@
"
MIMETypes defaultCommandTemplateToPrintMimeType:'application/pdf'
"
+!
+
+defaultPrintCommandPerMIME
+ "returns the collection which is used to map MIME-type to printing command-templates."
+
+ "TODO: move this to OS/UserPreferences"
+
+ DefaultPrintCommandPerMIMEPerOS isNil ifTrue:[
+ self initializeDefaultCommands
+ ].
+ OperatingSystem isUNIXlike ifTrue:[
+ ^ DefaultPrintCommandPerMIMEPerOS at:#unix
+ ].
+ ^ DefaultPrintCommandPerMIMEPerOS at:#win32
! !
!MIMETypes class methodsFor:'queries-image formats'!
@@ -1050,7 +1050,7 @@
!MIMETypes class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview2/MIMETypes.st,v 1.83 2006-03-03 13:20:28 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview2/MIMETypes.st,v 1.84 2006-03-03 13:20:47 cg Exp $'
! !
MIMETypes initialize!