AbstractDirectoryBrowser.st
branchjv
changeset 13170 c9b815af5777
parent 12431 9f0c59c742d5
parent 12873 0bf1fc08cfd1
child 15566 184cea584be5
equal deleted inserted replaced
12819:0ce340e972c4 13170:c9b815af5777
   184     ^ self selectedItems collect:[:item| item fileName].
   184     ^ self selectedItems collect:[:item| item fileName].
   185 ! !
   185 ! !
   186 
   186 
   187 !AbstractDirectoryBrowser methodsFor:'startup & release'!
   187 !AbstractDirectoryBrowser methodsFor:'startup & release'!
   188 
   188 
   189 commonPostOpen
   189 
   190     self postOpenFromMaster:true.
       
   191 !
       
   192 
   190 
   193 initialize
   191 initialize
   194 
   192 
   195     inDropMode := false.
   193     inDropMode := false.
   196     ^ super initialize.
   194     ^ super initialize.
   197 !
   195 !
   198 
   196 
       
   197 postOpenAsSubcanvasWith:aBuilder
       
   198     "this is sent after the applications window is opened inside another application.
       
   199      Can be redefined in subclasses for actions after showing the canvas view."
       
   200 
       
   201     "/ cg: used to be unconditionally true hew;
       
   202     "/ but then, when a FileDialog (which is not an AbstractFileBrowser) is opened,
       
   203     "/ the commonPostBuild will not properly update its enable chanels;
       
   204     "/ especially the enableDirectoryUp is false.
       
   205     "/ This whole FileBrowser is so complicated that it became almost unusable.
       
   206     "/ (too much inheritance and knowledge - DirTree and DirContents should each only do
       
   207     "/ what it should and not depend on shared functionality from their superclass)
       
   208     self postOpenFromMaster:(self masterApplication class includesBehavior:AbstractFileBrowser).
       
   209 !
       
   210 
   199 postOpenFromMaster:fromMaster 
   211 postOpenFromMaster:fromMaster 
   200     self subclassResponsibility
   212     self subclassResponsibility
   201 !
   213 !
   202 
   214 
       
   215 postOpenWith:aBuilder
       
   216     "this is sent after the applications main window is opened.
       
   217      Can be redefined in subclasses for actions after opening the view."
       
   218 
       
   219     self postOpenFromMaster:false.
       
   220 !
       
   221 
   203 preBuildWith:aBuilder
   222 preBuildWith:aBuilder
   204 
   223 
   205     self masterApplication isNil ifTrue:[
   224     self masterApplication isNil ifTrue:[
   206         self masterApplication:nil.
   225         self masterApplication:nil.
   207     ].
   226     ].
   209 ! !
   228 ! !
   210 
   229 
   211 !AbstractDirectoryBrowser class methodsFor:'documentation'!
   230 !AbstractDirectoryBrowser class methodsFor:'documentation'!
   212 
   231 
   213 version
   232 version
   214     ^ '$Id: AbstractDirectoryBrowser.st 7854 2012-01-30 17:49:41Z vranyj1 $'
   233     ^ '$Header: /cvs/stx/stx/libtool/AbstractDirectoryBrowser.st,v 1.26 2013-06-07 09:58:29 cg Exp $'
   215 !
   234 !
   216 
   235 
   217 version_CVS
   236 version_CVS
   218     ^ '§Header: /cvs/stx/stx/libtool/AbstractDirectoryBrowser.st,v 1.25 2010/02/02 14:34:58 cg Exp §'
   237     ^ '$Header: /cvs/stx/stx/libtool/AbstractDirectoryBrowser.st,v 1.26 2013-06-07 09:58:29 cg Exp $'
   219 !
   238 !
   220 
   239 
   221 version_HG
   240 version_HG
   222 
   241 
   223     ^ '$Changeset: <not expanded> $'
   242     ^ '$Changeset: <not expanded> $'