author | Merge Script |
Fri, 08 Jul 2016 06:58:21 +0200 | |
branch | jv |
changeset 16727 | 639ebd184cf4 |
parent 16664 | ef51c9c52b52 |
parent 16724 | 9ff9bed9f98e |
child 17379 | 028adf14bc05 |
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 |
||
15659
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
110 |
view:aViewOrBlock |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
111 |
aViewOrBlock isBlock ifTrue:[ |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
112 |
viewHolder := aViewOrBlock |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
113 |
] ifFalse:[ |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
114 |
view := aViewOrBlock. |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
115 |
] |
8777 | 116 |
|
117 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
118 |
"Modified: / 17-02-2008 / 08:58:46 / janfrog" |
|
15659
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
119 |
"Modified: / 21-05-2015 / 21:31:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
120 |
! |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
121 |
|
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
122 |
viewHolder:something |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
123 |
viewHolder := something. |
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
124 |
! |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
125 |
|
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
126 |
viewOrNil |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
127 |
^ view |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
128 |
|
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
129 |
"Created: / 24-03-2014 / 18:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8777 | 130 |
! ! |
131 |
||
16661 | 132 |
!Inspector2Tab methodsFor:'setup'! |
133 |
||
134 |
setupView |
|
135 |
||
136 |
(view respondsTo:#setMasterInspectorApplication:) ifTrue:[ |
|
137 |
"this is for BridgeOjectInspectorView" |
|
138 |
view setMasterInspectorApplication:application. |
|
139 |
]. |
|
140 |
(view respondsTo:#sortOrderHolder:) ifTrue:[ |
|
141 |
view sortOrderHolder:(application sortOrderHolder) |
|
142 |
]. |
|
143 |
! ! |
|
144 |
||
8777 | 145 |
!Inspector2Tab class methodsFor:'documentation'! |
146 |
||
8802 | 147 |
version_CVS |
16661 | 148 |
^ '$Header$' |
8802 | 149 |
! |
150 |
||
8815 | 151 |
version_CVS_jvrany |
16661 | 152 |
^ '$Header$' |
9997 | 153 |
! |
154 |
||
15659
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
155 |
version_HG |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
156 |
|
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
157 |
^ '$Changeset: <not expanded> $' |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
158 |
! |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
159 |
|
9997 | 160 |
version_SVN |
16661 | 161 |
^ '$Id$' |
8777 | 162 |
! ! |
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
163 |