author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 30 Jan 2013 11:15:09 +0000 | |
branch | jv |
changeset 12401 | 4714b9640528 |
parent 12262 | d25ef6bb0ef3 |
parent 11583 | 8775311ee2f9 |
child 12431 | 9f0c59c742d5 |
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 |
|
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
17 |
instanceVariableNames:'label view application priority viewHolder' |
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 |
|
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
39 |
|
8777 | 40 |
!Inspector2Tab methodsFor:'accessing'! |
41 |
||
42 |
application |
|
43 |
^ application |
|
44 |
||
45 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
46 |
! |
|
47 |
||
48 |
application:anApplicationModel |
|
49 |
application := anApplicationModel. |
|
50 |
||
51 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
52 |
"Modified: / 17-02-2008 / 08:58:34 / janfrog" |
|
53 |
! |
|
54 |
||
55 |
label |
|
56 |
^ label |
|
57 |
||
58 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
59 |
! |
|
60 |
||
61 |
label:aString |
|
62 |
label := aString. |
|
63 |
||
64 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
65 |
"Modified: / 17-02-2008 / 08:58:41 / janfrog" |
|
66 |
! |
|
67 |
||
68 |
priority |
|
69 |
^ priority ? 25 |
|
70 |
||
71 |
"Created: / 17-02-2008 / 10:05:51 / janfrog" |
|
72 |
! |
|
73 |
||
74 |
priority:something |
|
75 |
priority := something. |
|
76 |
||
77 |
"Created: / 17-02-2008 / 10:05:51 / janfrog" |
|
78 |
! |
|
79 |
||
80 |
text:aStringOrValueModel |
|
81 |
||
82 |
self view:((HVScrollableView for:TextView) model: aStringOrValueModel; yourself) |
|
83 |
||
84 |
"Modified: / 17-02-2008 / 08:58:41 / janfrog" |
|
85 |
"Created: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
86 |
! |
|
87 |
||
88 |
view |
|
10874 | 89 |
view isNil ifTrue:[ |
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
90 |
viewHolder notNil ifTrue:[ |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
91 |
view := viewHolder value |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
92 |
] ifFalse:[ |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
93 |
application notNil ifTrue:[ |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
94 |
view := ApplicationSubView new client: application |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
95 |
] |
10874 | 96 |
] |
97 |
]. |
|
8777 | 98 |
^ view |
99 |
||
100 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
101 |
"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
|
102 |
"Modified: / 13-06-2012 / 14:57:25 / cg" |
8777 | 103 |
! |
104 |
||
105 |
view:aView |
|
106 |
view := aView. |
|
107 |
||
108 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
109 |
"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
|
110 |
! |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
111 |
|
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
112 |
viewHolder:something |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
113 |
viewHolder := something. |
8777 | 114 |
! ! |
115 |
||
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
116 |
|
8777 | 117 |
!Inspector2Tab class methodsFor:'documentation'! |
118 |
||
8802 | 119 |
version_CVS |
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
120 |
^ '$Header: /cvs/stx/stx/libtool/Tools__Inspector2Tab.st,v 1.7 2012-06-13 12:59:31 cg Exp $' |
8802 | 121 |
! |
122 |
||
8815 | 123 |
version_CVS_jvrany |
9997 | 124 |
^ '§Header: /opt/data/cvs/stx/goodies/libtool3/Inspector2Tab.st,v 1.3 2008-02-17 10:12:10 vranyj1 Exp §' |
125 |
! |
|
126 |
||
127 |
version_SVN |
|
128 |
^ '§Id: Tools__Inspector2Tab.st 7486 2009-10-26 22:06:24Z vranyj1 §' |
|
8777 | 129 |
! ! |
12401
4714b9640528
Merged 235b77901045 and 8332590c5a41 (branch default)
Jan Vrany <jan.vrany@fit.cvut.cz>
diff
changeset
|
130 |