author | Jan Vrany <jan.vrany@labware.com> |
Tue, 26 Jul 2022 15:01:33 +0100 | |
changeset 265 | f2470f0dd9cd |
parent 264 | 23960fcb9dac |
permissions | -rw-r--r-- |
175 | 1 |
" |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
2 |
jv:libgdbs - GNU Debugger Interface Library |
175 | 3 |
Copyright (C) 2015-now Jan Vrany |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
4 |
Copyright (C) 2022 LabWare |
175 | 5 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
6 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
7 |
of this software and associated documentation files (the 'Software'), to deal |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
8 |
in the Software without restriction, including without limitation the rights |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
9 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
10 |
copies of the Software, and to permit persons to whom the Software is |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
11 |
furnished to do so, subject to the following conditions: |
175 | 12 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
13 |
The above copyright notice and this permission notice shall be included in all |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
14 |
copies or substantial portions of the Software. |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
15 |
|
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
16 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
17 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
18 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
19 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
20 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
21 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
22 |
SOFTWARE. |
175 | 23 |
" |
24 |
"{ Package: 'jv:vdb' }" |
|
25 |
||
26 |
"{ NameSpace: Smalltalk }" |
|
27 |
||
28 |
WorkspaceApplication subclass:#VDBScatchPadApplication |
|
29 |
instanceVariableNames:'' |
|
30 |
classVariableNames:'' |
|
31 |
poolDictionaries:'' |
|
32 |
category:'VDB-UI-Others' |
|
33 |
! |
|
34 |
||
35 |
!VDBScatchPadApplication class methodsFor:'documentation'! |
|
36 |
||
37 |
copyright |
|
38 |
" |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
39 |
jv:libgdbs - GNU Debugger Interface Library |
175 | 40 |
Copyright (C) 2015-now Jan Vrany |
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
41 |
Copyright (C) 2022 LabWare |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
42 |
|
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
43 |
Permission is hereby granted, free of charge, to any person obtaining a copy |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
44 |
of this software and associated documentation files (the 'Software'), to deal |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
45 |
in the Software without restriction, including without limitation the rights |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
46 |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
47 |
copies of the Software, and to permit persons to whom the Software is |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
48 |
furnished to do so, subject to the following conditions: |
175 | 49 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
50 |
The above copyright notice and this permission notice shall be included in all |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
51 |
copies or substantial portions of the Software. |
175 | 52 |
|
264
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
53 |
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
54 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
55 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
56 |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
57 |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
58 |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
23960fcb9dac
Relicense under MIT license.
Jan Vrany <jan.vrany@labware.com>
parents:
175
diff
changeset
|
59 |
SOFTWARE. |
175 | 60 |
" |
61 |
! ! |
|
62 |
||
63 |
!VDBScatchPadApplication methodsFor:'defaults'! |
|
64 |
||
65 |
defaultEvaluatorSyntax |
|
66 |
^nil |
|
67 |
||
68 |
"Created: / 21-06-2019 / 10:59:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
69 |
! |
|
70 |
||
71 |
thisIsASmalltalkWorkspace |
|
72 |
"can be redefined in a subclass to disable smalltalk-specific menu items |
|
73 |
(expecco uses workspaces as scratchpads)" |
|
74 |
||
75 |
^ BlockValue |
|
76 |
with:[:syntax | syntax value == SmalltalkLanguage instance ] |
|
77 |
argument: self syntaxHolder |
|
78 |
||
79 |
"Created: / 20-06-2019 / 22:08:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
80 |
"Modified: / 23-06-2019 / 12:09:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
81 |
! ! |
|
82 |
||
83 |
!VDBScatchPadApplication methodsFor:'menu-actions'! |
|
84 |
||
85 |
loadFile:file encoding: encodingSymbolOrNil into:textView |
|
86 |
"Load contents of `file` into `textView`" |
|
87 |
||
88 |
| mimetype | |
|
89 |
||
90 |
super loadFile:file encoding: encodingSymbolOrNil into:textView. |
|
91 |
mimetype := MIMETypes mimeTypeForFilename: file. |
|
92 |
mimetype = 'application/x-smalltalk-source' ifTrue:[ |
|
93 |
textView editedLanguage: SmalltalkLanguage instance. |
|
94 |
textView codeAspect: SyntaxHighlighter codeAspectStatements. |
|
95 |
self syntax: SmalltalkLanguage instance. |
|
96 |
] ifFalse:[ |
|
97 |
textView editedLanguage: nil. |
|
98 |
textView codeAspect: nil. |
|
99 |
self syntax: nil. |
|
100 |
]. |
|
101 |
||
102 |
"Created: / 21-06-2019 / 10:46:34 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
103 |
"Modified: / 21-06-2019 / 12:15:13 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
104 |
! ! |
|
105 |
||
106 |
!VDBScatchPadApplication class methodsFor:'documentation'! |
|
107 |
||
108 |
version_HG |
|
109 |
||
110 |
^ '$Changeset: <not expanded> $' |
|
111 |
! ! |
|
112 |