402
|
1 |
"
|
772
|
2 |
COPYRIGHT (c) 1997-1998 by eXept Software AG
|
402
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
SimpleDialog subclass:#SelectionBrowser
|
|
16 |
instanceVariableNames:'title'
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
619
|
19 |
category:'Interface-Dialogs'
|
402
|
20 |
!
|
|
21 |
|
|
22 |
SelectionBrowser class instanceVariableNames:'lastSelection'
|
|
23 |
|
|
24 |
"
|
|
25 |
The following class instance variables are inherited by this class:
|
|
26 |
|
|
27 |
SimpleDialog -
|
|
28 |
ApplicationModel - ClassResources
|
|
29 |
Model -
|
|
30 |
Object -
|
|
31 |
"
|
|
32 |
!
|
|
33 |
|
|
34 |
!SelectionBrowser class methodsFor:'documentation'!
|
|
35 |
|
|
36 |
copyright
|
|
37 |
"
|
772
|
38 |
COPYRIGHT (c) 1997-1998 by eXept Software AG
|
402
|
39 |
All Rights Reserved
|
|
40 |
|
|
41 |
This software is furnished under a license and may be used
|
|
42 |
only in accordance with the terms of that license and with the
|
|
43 |
inclusion of the above copyright notice. This software may not
|
|
44 |
be provided or otherwise made available to, or used by, any
|
|
45 |
other person. No title to or ownership of the software is
|
|
46 |
hereby transferred.
|
|
47 |
"
|
|
48 |
|
|
49 |
|
|
50 |
!
|
|
51 |
|
|
52 |
documentation
|
|
53 |
"
|
772
|
54 |
The abstract superclass for the ResourceSelectionBrowser
|
|
55 |
and the FileSelectionBrowser.
|
504
|
56 |
|
|
57 |
[author:]
|
|
58 |
Thomas Zwick
|
402
|
59 |
"
|
|
60 |
! !
|
|
61 |
|
|
62 |
!SelectionBrowser class methodsFor:'accessing'!
|
|
63 |
|
|
64 |
lastSelection
|
772
|
65 |
"returns the last selection; file path or resource class"
|
402
|
66 |
|
|
67 |
^lastSelection
|
|
68 |
!
|
|
69 |
|
|
70 |
lastSelection: aString
|
772
|
71 |
"sets the last selection; file path or resource class"
|
402
|
72 |
|
|
73 |
lastSelection := aString
|
|
74 |
! !
|
|
75 |
|
772
|
76 |
!SelectionBrowser class methodsFor:'queries'!
|
|
77 |
|
|
78 |
isVisualStartable
|
|
79 |
"returns whether this application class can be started via #open"
|
|
80 |
|
|
81 |
self == SelectionBrowser ifTrue:[^false].
|
|
82 |
^super isVisualStartable
|
|
83 |
|
|
84 |
! !
|
|
85 |
|
402
|
86 |
!SelectionBrowser methodsFor:'accessing'!
|
|
87 |
|
|
88 |
title: aString
|
772
|
89 |
"sets the title"
|
402
|
90 |
|
|
91 |
title := aString
|
|
92 |
|
|
93 |
! !
|
|
94 |
|
773
|
95 |
!SelectionBrowser methodsFor:'help'!
|
|
96 |
|
|
97 |
openHTMLDocument: aHTMLFilename
|
|
98 |
"open a HTMLDocumentView on aHTMLFilename"
|
|
99 |
|
|
100 |
HTMLDocumentView openFullOnDocumentationFile: aHTMLFilename
|
|
101 |
! !
|
|
102 |
|
647
|
103 |
!SelectionBrowser methodsFor:'startup / release'!
|
402
|
104 |
|
|
105 |
postBuildWith:aBuilder
|
772
|
106 |
"sets the title (can be defined)"
|
402
|
107 |
|
631
|
108 |
builder window label: title ? builder window label.
|
402
|
109 |
|
|
110 |
^super postBuildWith:aBuilder
|
|
111 |
|
|
112 |
! !
|
|
113 |
|
|
114 |
!SelectionBrowser class methodsFor:'documentation'!
|
|
115 |
|
|
116 |
version
|
|
117 |
^ '$Header$'
|
|
118 |
! !
|