Tools__Inspector2Tab.st
author Claus Gittinger <cg@exept.de>
Wed, 26 Jul 2017 17:09:46 +0200
changeset 17600 b79f3e9c0da9
parent 17386 e56a6c5f1c59
child 17735 8622913edce8
permissions -rw-r--r--
#BUGFIX by cg class: ChangesBrowser ouch - trated class and meta methods the same (i.e. delete for selector deleted both) changed: #doCompressSelector (send #realClassNameOfChange: instead of #classNameOfChange:) #doDeleteClassSelectorAll (send #realClassNameOfChange: instead of #classNameOfChange:) #doDeleteClassSelectorOlder (send #realClassNameOfChange: instead of #classNameOfChange:) #silentDeleteChangesFor:selector:from:to: (send #realClassNameOfChange: instead of #classNameOfChange:)
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
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
    17
	instanceVariableNames:'inspector label view application priority'
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
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    39
!Inspector2Tab class methodsFor:'special instance creation'!
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    40
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    41
toBrowseClass:aClass selector:initialSelectorOrNil label:label
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    42
    "create and return an inspector tab containing
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    43
     a browser on aClass (and optional initialSelector).
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    44
     This is a utility to be used by inspector2TabXXX methods, which want to embed a clas browser."
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    45
     
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    46
    |makeView view|
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    47
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    48
    makeView := 
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    49
        [
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    50
            |spec browser navigationState canvas|
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    51
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    52
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    53
            (view isNil ifTrue:[
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    54
                "/ spec := #singleClassBrowserSpec.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    55
                spec := #multipleClassBrowserSpec.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    56
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    57
                browser := Tools::NewSystemBrowser new.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    58
                browser isEmbeddedBrowser:true.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    59
                browser createBuilder.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    60
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    61
                navigationState := browser navigationState.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    62
                navigationState canvasType:spec.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    63
                browser browserCanvasType:spec.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    64
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    65
                canvas := browser browserCanvas value.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    66
                canvas builder:(browser builder).
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    67
                navigationState canvas:canvas.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    68
                "/ browser switchToClassHierarchyView.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    69
                "/ browser showInheritedMethods.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    70
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    71
                navigationState classList value:(aClass theNonMetaclass withAllSuperclasses).
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    72
                navigationState meta value:(aClass isMetaclass).
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    73
                browser classListGenerator value:(aClass theNonMetaclass withAllSuperclasses).
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    74
                browser sortByNameAndInheritance value:true.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    75
                browser
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    76
                    selectClass:aClass;
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    77
                    selectProtocol: (Tools::BrowserList nameListEntryForALL). 
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    78
                browser switchToClass:aClass selector:initialSelectorOrNil updateHistory: false.
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    79
                view := ApplicationSubView new client: browser spec: spec.
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    80
                "/ sigh must be done after postbuild
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    81
                navigationState classListApplication addOwnerClasses value:false.
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    82
            ]).
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    83
            view
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    84
        ].
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    85
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    86
    ^ self new
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    87
            priority: 0;
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    88
            label:label;
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
    89
            view: makeView;
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    90
            yourself
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    91
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    92
    "
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    93
     GenericToolbarIconLibrary systemBrowserIcon inspect
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    94
    "
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
    95
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
    96
    "Modified: / 11-02-2017 / 10:17:40 / cg"
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    97
! !
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    98
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    99
!Inspector2Tab methodsFor:'accessing'!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   100
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   101
application:anApplicationModelOrBlockOrValueModel
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   102
    view := [
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   103
                ApplicationSubView new
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   104
                    client: anApplicationModelOrBlockOrValueModel value;
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   105
                    yourself
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   106
            ].
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   107
054b7b03b221 initial checkin
fm
parents:
diff changeset
   108
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   109
    "Modified: / 17-02-2008 / 08:58:34 / janfrog"
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   110
    "Modified: / 11-02-2017 / 10:19:39 / cg"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   111
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   112
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   113
applicationHolder:aValueModelOrBlock
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   114
    <resource: #obsolete>
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   115
    self application:aValueModelOrBlock.
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   116
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   117
    "Modified: / 11-02-2017 / 10:20:09 / cg"
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   118
!
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   119
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   120
inspector:anInspector2
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   121
    inspector := anInspector2
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   122
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   123
    "Created: / 11-02-2017 / 10:24:29 / cg"
16724
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
   124
!
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
   125
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   126
label
054b7b03b221 initial checkin
fm
parents:
diff changeset
   127
    ^ label
054b7b03b221 initial checkin
fm
parents:
diff changeset
   128
054b7b03b221 initial checkin
fm
parents:
diff changeset
   129
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   130
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   131
054b7b03b221 initial checkin
fm
parents:
diff changeset
   132
label:aString
054b7b03b221 initial checkin
fm
parents:
diff changeset
   133
    label := aString.
054b7b03b221 initial checkin
fm
parents:
diff changeset
   134
054b7b03b221 initial checkin
fm
parents:
diff changeset
   135
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   136
    "Modified: / 17-02-2008 / 08:58:41 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   137
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   138
054b7b03b221 initial checkin
fm
parents:
diff changeset
   139
priority
054b7b03b221 initial checkin
fm
parents:
diff changeset
   140
    ^ priority ? 25
054b7b03b221 initial checkin
fm
parents:
diff changeset
   141
054b7b03b221 initial checkin
fm
parents:
diff changeset
   142
    "Created: / 17-02-2008 / 10:05:51 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   143
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   144
054b7b03b221 initial checkin
fm
parents:
diff changeset
   145
priority:something
054b7b03b221 initial checkin
fm
parents:
diff changeset
   146
    priority := something.
054b7b03b221 initial checkin
fm
parents:
diff changeset
   147
054b7b03b221 initial checkin
fm
parents:
diff changeset
   148
    "Created: / 17-02-2008 / 10:05:51 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   149
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   150
054b7b03b221 initial checkin
fm
parents:
diff changeset
   151
text:aStringOrValueModel
054b7b03b221 initial checkin
fm
parents:
diff changeset
   152
054b7b03b221 initial checkin
fm
parents:
diff changeset
   153
    self view:((HVScrollableView for:TextView) model: aStringOrValueModel; yourself)
054b7b03b221 initial checkin
fm
parents:
diff changeset
   154
054b7b03b221 initial checkin
fm
parents:
diff changeset
   155
    "Modified: / 17-02-2008 / 08:58:41 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   156
    "Created: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   157
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   158
054b7b03b221 initial checkin
fm
parents:
diff changeset
   159
view
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
   160
    view isNil ifTrue:[
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   161
        application notNil ifTrue:[
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   162
            view := ApplicationSubView new.
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   163
            view client: application value.
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
   164
        ]
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   165
    ] ifFalse:[
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   166
        view isBlock ifTrue:[
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   167
            view := view value
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   168
        ].
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
   169
    ].
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   170
    self setupView.
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   171
    ^ view
054b7b03b221 initial checkin
fm
parents:
diff changeset
   172
054b7b03b221 initial checkin
fm
parents:
diff changeset
   173
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   174
    "Modified: / 17-02-2008 / 10:38:59 / janfrog"
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   175
    "Modified: / 24-03-2014 / 18:25:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   176
    "Modified: / 11-02-2017 / 10:22:09 / cg"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   177
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   178
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   179
view:aViewOrBlockOrValueModel
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   180
    view := aViewOrBlockOrValueModel.
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   181
054b7b03b221 initial checkin
fm
parents:
diff changeset
   182
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   183
    "Modified: / 17-02-2008 / 08:58:46 / janfrog"
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   184
    "Modified (format): / 11-02-2017 / 10:22:30 / cg"
11583
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
   185
!
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
   186
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   187
viewHolder:aValueModelOrBlock
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   188
    <resource: #obsolete>
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   189
    self view: aValueModelOrBlock.
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   190
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   191
    "Modified: / 11-02-2017 / 10:22:53 / cg"
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   192
!
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   193
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   194
viewOrNil
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   195
    ^ view
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   196
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   197
    "Created: / 24-03-2014 / 18:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   198
! !
054b7b03b221 initial checkin
fm
parents:
diff changeset
   199
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   200
!Inspector2Tab methodsFor:'setup'!
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   201
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   202
setupView
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   203
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   204
    (view respondsTo:#setMasterInspectorApplication:) ifTrue:[ 
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   205
        "this is for BridgeOjectInspectorView"
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   206
        view setMasterInspectorApplication:inspector.
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   207
    ].
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   208
    (view respondsTo:#sortOrderHolder:) ifTrue:[ 
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   209
        view sortOrderHolder:(inspector sortOrderHolder)
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   210
    ].
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   211
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   212
    "Modified: / 11-02-2017 / 10:23:28 / cg"
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   213
! !
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   214
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   215
!Inspector2Tab class methodsFor:'documentation'!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   216
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
   217
version
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
   218
    ^ '$Header$'
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
   219
!
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
   220
8802
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   221
version_CVS
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   222
    ^ '$Header$'
8802
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   223
!
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   224
8815
fm
parents: 8802
diff changeset
   225
version_CVS_jvrany
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   226
    ^ '$Header$'
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   227
!
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   228
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   229
version_SVN
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   230
    ^ '$Id$'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   231
! !
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   232