|
1 " |
|
2 stx:goodies/smallsense - A productivity plugin for Smalltalk/X IDE |
|
3 Copyright (C) 2013-2014 Jan Vrany |
|
4 |
|
5 This library is free software; you can redistribute it and/or |
|
6 modify it under the terms of the GNU Lesser General Public |
|
7 License as published by the Free Software Foundation; either |
|
8 version 2.1 of the License. |
|
9 |
|
10 This library is distributed in the hope that it will be useful, |
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 Lesser General Public License for more details. |
|
14 |
|
15 You should have received a copy of the GNU Lesser General Public |
|
16 License along with this library; if not, write to the Free Software |
|
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
18 " |
|
19 "{ Package: 'stx:goodies/smallsense' }" |
|
20 |
|
21 "{ NameSpace: SmallSense }" |
|
22 |
|
23 PO subclass:#VariableBindingPO |
|
24 instanceVariableNames:'binding' |
|
25 classVariableNames:'' |
|
26 poolDictionaries:'' |
|
27 category:'SmallSense-Java-Interface-PO' |
|
28 ! |
|
29 |
|
30 !VariableBindingPO class methodsFor:'documentation'! |
|
31 |
|
32 copyright |
|
33 " |
|
34 stx:goodies/smallsense - A productivity plugin for Smalltalk/X IDE |
|
35 Copyright (C) 2013-2014 Jan Vrany |
|
36 |
|
37 This library is free software; you can redistribute it and/or |
|
38 modify it under the terms of the GNU Lesser General Public |
|
39 License as published by the Free Software Foundation; either |
|
40 version 2.1 of the License. |
|
41 |
|
42 This library is distributed in the hope that it will be useful, |
|
43 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
44 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
45 Lesser General Public License for more details. |
|
46 |
|
47 You should have received a copy of the GNU Lesser General Public |
|
48 License along with this library; if not, write to the Free Software |
|
49 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
50 " |
|
51 ! ! |
|
52 |
|
53 !VariableBindingPO methodsFor:'accessing'! |
|
54 |
|
55 binding |
|
56 ^ binding |
|
57 ! |
|
58 |
|
59 binding:b |
|
60 binding := b. |
|
61 ! |
|
62 |
|
63 label |
|
64 "Return a text to be displayed. The label may be cached |
|
65 `label` instvar." |
|
66 |
|
67 ^ binding name |
|
68 |
|
69 "Created: / 14-08-2014 / 09:02:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
70 ! |
|
71 |
|
72 stringToCompleteForLanguage:aProgrammingLanguage |
|
73 "Answers a string to complete" |
|
74 |
|
75 ^ binding name |
|
76 |
|
77 "Created: / 14-08-2014 / 09:02:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
78 ! ! |
|
79 |
|
80 !VariableBindingPO methodsFor:'testing'! |
|
81 |
|
82 isSmallSenseVariableBindingPO |
|
83 ^ true |
|
84 |
|
85 "Created: / 14-08-2014 / 09:01:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
86 ! ! |
|
87 |