AbstractDirectoryBrowser.st
author Claus Gittinger <cg@exept.de>
Wed, 04 Aug 2004 20:00:18 +0200
changeset 5967 ff5e8356fcb7
parent 5903 0c2fdcd6babf
child 6250 5b0673ccff1c
permissions -rw-r--r--
*** empty log message ***
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.
5967
ff5e8356fcb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5903
diff changeset
    42
ff5e8356fcb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5903
diff changeset
    43
    [Author:]
ff5e8356fcb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5903
diff changeset
    44
        Christian Penk
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
"
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
!AbstractDirectoryBrowser methodsFor:'accessing'!
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
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    "return the value of the instance variable 'updateToExternFileHolder' (automatically generated)"
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 isNil ifTrue:[
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
        updateToExternFileHolderLock := self class newLock.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    ^ updateToExternFileHolderLock
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
!AbstractDirectoryBrowser methodsFor:'drag & drop'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
canDrop:aContext
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    ^ inDropMode and:[canDropItem]
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
4745
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    66
doDrop:aContext 
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    67
    |col destinationPath receiver didDrop|
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    68
4754
e8ff80bb18ea oops - dropLeave has a side effect.
Claus Gittinger <cg@exept.de>
parents: 4745
diff changeset
    69
    destinationPath := self dropDestinationPath.
e8ff80bb18ea oops - dropLeave has a side effect.
Claus Gittinger <cg@exept.de>
parents: 4745
diff changeset
    70
4745
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    71
    self dropLeave:aContext.
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    72
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    73
    destinationPath ifNil:[^ self].
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    74
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    75
    aContext dropSource argument == #archivApplication ifTrue:[
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    76
        receiver := aContext dropSource receiver.
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    77
        receiver extractSelectedFilesTo:destinationPath askForExtractOptions:true.
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    78
        ^ self
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    79
    ].
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    80
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    81
    col := aContext dropObjects collect:[:obj | obj theObject].
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    82
    didDrop := self copyOrMoveFiles:col to:destinationPath.
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    83
    didDrop ifFalse:[
4770
Claus Gittinger <cg@exept.de>
parents: 4754
diff changeset
    84
        aContext clearHasDroppedFlagToSuppressFeedBack
Claus Gittinger <cg@exept.de>
parents: 4754
diff changeset
    85
    ].           
4745
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    86
!
8082c278087d drop handling
Claus Gittinger <cg@exept.de>
parents: 4742
diff changeset
    87
5335
c676d4fdd3f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5330
diff changeset
    88
dropDestinationPath
c676d4fdd3f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5330
diff changeset
    89
    self subclassResponsibility
c676d4fdd3f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5330
diff changeset
    90
!
c676d4fdd3f5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5330
diff changeset
    91
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
dropEnter:aContext
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
    |dropedObjects|
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
    self dropTargetItemChangedTo:nil in:aContext.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
    inDropMode := false.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
"/    self directory isNil ifTrue:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    dropedObjects := aContext dropObjects.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
    dropedObjects do:[:aObject| 
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
        |checkObject checkObjectString|
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
        aObject isFileObject ifFalse:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
        checkObject := aObject theObject.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
        checkObject isFilename not ifTrue:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
        ((aContext dropSource argument == #archivApplication) not) ifTrue:[
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
            checkObject isSpecialFile ifTrue:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
            checkObject isReadable ifFalse:[^ self].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
        ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
    ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    inDropMode := true.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
dropLeave:aDropContext 
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
    "send the last time, when leaving the widget
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
    "
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
    inDropMode ifFalse:[ ^ self ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
    self dropTargetItemChangedTo:nil in:aDropContext.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
    self removeExpandItemTimedBlock.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    inDropMode := false.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
5330
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   127
dropTargetItemChangedTo:anItem in:aContext
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   128
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   129
    self subclassResponsibility
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   130
!
db3c33306631 drag and drop scrolling
penk
parents: 5139
diff changeset
   131
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
getDropObjects:anArgument
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
    ^ self selectedFiles collect:[:file| DropObject newFile:file].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
getLineNumberFor:aDropContext
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   138
    | yVisible|
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   139
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
    yVisible := (aDropContext targetPoint y).
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
    ^ browser yVisibleToRowNr:yVisible.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
4802
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   144
pushUserEvent:selector withArgument:argument
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   145
    self window sensor 
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   146
        pushUserEvent:selector 
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   147
        for:self 
681d6bada0bc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4770
diff changeset
   148
        withArgument:argument
5796
f8f1be919ad4 *** empty log message ***
penk
parents: 5444
diff changeset
   149
!
f8f1be919ad4 *** empty log message ***
penk
parents: 5444
diff changeset
   150
f8f1be919ad4 *** empty log message ***
penk
parents: 5444
diff changeset
   151
removeExpandItemTimedBlock
f8f1be919ad4 *** empty log message ***
penk
parents: 5444
diff changeset
   152
    "left blank"
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
!AbstractDirectoryBrowser methodsFor:'file actions'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
doCopy
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
    "copy current selected files/directories
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
    "
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
    self copyFilesToClipBoard:(self selectedFiles).
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
doCut
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    "cut current selected files/directories"
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
    self cutFilesToClipBoard:(self 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
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
doDelete
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
    "delete current selected files/directories
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
    "
5967
ff5e8356fcb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5903
diff changeset
   173
4742
972a9d30ec47 enumerate copies of the selection in delete & rename
Claus Gittinger <cg@exept.de>
parents: 4712
diff changeset
   174
    self deleteFiles:(self selectedFiles copy).
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
!AbstractDirectoryBrowser methodsFor:'selection'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
selectedFiles
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
    ^ self selectedItems collect:[:item| item fileName].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
!AbstractDirectoryBrowser methodsFor:'startup & release'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
5903
0c2fdcd6babf make use of commonPostOpen in AppModel
Claus Gittinger <cg@exept.de>
parents: 5796
diff changeset
   186
commonPostOpen
0c2fdcd6babf make use of commonPostOpen in AppModel
Claus Gittinger <cg@exept.de>
parents: 5796
diff changeset
   187
    self postOpenFromMaster:true.
0c2fdcd6babf make use of commonPostOpen in AppModel
Claus Gittinger <cg@exept.de>
parents: 5796
diff changeset
   188
!
0c2fdcd6babf make use of commonPostOpen in AppModel
Claus Gittinger <cg@exept.de>
parents: 5796
diff changeset
   189
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
initialize
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
    inDropMode := false.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
    ^ super initialize.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
5444
02b2cd0dfd69 open treebrowser with empty window bug
penk
parents: 5442
diff changeset
   196
postOpenFromMaster:fromMaster 
5442
4e025f6f8ed7 building not complete in open from master
penk
parents: 5335
diff changeset
   197
    self subclassResponsibility
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   199
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   200
preBuildWith:aBuilder
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
    self masterApplication isNil ifTrue:[
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
        self masterApplication:nil.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
    ].
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
    ^ super preBuildWith:aBuilder.
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
! !
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   208
!AbstractDirectoryBrowser class methodsFor:'documentation'!
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
version
5967
ff5e8356fcb7 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5903
diff changeset
   211
    ^ '$Header: /cvs/stx/stx/libtool/AbstractDirectoryBrowser.st,v 1.14 2004-08-04 18:00:18 cg Exp $'
4712
da798b51457b initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
! !