WorkspaceApplication.st
branchjv
changeset 12401 4714b9640528
parent 12308 5d9291c0fc27
parent 12340 8332590c5a41
child 12406 1fbd331e4489
equal deleted inserted replaced
12330:235b77901045 12401:4714b9640528
    46     [author:]
    46     [author:]
    47 	Claus Gittinger
    47 	Claus Gittinger
    48 "
    48 "
    49 ! !
    49 ! !
    50 
    50 
       
    51 
    51 !WorkspaceApplication class methodsFor:'defaults'!
    52 !WorkspaceApplication class methodsFor:'defaults'!
    52 
    53 
    53 defaultEditToolbarVisible
    54 defaultEditToolbarVisible
    54     ^ UserPreferences current editToolbarVisibleInWorkspace
    55     ^ UserPreferences current editToolbarVisibleInWorkspace
    55 
    56 
    98 
    99 
    99 webServiceLinkName
   100 webServiceLinkName
   100     ^ '/workspace'
   101     ^ '/workspace'
   101 ! !
   102 ! !
   102 
   103 
       
   104 
   103 !WorkspaceApplication class methodsFor:'help specs'!
   105 !WorkspaceApplication class methodsFor:'help specs'!
   104 
   106 
   105 flyByHelpSpec
   107 flyByHelpSpec
   106     <resource: #help>
   108     <resource: #help>
   107 
   109 
   141 'Ask for a file and save the page''s contents there'
   143 'Ask for a file and save the page''s contents there'
   142 )
   144 )
   143 
   145 
   144     "Modified: / 08-07-2011 / 08:29:51 / cg"
   146     "Modified: / 08-07-2011 / 08:29:51 / cg"
   145 ! !
   147 ! !
       
   148 
   146 
   149 
   147 !WorkspaceApplication class methodsFor:'interface specs'!
   150 !WorkspaceApplication class methodsFor:'interface specs'!
   148 
   151 
   149 manageSnipletsDialogSpec
   152 manageSnipletsDialogSpec
   150     "This resource specification was automatically generated
   153     "This resource specification was automatically generated
   420 	      name: 'infoBarSubSpec'
   423 	      name: 'infoBarSubSpec'
   421 	      layout: (LayoutFrame 0 0.0 -26 1 0 1.0 0 1.0)
   424 	      layout: (LayoutFrame 0 0.0 -26 1 0 1.0 0 1.0)
   422 	      visibilityChannel: infoVisibleHolder
   425 	      visibilityChannel: infoVisibleHolder
   423 	      majorKey: WorkspaceApplication
   426 	      majorKey: WorkspaceApplication
   424 	      minorKey: windowSpecForInfoBar
   427 	      minorKey: windowSpecForInfoBar
       
   428               keepSpaceForOSXResizeHandleH: true
   425 	    )
   429 	    )
   426 	   )
   430 	   )
   427 
   431 
   428 	)
   432 	)
   429       )
   433       )
   516 
   520 
   517 	)
   521 	)
   518       )
   522       )
   519 ! !
   523 ! !
   520 
   524 
       
   525 
   521 !WorkspaceApplication class methodsFor:'menu specs'!
   526 !WorkspaceApplication class methodsFor:'menu specs'!
   522 
   527 
   523 bufferAddMenuSlice
   528 bufferAddMenuSlice
   524     "This resource specification was automatically generated
   529     "This resource specification was automatically generated
   525      by the MenuEditor of ST/X."
   530      by the MenuEditor of ST/X."
   559 	    label: 'Tea Timer'
   564 	    label: 'Tea Timer'
   560 	    itemValue: addTeaTimer
   565 	    itemValue: addTeaTimer
   561 	    translateLabel: true
   566 	    translateLabel: true
   562 	  )
   567 	  )
   563 	 (MenuItem
   568 	 (MenuItem
   564 	    label: 'Stopwatch'
   569             label: 'Stopwatch'
   565 	    itemValue: addStopWatch
   570 	    itemValue: addStopWatch
   566 	    translateLabel: true
   571 	    translateLabel: true
   567 	  )
   572 	  )
   568 	 )
   573 	 )
   569 	nil
   574 	nil
   722 	  )
   727 	  )
   723 	 (MenuItem
   728 	 (MenuItem
   724 	    label: '-'
   729 	    label: '-'
   725 	  )
   730 	  )
   726 	 (MenuItem
   731 	 (MenuItem
   727 	    enabled: hasSelectionInActiveWorkspace
   732             enabled: hasSelectionInActiveWorkspace
   728 	    label: 'Copy as Sniplet...'
   733 	    label: 'Copy as Sniplet...'
   729 	    itemValue: addSelectionToSniplets
   734 	    itemValue: addSelectionToSniplets
   730 	    translateLabel: true
   735 	    translateLabel: true
   731 	  )
   736 	  )
   732 	 (MenuItem
   737 	 (MenuItem
   733 	    enabled: selectedWorkspaceIsTextView
   738             enabled: selectedWorkspaceIsTextView
   734 	    label: 'Paste Sniplet...'
   739 	    label: 'Paste Sniplet...'
   735 	    itemValue: pasteSniplet
   740 	    itemValue: pasteSniplet
   736 	    translateLabel: true
   741 	    translateLabel: true
   737 	  )
   742 	  )
   738 	 (MenuItem
   743 	 (MenuItem
   739 	    enabled: selectedWorkspaceIsTextView
   744             enabled: selectedWorkspaceIsTextView
   740 	    label: 'Manage Sniplets...'
   745 	    label: 'Manage Sniplets...'
   741 	    itemValue: manageSniplets
   746 	    itemValue: manageSniplets
   742 	    translateLabel: true
   747 	    translateLabel: true
   743 	  )
   748 	  )
   744 	 (MenuItem
   749 	 (MenuItem
   752 	 (MenuItem
   757 	 (MenuItem
   753 	    label: '-'
   758 	    label: '-'
   754 	    isVisible: thisIsASmalltalkWorkspace
   759 	    isVisible: thisIsASmalltalkWorkspace
   755 	  )
   760 	  )
   756 	 (MenuItem
   761 	 (MenuItem
   757 	    enabled: selectedWorkspaceIsTextView
   762             enabled: selectedWorkspaceIsTextView
   758 	    label: 'Filter Text...'
   763 	    label: 'Filter Text...'
   759 	    itemValue: filterText
   764 	    itemValue: filterText
   760 	    translateLabel: true
   765 	    translateLabel: true
   761 	    isVisible: thisIsASmalltalkWorkspace
   766 	    isVisible: thisIsASmalltalkWorkspace
   762 	  )
   767 	  )
   763 	 (MenuItem
   768 	 (MenuItem
   764 	    enabled: selectedWorkspaceIsTextView
   769             enabled: selectedWorkspaceIsTextView
   765 	    label: 'Process Text...'
   770 	    label: 'Process Text...'
   766 	    itemValue: processText
   771 	    itemValue: processText
   767 	    translateLabel: true
   772 	    translateLabel: true
   768 	    isVisible: thisIsASmalltalkWorkspace
   773 	    isVisible: thisIsASmalltalkWorkspace
   769 	  )
   774 	  )
   770 	 (MenuItem
   775 	 (MenuItem
       
   776             label: 'Compare Text Against...'
       
   777             itemValue: compareTextAgainst
       
   778             translateLabel: true
       
   779           )
       
   780          (MenuItem
   771 	    label: '-'
   781 	    label: '-'
   772 	  )
   782 	  )
   773 	 (MenuItem
   783 	 (MenuItem
   774 	    label: 'Services'
   784 	    label: 'Services'
   775 	    translateLabel: true
   785 	    translateLabel: true
   778 	      (
   788 	      (
   779 	       (MenuItem
   789 	       (MenuItem
   780 		  label: 'Autofetch Selection'
   790 		  label: 'Autofetch Selection'
   781 		  itemValue: autoFetchSelection:
   791 		  itemValue: autoFetchSelection:
   782 		  translateLabel: true
   792 		  translateLabel: true
       
   793                   hideMenuOnActivated: false
   783 		  indication: autoFetchSelection
   794 		  indication: autoFetchSelection
   784 		)
   795 		)
   785 	       (MenuItem
   796 	       (MenuItem
   786 		  label: 'Autofetch Selection (Lines)'
   797                   enabled: autoFetchSelection
       
   798                   label: 'Insert as Line (Append CR)'
   787 		  translateLabel: true
   799 		  translateLabel: true
       
   800                   hideMenuOnActivated: false
   788 		  indication: autoFetchSelectionLines
   801 		  indication: autoFetchSelectionLines
   789 		)
   802 		)
   790 	       (MenuItem
   803 	       (MenuItem
   791 		  label: '-'
   804 		  label: '-'
   792 		  isVisible: thisIsASmalltalkWorkspace
   805 		  isVisible: thisIsASmalltalkWorkspace
   797 		  itemValue: googleSpellingSuggestion
   810 		  itemValue: googleSpellingSuggestion
   798 		  translateLabel: true
   811 		  translateLabel: true
   799 		  isVisible: thisIsASmalltalkWorkspace
   812 		  isVisible: thisIsASmalltalkWorkspace
   800 		)
   813 		)
   801 	       (MenuItem
   814 	       (MenuItem
   802 		  enabled: hasSelectionInActiveWorkspace
   815                   enabled: hasSelectionInActiveWorkspace
   803 		  label: 'Translate (babelFish)'
   816 		  label: 'Translate (babelFish)'
   804 		  translateLabel: true
   817 		  translateLabel: true
   805 		  isVisible: thisIsASmalltalkWorkspace
   818 		  isVisible: thisIsASmalltalkWorkspace
   806 		  submenu:
   819 		  submenu:
   807 		 (Menu
   820 		 (Menu
   884 	  )
   897 	  )
   885 	 )
   898 	 )
   886 	nil
   899 	nil
   887 	nil
   900 	nil
   888       )
   901       )
       
   902 
       
   903     "Modified: / 20-07-2012 / 10:30:57 / cg"
   889 !
   904 !
   890 
   905 
   891 editModeInfoLabelMenu
   906 editModeInfoLabelMenu
   892     "This resource specification was automatically generated
   907     "This resource specification was automatically generated
   893      by the MenuEditor of ST/X."
   908      by the MenuEditor of ST/X."
  1646       )
  1661       )
  1647 
  1662 
  1648     "Modified: / 12-09-2012 / 12:18:40 / cg"
  1663     "Modified: / 12-09-2012 / 12:18:40 / cg"
  1649 ! !
  1664 ! !
  1650 
  1665 
       
  1666 
  1651 !WorkspaceApplication class methodsFor:'private'!
  1667 !WorkspaceApplication class methodsFor:'private'!
  1652 
  1668 
  1653 createWorkspaceView
  1669 createWorkspaceView
  1654     ^(UserPreferences current useCodeView2In:#Workspace) ifTrue:[
  1670     ^(UserPreferences current useCodeView2In:#Workspace) ifTrue:[
  1655 	Tools::CodeView2 new
  1671 	Tools::CodeView2 new
  1658     ]
  1674     ]
  1659 
  1675 
  1660     "Modified: / 26-07-2011 / 10:28:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  1676     "Modified: / 26-07-2011 / 10:28:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  1661     "Modified (format): / 21-08-2012 / 17:18:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  1677     "Modified (format): / 21-08-2012 / 17:18:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  1662 ! !
  1678 ! !
       
  1679 
  1663 
  1680 
  1664 !WorkspaceApplication class methodsFor:'special startup'!
  1681 !WorkspaceApplication class methodsFor:'special startup'!
  1665 
  1682 
  1666 openEvaluationWorkspace
  1683 openEvaluationWorkspace
  1667     |wsApp needRemove|
  1684     |wsApp needRemove|
  1966     "
  1983     "
  1967      self openWithWorkspaceVariableInspector
  1984      self openWithWorkspaceVariableInspector
  1968     "
  1985     "
  1969 ! !
  1986 ! !
  1970 
  1987 
       
  1988 
  1971 !WorkspaceApplication class methodsFor:'startup'!
  1989 !WorkspaceApplication class methodsFor:'startup'!
  1972 
  1990 
  1973 open
  1991 open
  1974     "/ the very first open opens a MyWorkspace
  1992     "/ the very first open opens a MyWorkspace
  1975 
  1993 
  1986     "
  2004     "
  1987 
  2005 
  1988     "Created: / 21-06-2011 / 09:03:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  2006     "Created: / 21-06-2011 / 09:03:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  1989     "Modified (comment): / 05-07-2011 / 15:23:53 / cg"
  2007     "Modified (comment): / 05-07-2011 / 15:23:53 / cg"
  1990 ! !
  2008 ! !
       
  2009 
  1991 
  2010 
  1992 !WorkspaceApplication methodsFor:'aspects'!
  2011 !WorkspaceApplication methodsFor:'aspects'!
  1993 
  2012 
  1994 autoDefineVariables
  2013 autoDefineVariables
  1995     autoDefineVariables isNil ifTrue:[
  2014     autoDefineVariables isNil ifTrue:[
  2167 
  2186 
  2168     "Created: / 10-06-2011 / 22:52:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  2187     "Created: / 10-06-2011 / 22:52:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  2169     "Modified: / 11-06-2011 / 00:06:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  2188     "Modified: / 11-06-2011 / 00:06:21 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  2170 ! !
  2189 ! !
  2171 
  2190 
       
  2191 
  2172 !WorkspaceApplication methodsFor:'aspects-queries'!
  2192 !WorkspaceApplication methodsFor:'aspects-queries'!
  2173 
  2193 
  2174 anyWorkspaceVariableIsDefined
  2194 anyWorkspaceVariableIsDefined
  2175     ^ Workspace anyWorkspaceVariableIsDefined
  2195     ^ Workspace anyWorkspaceVariableIsDefined
  2176 
  2196 
  2218 !
  2238 !
  2219 
  2239 
  2220 selectedWorkspaceIsTextView
  2240 selectedWorkspaceIsTextView
  2221     ^ self selectedWorkspacesTextView notNil
  2241     ^ self selectedWorkspacesTextView notNil
  2222 ! !
  2242 ! !
       
  2243 
  2223 
  2244 
  2224 !WorkspaceApplication methodsFor:'autofetch selection'!
  2245 !WorkspaceApplication methodsFor:'autofetch selection'!
  2225 
  2246 
  2226 autoFetchSelection
  2247 autoFetchSelection
  2227     ^ clipBoardWatcherProcess notNil
  2248     ^ clipBoardWatcherProcess notNil
  2316     self itemFromClipboard.
  2337     self itemFromClipboard.
  2317 
  2338 
  2318     "Created: / 16-11-2010 / 14:44:05 / cg"
  2339     "Created: / 16-11-2010 / 14:44:05 / cg"
  2319 ! !
  2340 ! !
  2320 
  2341 
       
  2342 
  2321 !WorkspaceApplication methodsFor:'defaults'!
  2343 !WorkspaceApplication methodsFor:'defaults'!
  2322 
  2344 
  2323 defaultEvaluatorSyntax
  2345 defaultEvaluatorSyntax
  2324     LastLanguage notNil ifTrue:[^ LastLanguage].
  2346     LastLanguage notNil ifTrue:[^ LastLanguage].
  2325     ^ SmalltalkLanguage instance.
  2347     ^ SmalltalkLanguage instance.
  2367      (expecco uses workspaces as scratchpads)"
  2389      (expecco uses workspaces as scratchpads)"
  2368 
  2390 
  2369     ^ true
  2391     ^ true
  2370 ! !
  2392 ! !
  2371 
  2393 
       
  2394 
  2372 !WorkspaceApplication methodsFor:'drag & drop'!
  2395 !WorkspaceApplication methodsFor:'drag & drop'!
  2373 
  2396 
  2374 droppedFile:aFilename in:aComponent
  2397 droppedFile:aFilename in:aComponent
  2375     "this is a notification from my textView component"
  2398     "this is a notification from my textView component"
  2376 
  2399 
  2377     self
  2400     self
  2378 	renameWorkspace:(self selectedWorkspaceIndexHolder value)
  2401 	renameWorkspace:(self selectedWorkspaceIndexHolder value)
  2379 	to:aFilename asFilename baseName
  2402 	to:aFilename asFilename baseName
  2380 ! !
  2403 ! !
  2381 
  2404 
       
  2405 
  2382 !WorkspaceApplication methodsFor:'help'!
  2406 !WorkspaceApplication methodsFor:'help'!
  2383 
  2407 
  2384 flyByHelpSpec
  2408 flyByHelpSpec
  2385     "/ dynamically adjust the menuSave item's flyByhelpText
  2409     "/ dynamically adjust the menuSave item's flyByhelpText
  2386     ^ self updateHelpSpec:(super flyByHelpSpec)
  2410     ^ self updateHelpSpec:(super flyByHelpSpec)
  2409     ].
  2433     ].
  2410     ^ aSpec
  2434     ^ aSpec
  2411 
  2435 
  2412     "Created: / 06-07-2011 / 16:32:13 / cg"
  2436     "Created: / 06-07-2011 / 16:32:13 / cg"
  2413 ! !
  2437 ! !
       
  2438 
  2414 
  2439 
  2415 !WorkspaceApplication methodsFor:'initialization & release'!
  2440 !WorkspaceApplication methodsFor:'initialization & release'!
  2416 
  2441 
  2417 closeRequest
  2442 closeRequest
  2418     "asks for permission before closing"
  2443     "asks for permission before closing"
  2464     ].
  2489     ].
  2465     ^ false
  2490     ^ false
  2466 
  2491 
  2467     "Created: / 22-01-2011 / 12:10:01 / cg"
  2492     "Created: / 22-01-2011 / 12:10:01 / cg"
  2468 ! !
  2493 ! !
       
  2494 
  2469 
  2495 
  2470 !WorkspaceApplication methodsFor:'menu-actions'!
  2496 !WorkspaceApplication methodsFor:'menu-actions'!
  2471 
  2497 
  2472 askForFilterBlock:message template:template rememberIn:nameOfClassVar
  2498 askForFilterBlock:message template:template rememberIn:nameOfClassVar
  2473     |filterBlockString filterBlock dialog textHolder classVarValue|
  2499     |filterBlockString filterBlock dialog textHolder classVarValue|
  3035 !
  3061 !
  3036 
  3062 
  3037 timeIt
  3063 timeIt
  3038     self selectedWorkspacesTextView timeIt
  3064     self selectedWorkspacesTextView timeIt
  3039 ! !
  3065 ! !
       
  3066 
  3040 
  3067 
  3041 !WorkspaceApplication methodsFor:'menu-actions-adding'!
  3068 !WorkspaceApplication methodsFor:'menu-actions-adding'!
  3042 
  3069 
  3043 addBookmark
  3070 addBookmark
  3044 
  3071 
  3471     ]
  3498     ]
  3472 
  3499 
  3473     "Created: / 21-06-2011 / 08:56:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  3500     "Created: / 21-06-2011 / 08:56:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
  3474 ! !
  3501 ! !
  3475 
  3502 
       
  3503 
  3476 !WorkspaceApplication methodsFor:'menu-actions-editing'!
  3504 !WorkspaceApplication methodsFor:'menu-actions-editing'!
  3477 
  3505 
  3478 babelFishTranslate:fromToModeString
  3506 babelFishTranslate:fromToModeString
  3479     "translate the selected text and paste it after the selection"
  3507     "translate the selected text and paste it after the selection"
  3480 
  3508 
  3646 !
  3674 !
  3647 
  3675 
  3648 undent
  3676 undent
  3649     self selectedWorkspacesTextView undentBy4.
  3677     self selectedWorkspacesTextView undentBy4.
  3650 ! !
  3678 ! !
       
  3679 
  3651 
  3680 
  3652 !WorkspaceApplication methodsFor:'menu-dynamic'!
  3681 !WorkspaceApplication methodsFor:'menu-dynamic'!
  3653 
  3682 
  3654 bookmarkMenu
  3683 bookmarkMenu
  3655     | menu item |
  3684     | menu item |
  3777     <resource: #programMenu >
  3806     <resource: #programMenu >
  3778 
  3807 
  3779     ^ self recentDoItsMenuFor:#'pasteAndExecute:'
  3808     ^ self recentDoItsMenuFor:#'pasteAndExecute:'
  3780 ! !
  3809 ! !
  3781 
  3810 
       
  3811 
  3782 !WorkspaceApplication methodsFor:'private'!
  3812 !WorkspaceApplication methodsFor:'private'!
  3783 
  3813 
  3784 askIfAnyModified:question yesButton:yesButtonText
  3814 askIfAnyModified:question yesButton:yesButtonText
  3785     (workspaces contains:[:aView | self isModifiedWorkspace:aView]) ifFalse:[^ true].
  3815     (workspaces contains:[:aView | self isModifiedWorkspace:aView]) ifFalse:[^ true].
  3786 
  3816 
  3994 
  4024 
  3995     selectedWorkspace := self selectedWorkspace.
  4025     selectedWorkspace := self selectedWorkspace.
  3996     selectedWorkspaceApp  := self selectedWorkspaceApplication.
  4026     selectedWorkspaceApp  := self selectedWorkspaceApplication.
  3997 
  4027 
  3998     (selectedWorkspace notNil and:[selectedWorkspace isScrollWrapper]) ifTrue:[
  4028     (selectedWorkspace notNil and:[selectedWorkspace isScrollWrapper]) ifTrue:[
  3999 	selectedWorkspace := selectedWorkspace scrolledView
  4029         selectedWorkspace := selectedWorkspace scrolledView
  4000     ].
  4030     ].
  4001 
  4031 
  4002     compilerClass := selectedWorkspaceApp ? selectedWorkspace
  4032     compilerClass := selectedWorkspaceApp ? selectedWorkspace
  4003 			    perform: #compilerClass
  4033                             perform: #compilerClass
  4004 			    ifNotUnderstood: [Compiler].
  4034                             ifNotUnderstood: [Compiler].
  4005     self canChangeLanguageHolder value:
  4035     self canChangeLanguageHolder value:
  4006 	(selectedWorkspaceApp ? selectedWorkspace respondsTo: #compilerClass:).
  4036         (selectedWorkspaceApp ? selectedWorkspace respondsTo: #compilerClass:).
  4007 
  4037 
  4008 
  4038 
  4009     self syntaxHolder value:(self syntaxFromEvaluatorClass:compilerClass).
  4039     self syntaxHolder value:(self syntaxFromEvaluatorClass:compilerClass).
  4010 
  4040 
  4011     (selectedWorkspace notNil and:[ selectedWorkspace scrolledView isTextView or:[selectedWorkspaceApp notNil] ]) ifTrue:[
  4041     (selectedWorkspace notNil and:[ selectedWorkspace scrolledView isTextView or:[selectedWorkspaceApp notNil] ]) ifTrue:[
  4012 	self cursorLineHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#cursorLineHolder ifNotUnderstood:nil ).
  4042         self cursorLineHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#cursorLineHolder ifNotUnderstood:nil ).
  4013 	self cursorColHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#cursorColHolder ifNotUnderstood:nil ).
  4043         self cursorColHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#cursorColHolder ifNotUnderstood:nil ).
  4014 	self modeLabelHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#modeLabelHolder ifNotUnderstood:nil ).
  4044         self modeLabelHolder valueHolder:( selectedWorkspaceApp ? selectedWorkspace perform:#modeLabelHolder ifNotUnderstood:nil ).
  4015     ] ifFalse:[
  4045     ] ifFalse:[
  4016 	self cursorLineHolder valueHolder:nil.
  4046         self cursorLineHolder valueHolder:nil.
  4017 	self cursorColHolder valueHolder:nil.
  4047         self cursorColHolder valueHolder:nil.
  4018 	self modeLabelHolder valueHolder:nil.
  4048         self modeLabelHolder valueHolder:nil.
  4019     ].
  4049     ].
  4020 
  4050 
  4021     "Update toolbar"
  4051     "Update toolbar"
  4022     selectedWorkspaceApp notNil ifTrue:[
  4052     selectedWorkspaceApp notNil ifTrue:[
  4023 	(selectedWorkspaceApp class respondsTo: #toolBarSpec) ifTrue:[
  4053         (selectedWorkspaceApp class respondsTo: #toolBarSpec) ifTrue:[
  4024 	    self toolBarView
  4054             self toolBarView
  4025 		client: selectedWorkspaceApp spec: #toolBarSpec
  4055                 client: selectedWorkspaceApp spec: #toolBarSpec
  4026 	] ifFalse:[
  4056         ] ifFalse:[
  4027 	    self toolBarView
  4057             self toolBarView
  4028 		client: self spec: #toolBarSpec builder: builder.
  4058                 client: self spec: #toolBarSpec builder: builder.
  4029 	]
  4059         ]
  4030     ] ifFalse:[
  4060     ] ifFalse:[
  4031 	self toolBarView
  4061         self toolBarView
  4032 	    client: self spec: #toolBarSpec builder: builder.
  4062             client: self spec: #toolBarSpec builder: builder.
  4033     ]
  4063     ]
  4034 
  4064 
  4035 
  4065 
  4036 ! !
  4066 ! !
       
  4067 
  4037 
  4068 
  4038 !WorkspaceApplication methodsFor:'user actions'!
  4069 !WorkspaceApplication methodsFor:'user actions'!
  4039 
  4070 
  4040 infoVisibilityChanged
  4071 infoVisibilityChanged
  4041     super infoVisibilityChanged.
  4072     super infoVisibilityChanged.
  4057     UserPreferences current editToolbarVisibleInWorkspace:(self editToolBarVisibleHolder value).
  4088     UserPreferences current editToolbarVisibleInWorkspace:(self editToolBarVisibleHolder value).
  4058 
  4089 
  4059     "Created: / 14-07-2007 / 16:45:31 / cg"
  4090     "Created: / 14-07-2007 / 16:45:31 / cg"
  4060 ! !
  4091 ! !
  4061 
  4092 
       
  4093 
  4062 !WorkspaceApplication class methodsFor:'documentation'!
  4094 !WorkspaceApplication class methodsFor:'documentation'!
  4063 
  4095 
  4064 version
  4096 version
  4065     ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.235 2012/11/05 10:42:39 cg Exp $'
  4097     ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.236 2013-01-27 01:50:59 cg Exp $'
  4066 !
  4098 !
  4067 
  4099 
  4068 version_CVS
  4100 version_CVS
  4069     ^ '§Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.235 2012/11/05 10:42:39 cg Exp §'
  4101     ^ '$Header: /cvs/stx/stx/libtool/WorkspaceApplication.st,v 1.236 2013-01-27 01:50:59 cg Exp $'
  4070 !
  4102 !
  4071 
  4103 
  4072 version_SVN
  4104 version_SVN
  4073     ^ '$Id: WorkspaceApplication.st 8074 2012-11-30 17:23:39Z vranyj1 $'
  4105     ^ '§Id: WorkspaceApplication.st 7812 2011-08-17 08:55:59Z vranyj1 §'
  4074 ! !
  4106 ! !
       
  4107