Tools__Inspector2Tab.st
author Claus Gittinger <cg@exept.de>
Mon, 20 Jan 2020 21:02:47 +0100
changeset 19422 c6ca1c3e0fd7
parent 18416 536ee8775804
permissions -rw-r--r--
#REFACTORING by exept class: MultiViewToolApplication added: #askForFile:default:forSave:thenDo: changed: #askForFile:default:thenDo: #askForFile:thenDo: #menuSaveAllAs #menuSaveAs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
18416
536ee8775804 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17735
diff changeset
     1
"{ Encoding: utf8 }"
536ee8775804 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17735
diff changeset
     2
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     3
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     4
 COPYRIGHT (c) 2006 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     5
	      All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     6
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     7
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     8
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     9
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    10
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    11
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    12
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    13
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    14
"{ Package: 'stx:libtool' }"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    15
054b7b03b221 initial checkin
fm
parents:
diff changeset
    16
"{ NameSpace: Tools }"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    17
054b7b03b221 initial checkin
fm
parents:
diff changeset
    18
Object subclass:#Inspector2Tab
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
    19
	instanceVariableNames:'inspector label view application priority'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    20
	classVariableNames:''
054b7b03b221 initial checkin
fm
parents:
diff changeset
    21
	poolDictionaries:''
10459
57c59ba6f470 class definition
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
    22
	category:'Interface-Inspector2'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    23
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    24
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    25
!Inspector2Tab class methodsFor:'documentation'!
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    26
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    27
copyright
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    28
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    29
 COPYRIGHT (c) 2006 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    30
	      All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    31
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    32
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    33
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    34
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    35
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    36
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    37
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    38
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    39
! !
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    40
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    41
!Inspector2Tab class methodsFor:'special instance creation'!
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    42
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    43
toBrowseClass:aClass selector:initialSelectorOrNil label:label
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    44
    "create and return an inspector tab containing
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    45
     a browser on aClass (and optional initialSelector).
17735
8622913edce8 #DOCUMENTATION by mawalch
mawalch
parents: 17386
diff changeset
    46
     This is a utility to be used by inspector2TabXXX methods, which want to embed a class browser."
8622913edce8 #DOCUMENTATION by mawalch
mawalch
parents: 17386
diff changeset
    47
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    48
    |makeView view|
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    49
17735
8622913edce8 #DOCUMENTATION by mawalch
mawalch
parents: 17386
diff changeset
    50
    makeView :=
17265
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
            |spec browser navigationState canvas|
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    53
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    54
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    55
            (view isNil ifTrue:[
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    56
                "/ spec := #singleClassBrowserSpec.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    57
                spec := #multipleClassBrowserSpec.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    58
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    59
                browser := Tools::NewSystemBrowser new.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    60
                browser isEmbeddedBrowser:true.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    61
                browser createBuilder.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    62
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    63
                navigationState := browser navigationState.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    64
                navigationState canvasType:spec.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    65
                browser browserCanvasType:spec.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    66
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    67
                canvas := browser browserCanvas value.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    68
                canvas builder:(browser builder).
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    69
                navigationState canvas:canvas.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    70
                "/ browser switchToClassHierarchyView.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    71
                "/ browser showInheritedMethods.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    72
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    73
                navigationState classList value:(aClass theNonMetaclass withAllSuperclasses).
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    74
                navigationState meta value:(aClass isMetaclass).
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    75
                browser classListGenerator value:(aClass theNonMetaclass withAllSuperclasses).
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    76
                browser sortByNameAndInheritance value:true.
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    77
                browser
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    78
                    selectClass:aClass;
17735
8622913edce8 #DOCUMENTATION by mawalch
mawalch
parents: 17386
diff changeset
    79
                    selectProtocol: (Tools::BrowserList nameListEntryForALL).
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    80
                browser switchToClass:aClass selector:initialSelectorOrNil updateHistory: false.
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    81
                view := ApplicationSubView new client: browser spec: spec.
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    82
                "/ sigh must be done after postbuild
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    83
                navigationState classListApplication addOwnerClasses value:false.
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    84
            ]).
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    85
            view
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    86
        ].
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    87
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    88
    ^ self new
18416
536ee8775804 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17735
diff changeset
    89
            priority: 10;
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    90
            label:label;
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
    91
            view: makeView;
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
    92
            yourself
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    93
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    94
    "
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    95
     GenericToolbarIconLibrary systemBrowserIcon inspect
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
    96
    "
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
    97
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
    98
    "Modified: / 11-02-2017 / 10:17:40 / cg"
17735
8622913edce8 #DOCUMENTATION by mawalch
mawalch
parents: 17386
diff changeset
    99
    "Modified (format): / 09-11-2017 / 09:59:28 / mawalch"
18416
536ee8775804 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17735
diff changeset
   100
    "Modified: / 22-09-2018 / 10:58:19 / Claus Gittinger"
17265
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
   101
! !
60e2286680a6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 16724
diff changeset
   102
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   103
!Inspector2Tab methodsFor:'accessing'!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   104
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   105
application:anApplicationModelOrBlockOrValueModel
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   106
    view := [
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   107
                ApplicationSubView new
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   108
                    client: anApplicationModelOrBlockOrValueModel value;
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   109
                    yourself
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   110
            ].
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   111
054b7b03b221 initial checkin
fm
parents:
diff changeset
   112
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   113
    "Modified: / 17-02-2008 / 08:58:34 / janfrog"
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   114
    "Modified: / 11-02-2017 / 10:19:39 / cg"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   115
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   116
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   117
applicationHolder:aValueModelOrBlock
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   118
    <resource: #obsolete>
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   119
    self application:aValueModelOrBlock.
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   120
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   121
    "Modified: / 11-02-2017 / 10:20:09 / cg"
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
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   124
inspector:anInspector2
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   125
    inspector := anInspector2
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   126
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   127
    "Created: / 11-02-2017 / 10:24:29 / cg"
16724
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
   128
!
9ff9bed9f98e #OTHER by stefan
Stefan Vogel <sv@exept.de>
parents: 16661
diff changeset
   129
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   130
label
054b7b03b221 initial checkin
fm
parents:
diff changeset
   131
    ^ label
054b7b03b221 initial checkin
fm
parents:
diff changeset
   132
054b7b03b221 initial checkin
fm
parents:
diff changeset
   133
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   134
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   135
054b7b03b221 initial checkin
fm
parents:
diff changeset
   136
label:aString
054b7b03b221 initial checkin
fm
parents:
diff changeset
   137
    label := aString.
054b7b03b221 initial checkin
fm
parents:
diff changeset
   138
054b7b03b221 initial checkin
fm
parents:
diff changeset
   139
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   140
    "Modified: / 17-02-2008 / 08:58:41 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   141
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   142
054b7b03b221 initial checkin
fm
parents:
diff changeset
   143
priority
054b7b03b221 initial checkin
fm
parents:
diff changeset
   144
    ^ priority ? 25
054b7b03b221 initial checkin
fm
parents:
diff changeset
   145
054b7b03b221 initial checkin
fm
parents:
diff changeset
   146
    "Created: / 17-02-2008 / 10:05:51 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   147
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   148
054b7b03b221 initial checkin
fm
parents:
diff changeset
   149
priority:something
054b7b03b221 initial checkin
fm
parents:
diff changeset
   150
    priority := something.
054b7b03b221 initial checkin
fm
parents:
diff changeset
   151
054b7b03b221 initial checkin
fm
parents:
diff changeset
   152
    "Created: / 17-02-2008 / 10:05:51 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   153
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   154
054b7b03b221 initial checkin
fm
parents:
diff changeset
   155
text:aStringOrValueModel
054b7b03b221 initial checkin
fm
parents:
diff changeset
   156
054b7b03b221 initial checkin
fm
parents:
diff changeset
   157
    self view:((HVScrollableView for:TextView) model: aStringOrValueModel; yourself)
054b7b03b221 initial checkin
fm
parents:
diff changeset
   158
054b7b03b221 initial checkin
fm
parents:
diff changeset
   159
    "Modified: / 17-02-2008 / 08:58:41 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   160
    "Created: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   161
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   162
054b7b03b221 initial checkin
fm
parents:
diff changeset
   163
view
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
   164
    view isNil ifTrue:[
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   165
        application notNil ifTrue:[
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   166
            view := ApplicationSubView new.
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   167
            view client: application value.
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
   168
        ]
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   169
    ] ifFalse:[
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   170
        view isBlock ifTrue:[
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   171
            view := view value
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   172
        ].
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
   173
    ].
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   174
    self setupView.
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   175
    ^ view
054b7b03b221 initial checkin
fm
parents:
diff changeset
   176
054b7b03b221 initial checkin
fm
parents:
diff changeset
   177
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   178
    "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
   179
    "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
   180
    "Modified: / 11-02-2017 / 10:22:09 / cg"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   181
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   182
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   183
view:aViewOrBlockOrValueModel
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   184
    view := aViewOrBlockOrValueModel.
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   185
054b7b03b221 initial checkin
fm
parents:
diff changeset
   186
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   187
    "Modified: / 17-02-2008 / 08:58:46 / janfrog"
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   188
    "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
   189
!
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
   190
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   191
viewHolder:aValueModelOrBlock
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   192
    <resource: #obsolete>
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   193
    self view: aValueModelOrBlock.
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   194
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   195
    "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
   196
!
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   197
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   198
viewOrNil
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   199
    ^ view
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   200
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   201
    "Created: / 24-03-2014 / 18:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   202
! !
054b7b03b221 initial checkin
fm
parents:
diff changeset
   203
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   204
!Inspector2Tab methodsFor:'setup'!
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   205
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   206
setupView
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:#setMasterInspectorApplication:) ifTrue:[ 
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   209
        "this is for BridgeOjectInspectorView"
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   210
        view setMasterInspectorApplication:inspector.
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   211
    ].
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   212
    (view respondsTo:#sortOrderHolder:) ifTrue:[ 
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   213
        view sortOrderHolder:(inspector sortOrderHolder)
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   214
    ].
17386
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   215
e56a6c5f1c59 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17266
diff changeset
   216
    "Modified: / 11-02-2017 / 10:23:28 / cg"
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   217
! !
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   218
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   219
!Inspector2Tab class methodsFor:'documentation'!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   220
17266
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
   221
version
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
   222
    ^ '$Header$'
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
   223
!
86241d1b895d #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 17265
diff changeset
   224
8802
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   225
version_CVS
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   226
    ^ '$Header$'
8802
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   227
!
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   228
8815
fm
parents: 8802
diff changeset
   229
version_CVS_jvrany
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   230
    ^ '$Header$'
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   231
!
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   232
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   233
version_SVN
16661
67944b10ce7e #REFACTORING by stefan
Stefan Vogel <sv@exept.de>
parents: 14157
diff changeset
   234
    ^ '$Id$'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   235
! !
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   236