Tools__Inspector2Tab.st
author Merge Script
Fri, 08 Jul 2016 06:58:21 +0200
branchjv
changeset 16727 639ebd184cf4
parent 16664 ef51c9c52b52
parent 16724 9ff9bed9f98e
child 17379 028adf14bc05
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     1
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     3
	      All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     4
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     5
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     6
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     8
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     9
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    10
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    11
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    12
"{ Package: 'stx:libtool' }"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    13
054b7b03b221 initial checkin
fm
parents:
diff changeset
    14
"{ NameSpace: Tools }"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    15
054b7b03b221 initial checkin
fm
parents:
diff changeset
    16
Object subclass:#Inspector2Tab
16724
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
    17
	instanceVariableNames:'label view application priority viewHolder applicationHolder'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    18
	classVariableNames:''
054b7b03b221 initial checkin
fm
parents:
diff changeset
    19
	poolDictionaries:''
10459
57c59ba6f470 class definition
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
    20
	category:'Interface-Inspector2'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    21
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    22
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    23
!Inspector2Tab class methodsFor:'documentation'!
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    24
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    25
copyright
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    26
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    27
 COPYRIGHT (c) 2006 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    28
	      All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    29
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    30
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    31
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    33
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    34
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    35
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    36
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    37
! !
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    38
054b7b03b221 initial checkin
fm
parents:
diff changeset
    39
!Inspector2Tab methodsFor:'accessing'!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    40
054b7b03b221 initial checkin
fm
parents:
diff changeset
    41
application
054b7b03b221 initial checkin
fm
parents:
diff changeset
    42
    ^ application
054b7b03b221 initial checkin
fm
parents:
diff changeset
    43
054b7b03b221 initial checkin
fm
parents:
diff changeset
    44
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    45
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    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
054b7b03b221 initial checkin
fm
parents:
diff changeset
    49
054b7b03b221 initial checkin
fm
parents:
diff changeset
    50
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    51
    "Modified: / 17-02-2008 / 08:58:34 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    52
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    53
16724
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
    54
applicationHolder:something
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
    55
    applicationHolder := something.
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
    56
!
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
    57
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    58
label
054b7b03b221 initial checkin
fm
parents:
diff changeset
    59
    ^ label
054b7b03b221 initial checkin
fm
parents:
diff changeset
    60
054b7b03b221 initial checkin
fm
parents:
diff changeset
    61
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    62
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    63
054b7b03b221 initial checkin
fm
parents:
diff changeset
    64
label:aString
054b7b03b221 initial checkin
fm
parents:
diff changeset
    65
    label := aString.
054b7b03b221 initial checkin
fm
parents:
diff changeset
    66
054b7b03b221 initial checkin
fm
parents:
diff changeset
    67
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    68
    "Modified: / 17-02-2008 / 08:58:41 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    69
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    70
054b7b03b221 initial checkin
fm
parents:
diff changeset
    71
priority
054b7b03b221 initial checkin
fm
parents:
diff changeset
    72
    ^ priority ? 25
054b7b03b221 initial checkin
fm
parents:
diff changeset
    73
054b7b03b221 initial checkin
fm
parents:
diff changeset
    74
    "Created: / 17-02-2008 / 10:05:51 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    75
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    76
054b7b03b221 initial checkin
fm
parents:
diff changeset
    77
priority:something
054b7b03b221 initial checkin
fm
parents:
diff changeset
    78
    priority := something.
054b7b03b221 initial checkin
fm
parents:
diff changeset
    79
054b7b03b221 initial checkin
fm
parents:
diff changeset
    80
    "Created: / 17-02-2008 / 10:05:51 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    81
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    82
054b7b03b221 initial checkin
fm
parents:
diff changeset
    83
text:aStringOrValueModel
054b7b03b221 initial checkin
fm
parents:
diff changeset
    84
054b7b03b221 initial checkin
fm
parents:
diff changeset
    85
    self view:((HVScrollableView for:TextView) model: aStringOrValueModel; yourself)
054b7b03b221 initial checkin
fm
parents:
diff changeset
    86
054b7b03b221 initial checkin
fm
parents:
diff changeset
    87
    "Modified: / 17-02-2008 / 08:58:41 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    88
    "Created: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    89
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    90
054b7b03b221 initial checkin
fm
parents:
diff changeset
    91
view
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
    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
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
    96
            applicationHolder notNil ifTrue:[
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
    97
                view := ApplicationSubView new.
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
    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
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
   100
        ]
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
   101
    ].
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   102
    ^ view
054b7b03b221 initial checkin
fm
parents:
diff changeset
   103
054b7b03b221 initial checkin
fm
parents:
diff changeset
   104
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   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
054b7b03b221 initial checkin
fm
parents:
diff changeset
   108
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   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
054b7b03b221 initial checkin
fm
parents:
diff changeset
   116
054b7b03b221 initial checkin
fm
parents:
diff changeset
   117
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   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
054b7b03b221 initial checkin
fm
parents:
diff changeset
   130
! !
054b7b03b221 initial checkin
fm
parents:
diff changeset
   131
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   132
!Inspector2Tab methodsFor:'setup'!
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   133
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   134
setupView
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   135
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   136
    (view respondsTo:#setMasterInspectorApplication:) ifTrue:[ 
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   137
        "this is for BridgeOjectInspectorView"
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   138
        view setMasterInspectorApplication:application.
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   139
    ].
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   140
    (view respondsTo:#sortOrderHolder:) ifTrue:[ 
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   141
        view sortOrderHolder:(application sortOrderHolder)
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   142
    ].
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   143
! !
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   144
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   145
!Inspector2Tab class methodsFor:'documentation'!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   146
8802
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   147
version_CVS
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   148
    ^ '$Header$'
8802
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   149
!
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   150
8815
fm
parents: 8802
diff changeset
   151
version_CVS_jvrany
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   152
    ^ '$Header$'
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   153
!
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   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
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   160
version_SVN
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   161
    ^ '$Id$'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   162
! !
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   163