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