branch | jv |
changeset 12807 | ba8c5416aa28 |
parent 12651 | 80720f8a6c70 |
parent 12745 | b7a4fff33fae |
child 13170 | c9b815af5777 |
12806:d550d7de8e2d | 12807:ba8c5416aa28 |
---|---|
126 space:true |
126 space:true |
127 [exEnd] |
127 [exEnd] |
128 " |
128 " |
129 ! ! |
129 ! ! |
130 |
130 |
131 |
|
132 !NewLauncher class methodsFor:'accessing'! |
131 !NewLauncher class methodsFor:'accessing'! |
133 |
132 |
134 label |
133 label |
135 |
134 |
136 ^'ST/X Launcher' |
135 ^'ST/X Launcher' |
137 |
136 |
138 |
137 |
139 ! ! |
138 ! ! |
140 |
|
141 |
139 |
142 !NewLauncher class methodsFor:'defaults'! |
140 !NewLauncher class methodsFor:'defaults'! |
143 |
141 |
144 defaultInfoLineTemplate |
142 defaultInfoLineTemplate |
145 "available values: |
143 "available values: |
172 |
170 |
173 "Created: / 16.8.1998 / 13:11:58 / cg" |
171 "Created: / 16.8.1998 / 13:11:58 / cg" |
174 "Modified: / 17.8.1998 / 10:07:09 / cg" |
172 "Modified: / 17.8.1998 / 10:07:09 / cg" |
175 ! ! |
173 ! ! |
176 |
174 |
177 |
|
178 !NewLauncher class methodsFor:'help specs'! |
175 !NewLauncher class methodsFor:'help specs'! |
179 |
176 |
180 flyByHelpSpec |
177 flyByHelpSpec |
181 <resource: #help> |
178 <resource: #help> |
182 |
179 |
782 'Enable coverage statistic gathering in all processes (global covarage analysis)' |
779 'Enable coverage statistic gathering in all processes (global covarage analysis)' |
783 ) |
780 ) |
784 |
781 |
785 "Modified: / 21-09-2012 / 10:59:33 / cg" |
782 "Modified: / 21-09-2012 / 10:59:33 / cg" |
786 ! ! |
783 ! ! |
787 |
|
788 |
784 |
789 !NewLauncher class methodsFor:'interface specs'! |
785 !NewLauncher class methodsFor:'interface specs'! |
790 |
786 |
791 windowSpec |
787 windowSpec |
792 ^ self windowSpec_old. |
788 ^ self windowSpec_old. |
971 |
967 |
972 ) |
968 ) |
973 ) |
969 ) |
974 ! ! |
970 ! ! |
975 |
971 |
976 |
|
977 !NewLauncher class methodsFor:'menu configuration'! |
972 !NewLauncher class methodsFor:'menu configuration'! |
978 |
973 |
979 addMenuItem:newItem from:anApplicationWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space |
974 addMenuItem:newItem from:anApplicationWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space |
980 |positionSpecOrNil itemNameOrNil before launcherApp| |
975 |positionSpecOrNil itemNameOrNil before launcherApp| |
981 |
976 |
1132 " |
1127 " |
1133 Transcript topView application |
1128 Transcript topView application |
1134 removeUserTool:'Foo' |
1129 removeUserTool:'Foo' |
1135 " |
1130 " |
1136 ! ! |
1131 ! ! |
1137 |
|
1138 |
1132 |
1139 !NewLauncher class methodsFor:'menu specs'! |
1133 !NewLauncher class methodsFor:'menu specs'! |
1140 |
1134 |
1141 aboutMenu |
1135 aboutMenu |
1142 "This resource specification was automatically generated |
1136 "This resource specification was automatically generated |
3183 nil |
3177 nil |
3184 nil |
3178 nil |
3185 ) |
3179 ) |
3186 ! ! |
3180 ! ! |
3187 |
3181 |
3188 |
|
3189 !NewLauncher class methodsFor:'oldstyle-menu specs'! |
3182 !NewLauncher class methodsFor:'oldstyle-menu specs'! |
3190 |
3183 |
3191 settingsMenu |
3184 settingsMenu |
3192 "This resource specification was automatically generated |
3185 "This resource specification was automatically generated |
3193 by the MenuEditor of ST/X." |
3186 by the MenuEditor of ST/X." |
3339 ) |
3332 ) |
3340 nil |
3333 nil |
3341 nil |
3334 nil |
3342 ) |
3335 ) |
3343 ! ! |
3336 ! ! |
3344 |
|
3345 |
3337 |
3346 !NewLauncher methodsFor:'accessing'! |
3338 !NewLauncher methodsFor:'accessing'! |
3347 |
3339 |
3348 errorListCanvas |
3340 errorListCanvas |
3349 errorListCanvas isNil ifTrue:[ |
3341 errorListCanvas isNil ifTrue:[ |
3448 ] |
3440 ] |
3449 ]. |
3441 ]. |
3450 ^ transcript |
3442 ^ transcript |
3451 ! ! |
3443 ! ! |
3452 |
3444 |
3453 |
|
3454 !NewLauncher methodsFor:'aspects'! |
3445 !NewLauncher methodsFor:'aspects'! |
3455 |
3446 |
3456 canDoTerminal |
3447 canDoTerminal |
3457 "return a 'valueHolder', which returns true if the terminal application |
3448 "return a 'valueHolder', which returns true if the terminal application |
3458 is available. For now, this is true if we run under unix" |
3449 is available. For now, this is true if we run under unix" |
3619 ! |
3610 ! |
3620 |
3611 |
3621 webDocumentsItemShownInHelpMenu |
3612 webDocumentsItemShownInHelpMenu |
3622 ^ false |
3613 ^ false |
3623 ! ! |
3614 ! ! |
3624 |
|
3625 |
3615 |
3626 !NewLauncher methodsFor:'change & update'! |
3616 !NewLauncher methodsFor:'change & update'! |
3627 |
3617 |
3628 update:something with:aParameter from:changedObject |
3618 update:something with:aParameter from:changedObject |
3629 "care for project changes & update my infoView" |
3619 "care for project changes & update my infoView" |
3697 bindings |
3687 bindings |
3698 at:'IMAGE' |
3688 at:'IMAGE' |
3699 put:(makeInfoString value:'Img' value:image). |
3689 put:(makeInfoString value:'Img' value:image). |
3700 |
3690 |
3701 bindings |
3691 bindings |
3702 at:'NS' put:( defNameSpace == Smalltalk |
3692 at:'NS' put:( defNameSpace == Smalltalk |
3703 ifTrue:[ '' ] |
3693 ifTrue:[ '' ] |
3704 ifFalse:[ '"',defNameSpace name,'" '] ). |
3694 ifFalse:[ '"',defNameSpace name,'" '] ). |
3705 |
3695 |
3706 bindings |
3696 bindings |
3707 at:'PROJECTDIR' |
3697 at:'PROJECTDIR' |
3708 put:(makeInfoString value:'Dir' value:(projectDir contractTo: 30)). |
3698 put:(makeInfoString value:'Dir' value:(projectDir contractTo: 30)). |
3742 projectInfo := self infoLineTemplate bindWithArguments:bindings. |
3732 projectInfo := self infoLineTemplate bindWithArguments:bindings. |
3743 self infoLabelHolder value:projectInfo. |
3733 self infoLabelHolder value:projectInfo. |
3744 ^projectInfo. |
3734 ^projectInfo. |
3745 ! ! |
3735 ! ! |
3746 |
3736 |
3747 |
|
3748 !NewLauncher methodsFor:'help'! |
3737 !NewLauncher methodsFor:'help'! |
3749 |
3738 |
3750 defaultInfoLabel |
3739 defaultInfoLabel |
3751 |
3740 |
3752 ^self updateInfo |
3741 ^self updateInfo |
3760 aKey == #fileSaveImage ifTrue:[ |
3749 aKey == #fileSaveImage ifTrue:[ |
3761 ^ text bindWith:(ObjectMemory nameForSnapshot) |
3750 ^ text bindWith:(ObjectMemory nameForSnapshot) |
3762 ]. |
3751 ]. |
3763 ^ text |
3752 ^ text |
3764 ! ! |
3753 ! ! |
3765 |
|
3766 |
3754 |
3767 !NewLauncher methodsFor:'menu configuration'! |
3755 !NewLauncher methodsFor:'menu configuration'! |
3768 |
3756 |
3769 addMenuItem:newItem from:anApplicationClassWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space |
3757 addMenuItem:newItem from:anApplicationClassWhichProvidesResourcesOrNil in:where position:positionSpecOrNilArg space:space |
3770 "adds a menu item; |
3758 "adds a menu item; |
4125 |
4113 |
4126 ^ UserAddedToolBarItems ? #() |
4114 ^ UserAddedToolBarItems ? #() |
4127 |
4115 |
4128 |
4116 |
4129 ! ! |
4117 ! ! |
4130 |
|
4131 |
4118 |
4132 !NewLauncher methodsFor:'menus-dynamic'! |
4119 !NewLauncher methodsFor:'menus-dynamic'! |
4133 |
4120 |
4134 allWindowsMenu |
4121 allWindowsMenu |
4135 "returns a subMenu with one oeprations-submenu entry per open window" |
4122 "returns a subMenu with one oeprations-submenu entry per open window" |
4220 ] ifFalse:[ |
4207 ] ifFalse:[ |
4221 info := '' |
4208 info := '' |
4222 ]. |
4209 ]. |
4223 |
4210 |
4224 submenu addItem:(MenuItem new |
4211 submenu addItem:(MenuItem new |
4225 label: ('Close all like This%1' bindWith:info); |
4212 label: ('Close All like This%1' bindWith:info); |
4226 itemValue: [likeThis do:[:eachView | eachView destroy]]; |
4213 itemValue: [likeThis do:[:eachView | eachView destroy]]; |
4227 translateLabel: true; |
4214 translateLabel: true; |
4228 enabled:(likeThis size > 1)). |
4215 enabled:(likeThis size > 1)). |
4229 |
4216 |
4230 submenu addItem:(MenuItem new |
4217 submenu addItem:(MenuItem new |
4231 label: ('Iconify all like This%1' bindWith:info); |
4218 label: ('Iconify All like This%1' bindWith:info); |
4232 itemValue: [likeThis do:[:eachView | eachView collapse]]; |
4219 itemValue: [likeThis do:[:eachView | eachView collapse]]; |
4233 translateLabel: true; |
4220 translateLabel: true; |
4234 enabled:(likeThis size > 1)). |
4221 enabled:(likeThis size > 1)). |
4235 |
4222 |
4236 submenu addItem:(MenuItem new |
4223 submenu addItem:(MenuItem new |
4237 label: ('Deconify all like This%1' bindWith:info); |
4224 label: ('Deiconify All like This%1' bindWith:info); |
4238 itemValue: [likeThis do:[:eachView | eachView raiseDeiconified]]; |
4225 itemValue: [likeThis do:[:eachView | eachView raiseDeiconified]]; |
4239 translateLabel: true; |
4226 translateLabel: true; |
4240 enabled:(likeThis size > 1)). |
4227 enabled:(likeThis size > 1)). |
4241 |
4228 |
4242 |
4229 |
4280 |
4267 |
4281 menu := Menu new receiver: self. |
4268 menu := Menu new receiver: self. |
4282 |
4269 |
4283 changeHistory isEmpty ifTrue:[ |
4270 changeHistory isEmpty ifTrue:[ |
4284 menu addItem:(MenuItem new |
4271 menu addItem:(MenuItem new |
4285 label:'>> no changes <<'; |
4272 label:'>> no uncommitted changes <<'; |
4286 enabled:false). |
4273 enabled:false). |
4287 ] ifFalse:[ |
4274 ] ifFalse:[ |
4288 menu addItemGroup: |
4275 menu addItemGroup: |
4289 (changeHistory collect:[:change| |
4276 (changeHistory collect:[:change| |
4290 MenuItem new |
4277 MenuItem new |
4462 ]. |
4449 ]. |
4463 |
4450 |
4464 "Created: / 12-11-2006 / 16:06:06 / cg" |
4451 "Created: / 12-11-2006 / 16:06:06 / cg" |
4465 ! ! |
4452 ! ! |
4466 |
4453 |
4467 |
|
4468 !NewLauncher methodsFor:'private-settings callBacks'! |
4454 !NewLauncher methodsFor:'private-settings callBacks'! |
4469 |
4455 |
4470 reopenLauncher |
4456 reopenLauncher |
4471 "reopen a new launcher. |
4457 "reopen a new launcher. |
4472 for now (since style & language settings currently do |
4458 for now (since style & language settings currently do |
4479 newLauncher := super reopenLauncher. |
4465 newLauncher := super reopenLauncher. |
4480 newLauncher showingHelp:wasShowingHelp. |
4466 newLauncher showingHelp:wasShowingHelp. |
4481 ^ newLauncher |
4467 ^ newLauncher |
4482 ! ! |
4468 ! ! |
4483 |
4469 |
4484 |
|
4485 !NewLauncher methodsFor:'queries'! |
4470 !NewLauncher methodsFor:'queries'! |
4486 |
4471 |
4487 preferredExtent |
4472 preferredExtent |
4488 |
4473 |
4489 ^ super preferredExtent min: Screen current extent // (2.5 @ 3.5) |
4474 ^ super preferredExtent min: Screen current extent // (2.5 @ 3.5) |
4499 ! |
4484 ! |
4500 |
4485 |
4501 windowMigrationFunctionsAreShown |
4486 windowMigrationFunctionsAreShown |
4502 ^ XWorkstation notNil |
4487 ^ XWorkstation notNil |
4503 ! ! |
4488 ! ! |
4504 |
|
4505 |
4489 |
4506 !NewLauncher methodsFor:'startup & release'! |
4490 !NewLauncher methodsFor:'startup & release'! |
4507 |
4491 |
4508 allButOpenInterface:anInterface |
4492 allButOpenInterface:anInterface |
4509 "sent by my superclass to open up my interface" |
4493 "sent by my superclass to open up my interface" |
4681 |
4665 |
4682 OpenLaunchers notNil ifTrue:[OpenLaunchers remove:self ifAbsent:nil]. |
4666 OpenLaunchers notNil ifTrue:[OpenLaunchers remove:self ifAbsent:nil]. |
4683 Project notNil ifTrue:[Project removeDependent:self] |
4667 Project notNil ifTrue:[Project removeDependent:self] |
4684 ! ! |
4668 ! ! |
4685 |
4669 |
4686 |
|
4687 !NewLauncher methodsFor:'user actions-classes'! |
4670 !NewLauncher methodsFor:'user actions-classes'! |
4688 |
4671 |
4689 enableGlobalCoverageAnalysis |
4672 enableGlobalCoverageAnalysis |
4690 InstrumentationContext new beActiveEverywhere. |
4673 InstrumentationContext new beActiveEverywhere. |
4691 |
4674 |
4751 ! |
4734 ! |
4752 |
4735 |
4753 stopIgnoringHalts |
4736 stopIgnoringHalts |
4754 DebugView stopIgnoringHalts |
4737 DebugView stopIgnoringHalts |
4755 ! ! |
4738 ! ! |
4756 |
|
4757 |
4739 |
4758 !NewLauncher methodsFor:'user actions-demos'! |
4740 !NewLauncher methodsFor:'user actions-demos'! |
4759 |
4741 |
4760 openDemo:className |
4742 openDemo:className |
4761 "open a demo, given its name. |
4743 "open a demo, given its name. |
4817 "opens a 2-user ticTacToe game" |
4799 "opens a 2-user ticTacToe game" |
4818 |
4800 |
4819 self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame |
4801 self openApplication:'TicTacToeGame' nameSpace:Games with:#open2UserGame |
4820 ! ! |
4802 ! ! |
4821 |
4803 |
4822 |
|
4823 !NewLauncher methodsFor:'user actions-file'! |
4804 !NewLauncher methodsFor:'user actions-file'! |
4824 |
4805 |
4825 clearTranscript |
4806 clearTranscript |
4826 Transcript current contents:'' |
4807 Transcript current contents:'' |
4827 |
4808 |
4856 self warn:ex description. |
4837 self warn:ex description. |
4857 ]. |
4838 ]. |
4858 ]. |
4839 ]. |
4859 ! ! |
4840 ! ! |
4860 |
4841 |
4861 |
|
4862 !NewLauncher methodsFor:'user actions-help'! |
4842 !NewLauncher methodsFor:'user actions-help'! |
4863 |
4843 |
4864 activeHelp |
4844 activeHelp |
4865 |
4845 |
4866 helpIsOn isNil ifTrue:[ |
4846 helpIsOn isNil ifTrue:[ |
4879 UserPreferences current flyByHelpActive:aBoolean. |
4859 UserPreferences current flyByHelpActive:aBoolean. |
4880 |
4860 |
4881 "Modified: / 18.8.1998 / 16:06:27 / cg" |
4861 "Modified: / 18.8.1998 / 16:06:27 / cg" |
4882 ! ! |
4862 ! ! |
4883 |
4863 |
4884 |
|
4885 !NewLauncher methodsFor:'user actions-system'! |
4864 !NewLauncher methodsFor:'user actions-system'! |
4886 |
4865 |
4887 initJavaVM |
4866 initJavaVM |
4888 JavaVM initializeVM |
4867 JavaVM initializeVM |
4889 |
4868 |
4926 |
4905 |
4927 "Created: / 20-06-2004 / 16:08:09 / masca" |
4906 "Created: / 20-06-2004 / 16:08:09 / masca" |
4928 "Modified: / 20-04-2005 / 18:59:28 / janfrog" |
4907 "Modified: / 20-04-2005 / 18:59:28 / janfrog" |
4929 ! ! |
4908 ! ! |
4930 |
4909 |
4931 |
|
4932 !NewLauncher methodsFor:'user actions-windows'! |
4910 !NewLauncher methodsFor:'user actions-windows'! |
4933 |
4911 |
4934 redrawAllWindows |
4912 redrawAllWindows |
4935 device redrawAllWindows. |
4913 device redrawAllWindows. |
4936 ! ! |
4914 ! ! |
4937 |
4915 |
4938 |
|
4939 !NewLauncher::AddedToolInfo methodsFor:'accessing'! |
4916 !NewLauncher::AddedToolInfo methodsFor:'accessing'! |
4940 |
4917 |
4941 before |
4918 before |
4942 |
4919 |
4943 ^ before |
4920 ^ before |
5001 |
4978 |
5002 where:something |
4979 where:something |
5003 where := something. |
4980 where := something. |
5004 ! ! |
4981 ! ! |
5005 |
4982 |
5006 |
|
5007 !NewLauncher class methodsFor:'documentation'! |
4983 !NewLauncher class methodsFor:'documentation'! |
5008 |
4984 |
5009 version |
4985 version |
5010 ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.457 2013-04-04 12:58:03 cg Exp $' |
4986 ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.460 2013-05-07 15:28:54 cg Exp $' |
5011 ! |
4987 ! |
5012 |
4988 |
5013 version_CVS |
4989 version_CVS |
5014 ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.457 2013-04-04 12:58:03 cg Exp $' |
4990 ^ '$Header: /cvs/stx/stx/libtool/NewLauncher.st,v 1.460 2013-05-07 15:28:54 cg Exp $' |
5015 ! |
4991 ! |
5016 |
4992 |
5017 version_HG |
4993 version_HG |
5018 |
4994 |
5019 ^ '$Changeset: <not expanded> $' |
4995 ^ '$Changeset: <not expanded> $' |
5020 ! |
4996 ! |
5021 |
4997 |
5022 version_SVN |
4998 version_SVN |
5023 ^ '§Id: NewLauncher.st 7772 2011-06-08 21:59:15Z vranyj1 §' |
4999 ^ '$Id: NewLauncher.st,v 1.460 2013-05-07 15:28:54 cg Exp $' |
5024 ! ! |
5000 ! ! |
5025 |
5001 |