class: WorkspaceApplication
authorClaus Gittinger <cg@exept.de>
Thu, 04 Apr 2013 00:22:29 +0200
changeset 12639 6a0a5bf99236
parent 12638 8b27338f467b
child 12640 ff31bac2fd1b
class: WorkspaceApplication added: #openWith:selected:title: comment/format in: #openWith: changed: #openWith:selected:
WorkspaceApplication.st
--- a/WorkspaceApplication.st	Wed Apr 03 20:39:23 2013 +0200
+++ b/WorkspaceApplication.st	Thu Apr 04 00:22:29 2013 +0200
@@ -1924,25 +1924,48 @@
 openWith:initialText
     "launch a new workspace with some initial contents"
 
-    ^ self openWith:initialText selected:false
+    ^ self 
+        openWith:initialText 
+        selected:false
 
     "
-     WorkspaceApplication openWith:'Transcript showCR:''hello world'''
+     WorkspaceApplication 
+        openWith:'Transcript showCR:''hello world'''
     "
 !
 
 openWith:initialText selected:selectedBoolean
     "launch a new workspace with some initial contents"
 
+    ^ self openWith:initialText selected:selectedBoolean title:nil
+
+    "
+     WorkspaceApplication 
+        openWith: 'Transcript showCR:''hello world'''
+        selected: false
+
+     WorkspaceApplication 
+        openWith: 'Transcript showCR:''hello world'''
+        selected: true
+    "
+!
+
+openWith:initialText selected:selectedBoolean title:titleString
+    "launch a new workspace with some initial contents"
+
     |workspace|
 
     workspace := self new.
     workspace open.
+    titleString notNil ifTrue:[workspace setLabel:titleString].
     workspace selectedWorkspace contents:initialText selected:selectedBoolean.
     ^ workspace
 
     "
-     WorkspaceApplication openWith:'Transcript showCR:''hello world'''
+     WorkspaceApplication 
+        openWith:'Transcript showCR:''hello world''' 
+        selected:false
+        title:'hello'
     "
 !
 
@@ -4002,11 +4025,11 @@
 !WorkspaceApplication class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.238 2013-03-19 12:12:14 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.239 2013-04-03 22:22:29 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.238 2013-03-19 12:12:14 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.239 2013-04-03 22:22:29 cg Exp $'
 !
 
 version_SVN