AbstractDirectoryBrowser.st
author penk
Thu, 30 Oct 2003 14:36:10 +0100
changeset 5330 db3c33306631
parent 5139 4cef12eebbb7
child 5335 c676d4fdd3f5
permissions -rw-r--r--
drag and drop scrolling no up and down scrolling here anymore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5139
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     1
"
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     2
 COPYRIGHT (c) 2003 by eXept Software AG
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     3
              All Rights Reserved
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     4
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     5
 This software is furnished under a license and may be used
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     6
 only in accordance with the terms of that license and with the
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     8
 be provided or otherwise made available to, or used by, any
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
     9
 other person.  No title to or ownership of the software is
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    10
 hereby transferred.
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    11
"
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    12
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
"{ Package: 'stx:libtool' }"
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
AbstractFileBrowser subclass:#AbstractDirectoryBrowser
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	instanceVariableNames:'inDropMode canDropItem browser updateToExternFileHolderLock'
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	classVariableNames:''
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	poolDictionaries:''
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	category:'Interface-Tools-File'
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
!AbstractDirectoryBrowser class methodsFor:'documentation'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
5139
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    24
copyright
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    25
"
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    26
 COPYRIGHT (c) 2003 by eXept Software AG
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    27
              All Rights Reserved
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    28
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    29
 This software is furnished under a license and may be used
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    30
 only in accordance with the terms of that license and with the
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    32
 be provided or otherwise made available to, or used by, any
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    33
 other person.  No title to or ownership of the software is
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    34
 hereby transferred.
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    35
"
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    36
!
4cef12eebbb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4802
diff changeset
    37
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
documentation
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
"
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    Abstract class containing the common code from DirectoryTreeBrowser and
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    DirectoryContentsBrowser applications.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
"
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!AbstractDirectoryBrowser methodsFor:'accessing'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
updateToExternFileHolderLock
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    "return the value of the instance variable 'updateToExternFileHolder' (automatically generated)"
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    updateToExternFileHolderLock isNil ifTrue:[
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
        updateToExternFileHolderLock := self class newLock.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    ^ updateToExternFileHolderLock
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
!AbstractDirectoryBrowser methodsFor:'drag & drop'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
canDrop:aContext
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    ^ inDropMode and:[canDropItem]
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
4745
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    63
doDrop:aContext 
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    64
    |col destinationPath receiver didDrop|
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    65
4754
e8ff80bb18ea oops - dropLeave has a side effect.
Claus Gittinger <cg@exept.de>
parents: 4745
diff changeset
    66
    destinationPath := self dropDestinationPath.
e8ff80bb18ea oops - dropLeave has a side effect.
Claus Gittinger <cg@exept.de>
parents: 4745
diff changeset
    67
4745
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    68
    self dropLeave:aContext.
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    69
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    70
    destinationPath ifNil:[^ self].
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    71
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    72
    aContext dropSource argument == #archivApplication ifTrue:[
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    73
        receiver := aContext dropSource receiver.
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    74
        receiver extractSelectedFilesTo:destinationPath askForExtractOptions:true.
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    75
        ^ self
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    76
    ].
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    77
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    78
    col := aContext dropObjects collect:[:obj | obj theObject].
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    79
    didDrop := self copyOrMoveFiles:col to:destinationPath.
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    80
    didDrop ifFalse:[
4770
Claus Gittinger <cg@exept.de>
parents: 4754
diff changeset
    81
        aContext clearHasDroppedFlagToSuppressFeedBack
Claus Gittinger <cg@exept.de>
parents: 4754
diff changeset
    82
    ].           
4745
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    83
!
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    84
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
dropEnter:aContext
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    |dropedObjects|
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    self dropTargetItemChangedTo:nil in:aContext.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    inDropMode := false.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
"/    self directory isNil ifTrue:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
    dropedObjects := aContext dropObjects.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    dropedObjects do:[:aObject| 
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
        |checkObject checkObjectString|
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
        aObject isFileObject ifFalse:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
        checkObject := aObject theObject.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
        checkObject isFilename not ifTrue:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
        ((aContext dropSource argument == #archivApplication) not) ifTrue:[
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
            checkObject isSpecialFile ifTrue:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
            checkObject isReadable ifFalse:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
        ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
    ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
    inDropMode := true.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
dropLeave:aDropContext 
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    "send the last time, when leaving the widget
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    "
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
    inDropMode ifFalse:[ ^ self ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
    self dropTargetItemChangedTo:nil in:aDropContext.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    self removeExpandItemTimedBlock.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    inDropMode := false.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
5330
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   120
dropTargetItemChangedTo:anItem in:aContext
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   121
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   122
    self subclassResponsibility
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   123
!
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   124
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
getDropObjects:anArgument
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
    ^ self selectedFiles collect:[:file| DropObject newFile:file].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
getLineNumberFor:aDropContext
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
    | yVisible|
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
    yVisible := (aDropContext targetPoint y).
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    ^ browser yVisibleToRowNr:yVisible.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
4802
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   137
pushUserEvent:selector withArgument:argument
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   138
    self window sensor 
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   139
        pushUserEvent:selector 
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   140
        for:self 
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   141
        withArgument:argument
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
!AbstractDirectoryBrowser methodsFor:'file actions'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
doCopy
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
    "copy current selected files/directories
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
    "
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    self copyFilesToClipBoard:(self selectedFiles).
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
doCut
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
    "cut current selected files/directories"
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
    self cutFilesToClipBoard:(self selectedFiles).
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
doDelete
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
    "delete current selected files/directories
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
    "
4742
972a9d30ec47 enumerate copies of the selection in delete & rename
Claus Gittinger <cg@exept.de>
parents: 4712
diff changeset
   162
    self deleteFiles:(self selectedFiles copy).
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
!AbstractDirectoryBrowser methodsFor:'selection'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
selectedFiles
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
    ^ self selectedItems collect:[:item| item fileName].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
!AbstractDirectoryBrowser methodsFor:'startup & release'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
initialize
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
    inDropMode := false.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
    ^ super initialize.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
postOpenAsSubcanvasWith:aBuilder
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
    super postOpenAsSubcanvasWith:aBuilder.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
    self postOpen.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
postOpenWith:aBuilder
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
    "only invoked if the application not started from a master"
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
    super postOpenWith:aBuilder.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
    self postOpen.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
preBuildWith:aBuilder
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
    self masterApplication isNil ifTrue:[
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
        self masterApplication:nil.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
    ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
    ^ super preBuildWith:aBuilder.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
!AbstractDirectoryBrowser class methodsFor:'documentation'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
version
5330
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   204
    ^ '$Header: /cvs/stx/stx/libtool/AbstractDirectoryBrowser.st,v 1.8 2003-10-30 13:36:01 penk Exp $'
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
! !