Tools__NamespaceFilter.st
changeset 10017 1d115539c9d7
child 10041 0d9927f414d1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Tools__NamespaceFilter.st	Fri Jul 01 16:16:08 2011 +0200
@@ -0,0 +1,85 @@
+"
+ COPYRIGHT (c) 2006 by eXept Software AG
+              All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice.   This software may not
+ be provided or otherwise made available to, or used by, any
+ other person.  No title to or ownership of the software is
+ hereby transferred.
+"
+"{ Package: 'stx:libtool' }"
+
+"{ NameSpace: Tools }"
+
+NamespaceList subclass:#NamespaceFilter
+	instanceVariableNames:'selectedNamespacesHolder'
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Interface-Browsers-New'
+!
+
+!NamespaceFilter class methodsFor:'documentation'!
+
+copyright
+"
+ COPYRIGHT (c) 2006 by eXept Software AG
+              All Rights Reserved
+
+ This software is furnished under a license and may be used
+ only in accordance with the terms of that license and with the
+ inclusion of the above copyright notice.   This software may not
+ be provided or otherwise made available to, or used by, any
+ other person.  No title to or ownership of the software is
+ hereby transferred.
+"
+! !
+
+!NamespaceFilter methodsFor:'aspects'!
+
+selectedNamespaces
+    "return/create the 'selectedNamespacesHolder' value holder (automatically generated)"
+
+    selectedNamespacesHolder isNil ifTrue:[
+        selectedNamespacesHolder := ValueHolder new.
+        selectedNamespacesHolder addDependent:self.
+    ].
+    ^ selectedNamespacesHolder
+
+    "Created: / 04-05-2011 / 20:17:18 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
+!NamespaceFilter methodsFor:'change & update'!
+
+update:something with:aParameter from:changedObject
+
+    changedObject == selectedNamespacesHolder ifTrue:
+        [
+        self selectionHolder value:
+            ((selectedNamespacesHolder value ? #()) collect:[:e|e string]).
+        ^self
+        ].
+    ^super update:something with:aParameter from:changedObject
+
+    "Created: / 04-05-2011 / 20:14:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
+!NamespaceFilter methodsFor:'private'!
+
+listEntryFor: namespaceName
+
+    ^LabelAndIcon label: namespaceName icon: self class uncheckedIcon
+
+    "Created: / 04-05-2011 / 20:01:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
+!NamespaceFilter class methodsFor:'documentation'!
+
+version_CVS
+    ^ '$Header: /cvs/stx/stx/libtool/Tools__NamespaceFilter.st,v 1.1 2011-07-01 14:16:08 cg Exp $'
+!
+
+version_SVN
+    ^ '§Id§'
+! !