WorkspaceApplication.st
changeset 4542 1881967c7262
parent 4509 ede2c88a8be4
child 4591 083328c16498
--- a/WorkspaceApplication.st	Tue Feb 11 22:21:25 2003 +0100
+++ b/WorkspaceApplication.st	Wed Feb 12 14:06:01 2003 +0100
@@ -616,6 +616,21 @@
     "
      self openSystemWorkspace
     "
+!
+
+openWith:initialText
+    "launch a new workspace with some initial contents"
+
+    |workspace|
+
+    workspace := self new.
+    workspace open.
+    workspace selectedWorkspace contents:initialText.
+    ^ workspace
+
+    "
+     WorkspaceApplication openWith:'Transcript showCR:''hello world'''
+    "
 ! !
 
 !WorkspaceApplication methodsFor:'accessing'!
@@ -1549,5 +1564,5 @@
 !WorkspaceApplication class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.56 2003-01-30 09:18:26 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.57 2003-02-12 13:06:01 cg Exp $'
 ! !