13503
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
"{ Package: 'stx:libtool' }"
|
|
13 |
|
|
14 |
"{ NameSpace: Tools }"
|
|
15 |
|
|
16 |
Object subclass:#Toolbox
|
|
17 |
instanceVariableNames:'browser environment'
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Interface-Tools'
|
|
21 |
!
|
|
22 |
|
|
23 |
!Toolbox class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
! !
|
|
38 |
|
|
39 |
!Toolbox class methodsFor:'instance creation'!
|
|
40 |
|
|
41 |
new
|
|
42 |
"return an initialized instance"
|
|
43 |
|
|
44 |
^ self basicNew initialize.
|
|
45 |
! !
|
|
46 |
|
|
47 |
!Toolbox methodsFor:'accessing'!
|
|
48 |
|
|
49 |
browser
|
|
50 |
^ browser
|
|
51 |
!
|
|
52 |
|
|
53 |
browser:aNewSystemBrowser
|
|
54 |
browser := aNewSystemBrowser.
|
|
55 |
!
|
|
56 |
|
|
57 |
environment
|
|
58 |
^ environment
|
|
59 |
!
|
|
60 |
|
|
61 |
environment:env
|
|
62 |
environment := env.
|
|
63 |
! !
|
|
64 |
|
|
65 |
!Toolbox methodsFor:'initialization'!
|
|
66 |
|
|
67 |
initialize
|
|
68 |
"Invoked when a new instance is created."
|
|
69 |
|
|
70 |
"/ please change as required (and remove this comment)
|
|
71 |
"/ browser := nil.
|
|
72 |
environment := Smalltalk
|
|
73 |
|
|
74 |
"/ super initialize. -- commented since inherited method does nothing
|
|
75 |
|
|
76 |
"Modified: / 05-09-2013 / 12:46:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
77 |
! !
|
|
78 |
|
|
79 |
!Toolbox methodsFor:'menus'!
|
|
80 |
|
|
81 |
messagesMenuFor:arg1 withMethods:arg2 withMethodSelectors:arg3 withSentSelectors:arg4 withSelfSelectorsOnly:arg5
|
|
82 |
"raise an error: must be redefined in concrete subclass(es)"
|
|
83 |
|
|
84 |
^ Menu new
|
|
85 |
addItem: ((MenuItem label: 'Not supporte') enabled: false);
|
|
86 |
yourself.
|
|
87 |
|
|
88 |
"Modified: / 02-09-2013 / 09:40:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
89 |
! !
|
|
90 |
|
|
91 |
!Toolbox methodsFor:'private'!
|
|
92 |
|
|
93 |
ensureBrowser
|
|
94 |
browser isNil ifTrue:[
|
|
95 |
browser := NewSystemBrowser new.
|
|
96 |
browser open.
|
|
97 |
].
|
|
98 |
^ browser
|
|
99 |
|
|
100 |
"Created: / 31-08-2013 / 22:46:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
101 |
! !
|
|
102 |
|
|
103 |
!Toolbox class methodsFor:'documentation'!
|
|
104 |
|
|
105 |
version
|
|
106 |
^ '$Header: /cvs/stx/stx/libtool/Tools__Toolbox.st,v 1.1 2013-09-05 21:33:32 vrany Exp $'
|
|
107 |
!
|
|
108 |
|
|
109 |
version_CVS
|
|
110 |
^ '$Header: /cvs/stx/stx/libtool/Tools__Toolbox.st,v 1.1 2013-09-05 21:33:32 vrany Exp $'
|
|
111 |
! !
|
|
112 |
|