Revision 212 trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/JNewScriptPanel.java

View differences:

JNewScriptPanel.java
27 27
	 * 
28 28
	 */
29 29
	private static final long serialVersionUID = -3455272930442207085L;
30
	private ScriptingUIManager uimanager;
31
	private ScriptingManager manager;
30
	private final ScriptingUIManager uimanager;
31
	private final ScriptingManager manager;
32 32
	//private DefaultJScriptingComposer composer;
33
	private JNewScriptModel model;
33
	private final JNewScriptModel model;
34 34
	 
35 35
	JComboBox units = null;
36 36
	JTextField name = null;
......
53 53
		name = new JTextField(20);
54 54
		description = new JTextArea(5,20);
55 55
		JScrollPane scroll = new JScrollPane(description);
56
		Collection langs = manager.getSupportedLanguagesByExtension().values();
56
        Collection<String> langs =
57
            manager.getSupportedLanguagesByExtension().values();
57 58
		Object[] x = langs.toArray();
58 59
		
59 60
		languages = new JComboBox(x);
......
142 143

  
143 144
	}
144 145

  
145
	public void actionAccept() {
146
	@Override
147
    public void actionAccept() {
146 148

  
147 149
		model.setType((String)units.getSelectedItem());
148 150
		model.setName(name.getText().trim());
......
232 234

  
233 235
	}
234 236

  
235
	public void actionApply() {
237
	@Override
238
    public void actionApply() {
236 239
	}
237 240

  
238
	public void actionCancel() {
241
	@Override
242
    public void actionCancel() {
239 243
		setVisible(false);
240 244
	}
241 245

  
242
	public boolean isVisibleAccept() {
246
	@Override
247
    public boolean isVisibleAccept() {
243 248
		return true;
244 249
	}
245 250

  
246
	public boolean isVisibleApply() {
251
	@Override
252
    public boolean isVisibleApply() {
247 253
		return false;
248 254
	}
249 255

  
250
	public boolean isVisibleCancel() {
256
	@Override
257
    public boolean isVisibleCancel() {
251 258
		return true;
252 259
	}
253 260

  

Also available in: Unified diff