author | Claus Gittinger <cg@exept.de> |
Fri, 14 Oct 2016 15:14:29 +0200 | |
changeset 16960 | 1495d95f87a1 |
parent 16724 | 9ff9bed9f98e |
child 16727 | 639ebd184cf4 |
child 17265 | 60e2286680a6 |
permissions | -rw-r--r-- |
9997 | 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' }" |
|
8777 | 13 |
|
14 |
"{ NameSpace: Tools }" |
|
15 |
||
16 |
Object subclass:#Inspector2Tab |
|
16724 | 17 |
instanceVariableNames:'label view application priority viewHolder applicationHolder' |
8777 | 18 |
classVariableNames:'' |
19 |
poolDictionaries:'' |
|
10459 | 20 |
category:'Interface-Inspector2' |
8777 | 21 |
! |
22 |
||
9997 | 23 |
!Inspector2Tab 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 |
! ! |
|
8777 | 38 |
|
39 |
!Inspector2Tab methodsFor:'accessing'! |
|
40 |
||
41 |
application |
|
42 |
^ application |
|
43 |
||
44 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
45 |
! |
|
46 |
||
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
47 |
application:anApplicationModelOrBlock |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
48 |
application := anApplicationModelOrBlock. |
8777 | 49 |
|
50 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
51 |
"Modified: / 17-02-2008 / 08:58:34 / janfrog" |
|
52 |
! |
|
53 |
||
16724 | 54 |
applicationHolder:something |
55 |
applicationHolder := something. |
|
56 |
! |
|
57 |
||
8777 | 58 |
label |
59 |
^ label |
|
60 |
||
61 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
62 |
! |
|
63 |
||
64 |
label:aString |
|
65 |
label := aString. |
|
66 |
||
67 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
68 |
"Modified: / 17-02-2008 / 08:58:41 / janfrog" |
|
69 |
! |
|
70 |
||
71 |
priority |
|
72 |
^ priority ? 25 |
|
73 |
||
74 |
"Created: / 17-02-2008 / 10:05:51 / janfrog" |
|
75 |
! |
|
76 |
||
77 |
priority:something |
|
78 |
priority := something. |
|
79 |
||
80 |
"Created: / 17-02-2008 / 10:05:51 / janfrog" |
|
81 |
! |
|
82 |
||
83 |
text:aStringOrValueModel |
|
84 |
||
85 |
self view:((HVScrollableView for:TextView) model: aStringOrValueModel; yourself) |
|
86 |
||
87 |
"Modified: / 17-02-2008 / 08:58:41 / janfrog" |
|
88 |
"Created: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
89 |
! |
|
90 |
||
91 |
view |
|
10874 | 92 |
view isNil ifTrue:[ |
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
93 |
viewHolder notNil ifTrue:[ |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
94 |
view := viewHolder value |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
95 |
] ifFalse:[ |
16724 | 96 |
applicationHolder notNil ifTrue:[ |
97 |
view := ApplicationSubView new. |
|
98 |
view client: applicationHolder value. |
|
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
99 |
] |
10874 | 100 |
] |
101 |
]. |
|
8777 | 102 |
^ view |
103 |
||
104 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
105 |
"Modified: / 17-02-2008 / 10:38:59 / janfrog" |
|
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
106 |
"Modified: / 13-06-2012 / 14:57:25 / cg" |
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
107 |
"Modified: / 24-03-2014 / 18:25:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8777 | 108 |
! |
109 |
||
110 |
view:aView |
|
111 |
view := aView. |
|
112 |
||
113 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
114 |
"Modified: / 17-02-2008 / 08:58:46 / janfrog" |
|
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
115 |
! |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
116 |
|
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
117 |
viewHolder:something |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
118 |
viewHolder := something. |
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
119 |
! |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
120 |
|
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
121 |
viewOrNil |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
122 |
^ view |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
123 |
|
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
124 |
"Created: / 24-03-2014 / 18:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8777 | 125 |
! ! |
126 |
||
16661 | 127 |
!Inspector2Tab methodsFor:'setup'! |
128 |
||
129 |
setupView |
|
130 |
||
131 |
(view respondsTo:#setMasterInspectorApplication:) ifTrue:[ |
|
132 |
"this is for BridgeOjectInspectorView" |
|
133 |
view setMasterInspectorApplication:application. |
|
134 |
]. |
|
135 |
(view respondsTo:#sortOrderHolder:) ifTrue:[ |
|
136 |
view sortOrderHolder:(application sortOrderHolder) |
|
137 |
]. |
|
138 |
! ! |
|
139 |
||
8777 | 140 |
!Inspector2Tab class methodsFor:'documentation'! |
141 |
||
8802 | 142 |
version_CVS |
16661 | 143 |
^ '$Header$' |
8802 | 144 |
! |
145 |
||
8815 | 146 |
version_CVS_jvrany |
16661 | 147 |
^ '$Header$' |
9997 | 148 |
! |
149 |
||
150 |
version_SVN |
|
16661 | 151 |
^ '$Id$' |
8777 | 152 |
! ! |
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
153 |