10017
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
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 |
"{ Package: 'stx:libtool' }"
|
|
13 |
|
|
14 |
"{ NameSpace: Tools }"
|
|
15 |
|
|
16 |
NamespaceList subclass:#NamespaceFilter
|
|
17 |
instanceVariableNames:'selectedNamespacesHolder'
|
|
18 |
classVariableNames:''
|
|
19 |
poolDictionaries:''
|
|
20 |
category:'Interface-Browsers-New'
|
|
21 |
!
|
|
22 |
|
|
23 |
!NamespaceFilter class methodsFor:'documentation'!
|
|
24 |
|
|
25 |
copyright
|
|
26 |
"
|
|
27 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
28 |
All Rights Reserved
|
|
29 |
|
|
30 |
This software is furnished under a license and may be used
|
|
31 |
only in accordance with the terms of that license and with the
|
|
32 |
inclusion of the above copyright notice. This software may not
|
|
33 |
be provided or otherwise made available to, or used by, any
|
|
34 |
other person. No title to or ownership of the software is
|
|
35 |
hereby transferred.
|
|
36 |
"
|
|
37 |
! !
|
|
38 |
|
|
39 |
!NamespaceFilter methodsFor:'aspects'!
|
|
40 |
|
|
41 |
selectedNamespaces
|
|
42 |
"return/create the 'selectedNamespacesHolder' value holder (automatically generated)"
|
|
43 |
|
|
44 |
selectedNamespacesHolder isNil ifTrue:[
|
|
45 |
selectedNamespacesHolder := ValueHolder new.
|
|
46 |
selectedNamespacesHolder addDependent:self.
|
|
47 |
].
|
|
48 |
^ selectedNamespacesHolder
|
|
49 |
|
|
50 |
"Created: / 04-05-2011 / 20:17:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
51 |
! !
|
|
52 |
|
|
53 |
!NamespaceFilter methodsFor:'change & update'!
|
|
54 |
|
|
55 |
update:something with:aParameter from:changedObject
|
|
56 |
|
|
57 |
changedObject == selectedNamespacesHolder ifTrue:
|
|
58 |
[
|
|
59 |
self selectionHolder value:
|
|
60 |
((selectedNamespacesHolder value ? #()) collect:[:e|e string]).
|
|
61 |
^self
|
|
62 |
].
|
|
63 |
^super update:something with:aParameter from:changedObject
|
|
64 |
|
|
65 |
"Created: / 04-05-2011 / 20:14:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
66 |
! !
|
|
67 |
|
|
68 |
!NamespaceFilter methodsFor:'private'!
|
|
69 |
|
|
70 |
listEntryFor: namespaceName
|
|
71 |
|
|
72 |
^LabelAndIcon label: namespaceName icon: self class uncheckedIcon
|
|
73 |
|
|
74 |
"Created: / 04-05-2011 / 20:01:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
|
|
75 |
! !
|
|
76 |
|
|
77 |
!NamespaceFilter class methodsFor:'documentation'!
|
|
78 |
|
|
79 |
version_CVS
|
|
80 |
^ '$Header: /cvs/stx/stx/libtool/Tools__NamespaceFilter.st,v 1.1 2011-07-01 14:16:08 cg Exp $'
|
|
81 |
!
|
|
82 |
|
|
83 |
version_SVN
|
|
84 |
^ '§Id§'
|
|
85 |
! !
|