--- a/AbstractDirectoryBrowser.st Tue Jun 04 16:21:31 2013 +0100
+++ b/AbstractDirectoryBrowser.st Wed Jun 12 16:47:06 2013 +0100
@@ -186,9 +186,7 @@
!AbstractDirectoryBrowser methodsFor:'startup & release'!
-commonPostOpen
- self postOpenFromMaster:true.
-!
+
initialize
@@ -196,10 +194,31 @@
^ super initialize.
!
+postOpenAsSubcanvasWith:aBuilder
+ "this is sent after the applications window is opened inside another application.
+ Can be redefined in subclasses for actions after showing the canvas view."
+
+ "/ cg: used to be unconditionally true hew;
+ "/ but then, when a FileDialog (which is not an AbstractFileBrowser) is opened,
+ "/ the commonPostBuild will not properly update its enable chanels;
+ "/ especially the enableDirectoryUp is false.
+ "/ This whole FileBrowser is so complicated that it became almost unusable.
+ "/ (too much inheritance and knowledge - DirTree and DirContents should each only do
+ "/ what it should and not depend on shared functionality from their superclass)
+ self postOpenFromMaster:(self masterApplication class includesBehavior:AbstractFileBrowser).
+!
+
postOpenFromMaster:fromMaster
self subclassResponsibility
!
+postOpenWith:aBuilder
+ "this is sent after the applications main window is opened.
+ Can be redefined in subclasses for actions after opening the view."
+
+ self postOpenFromMaster:false.
+!
+
preBuildWith:aBuilder
self masterApplication isNil ifTrue:[
@@ -211,11 +230,11 @@
!AbstractDirectoryBrowser class methodsFor:'documentation'!
version
- ^ '$Id: AbstractDirectoryBrowser.st 7854 2012-01-30 17:49:41Z vranyj1 $'
+ ^ '$Header: /cvs/stx/stx/libtool/AbstractDirectoryBrowser.st,v 1.26 2013-06-07 09:58:29 cg Exp $'
!
version_CVS
- ^ '§Header: /cvs/stx/stx/libtool/AbstractDirectoryBrowser.st,v 1.25 2010/02/02 14:34:58 cg Exp §'
+ ^ '$Header: /cvs/stx/stx/libtool/AbstractDirectoryBrowser.st,v 1.26 2013-06-07 09:58:29 cg Exp $'
!
version_HG