(listeners);
72 | }
73 | ChangeEvent ev = new ChangeEvent(this);
74 | for (ChangeListener l : ls) {
75 | l.stateChanged(ev);
76 | }
77 | }
78 |
79 | public void readSettings(Object settings) {
80 | wizardDescriptor = (WizardDescriptor) settings;
81 | component.read(wizardDescriptor);
82 | }
83 |
84 | public void storeSettings(Object settings) {
85 | WizardDescriptor d = (WizardDescriptor) settings;
86 | component.store(d);
87 | }
88 |
89 | public boolean isFinishPanel() {
90 | return true;
91 | }
92 |
93 | public void validate() throws WizardValidationException {
94 | getComponent();
95 | component.validate(wizardDescriptor);
96 | }
97 | }
98 |
--------------------------------------------------------------------------------
/src/coffeescript/nb/project/ui/CoffeeScriptActionSettingsPanel.form:
--------------------------------------------------------------------------------
1 |
2 |
3 |
29 |
--------------------------------------------------------------------------------
/src/coffeescript/nb/project/ui/CoffeeScriptActionSettingsPanel.java:
--------------------------------------------------------------------------------
1 | // Copyright 2011 Denis Stepanov
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | package coffeescript.nb.project.ui;
15 |
16 | /**
17 | *
18 | * @author Denis Stepanov
19 | */
20 | public class CoffeeScriptActionSettingsPanel extends javax.swing.JPanel {
21 |
22 | public CoffeeScriptActionSettingsPanel() {
23 | initComponents();
24 | }
25 |
26 | @SuppressWarnings("unchecked")
27 | // //GEN-BEGIN:initComponents
28 | private void initComponents()
29 | {
30 |
31 | javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
32 | this.setLayout(layout);
33 | layout.setHorizontalGroup(
34 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
35 | .addGap(0, 500, Short.MAX_VALUE)
36 | );
37 | layout.setVerticalGroup(
38 | layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
39 | .addGap(0, 362, Short.MAX_VALUE)
40 | );
41 | }// //GEN-END:initComponents
42 | // Variables declaration - do not modify//GEN-BEGIN:variables
43 | // End of variables declaration//GEN-END:variables
44 | }
45 |
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/Bundle.properties:
--------------------------------------------------------------------------------
1 | OpenIDE-Module-Display-Category=Editing
2 | OpenIDE-Module-Long-Description=\
3 | CoffeeScript editor features:
\n\n\n- \nJust works! \
4 | (No need for additional dependencies)\n
\n- \nAdvanced syntax highlighting\n
\n- \nError checking by background compiling (Rhino JavaScript engine is used to compile *.coffee files)\n
\n- \nAutocompiling to a JavaScript file in the same directory\n
\n- \nSyntax highlighting and error checking in scripts (HTML and PHP files)\n
\n- \nIndentation & formatting, code folding\n
\n- \nOption to use Node.js with 'coffee' command for compiling. \
5 | Supported platforms: Mac, Linux and Windows (new experimenting support)\n
\n- \nCakefile project support\n
\n
6 | OpenIDE-Module-Name=CoffeeScript Netbeans
7 | OpenIDE-Module-Short-Description=CoffeeScript editor
8 | Services/MIMEResolver/CoffeeScriptResolver.xml=CoffeeScript Files
9 | Templates/Other/CoffeeScriptTemplate.coffee=Empty CoffeeScript file
10 | Templates/Project/CoffeeScript/CoffeeScriptApplicationProject.zip=CoffeeScript Application
11 | text/coffeescript=CoffeeScript
12 | CoffeeScriptAction=CoffeeScript
13 |
14 | error=Error
15 | regexp=Regular Expression
16 | comment=Comment
17 | identifier=Identifier
18 | keyword=Keyword
19 | whitespace=Whitespace
20 | number=Number
21 | operator=Operator
22 | string=String
23 | separator=Separator
24 | field=Class method or field
25 |
26 | CoffeeScriptOptions.displayName=CoffeeScript
27 | KW_CoffeeScriptOptions=CoffeeScript Options
28 | CoffeeScriptOptionsPanel.bareCheckbox.text=Compile the JavaScript without the top-level function safety wrapper
29 |
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/CoffeeScriptApplicationProject.zip:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dstepanov/coffeescript-netbeans/1af2eee5a4ad08b2db328274a001311732a46798/src/coffeescript/nb/resources/CoffeeScriptApplicationProject.zip
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/CoffeeScriptPreview.coffee:
--------------------------------------------------------------------------------
1 | # Assignment:
2 | number = 42
3 | opposite = true
4 |
5 | # Conditions:
6 | number = -42 if opposite
7 |
8 | # Functions:
9 | square = (x) -> x * x
10 |
11 | # Arrays:
12 | list = [1, 2, 3, 4, 5]
13 |
14 | # Objects:
15 | math =
16 | root: Math.sqrt
17 | square: square
18 | cube: (x) -> x * square x
19 |
20 | # Splats:
21 | race = (winner, runners...) ->
22 | print winner, runners
23 |
24 | # Existence:
25 | alert "I knew it!" if elvis?
26 |
27 | # Array comprehensions:
28 | cubes = (math.cube num for num in list)
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/CoffeeScriptTemplate.coffee:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dstepanov/coffeescript-netbeans/1af2eee5a4ad08b2db328274a001311732a46798/src/coffeescript/nb/resources/CoffeeScriptTemplate.coffee
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/FontAndColors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/coffeescript-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dstepanov/coffeescript-netbeans/1af2eee5a4ad08b2db328274a001311732a46798/src/coffeescript/nb/resources/coffeescript-icon.png
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/layer.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/refresh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dstepanov/coffeescript-netbeans/1af2eee5a4ad08b2db328274a001311732a46798/src/coffeescript/nb/resources/refresh.png
--------------------------------------------------------------------------------
/src/coffeescript/nb/resources/stop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dstepanov/coffeescript-netbeans/1af2eee5a4ad08b2db328274a001311732a46798/src/coffeescript/nb/resources/stop.png
--------------------------------------------------------------------------------