Revision 43984 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.expressionevaluator/org.gvsig.expressionevaluator.swing/org.gvsig.expressionevaluator.swing.impl/src/main/java/org/gvsig/expressionevaluator/swing/impl/DefaultJExpressionBuilder.java
DefaultJExpressionBuilder.java | ||
---|---|---|
10 | 10 |
import java.net.URL; |
11 | 11 |
import java.util.ArrayList; |
12 | 12 |
import java.util.Collection; |
13 |
import java.util.Collections; |
|
14 | 13 |
import java.util.Date; |
15 |
import java.util.HashMap; |
|
16 | 14 |
import java.util.List; |
17 | 15 |
import java.util.Objects; |
18 | 16 |
import javax.swing.DefaultListCellRenderer; |
... | ... | |
35 | 33 |
import org.apache.commons.lang.StringEscapeUtils; |
36 | 34 |
import org.gvsig.expressionevaluator.Expression; |
37 | 35 |
import org.gvsig.expressionevaluator.ExpressionEvaluatorLocator; |
38 |
import org.gvsig.expressionevaluator.ExpressionEvaluatorManager; |
|
39 | 36 |
import org.gvsig.expressionevaluator.Function; |
40 | 37 |
import org.gvsig.expressionevaluator.SymbolTable; |
41 | 38 |
import org.gvsig.expressionevaluator.swing.Element; |
... | ... | |
69 | 66 |
private PickerController<List<Script>> scriptPicker; |
70 | 67 |
private ScriptSwingManager.ScriptEditor scriptEditor; |
71 | 68 |
|
72 |
private ExpressionBuilderConfig config; |
|
69 |
private final ExpressionBuilderConfig config;
|
|
73 | 70 |
|
74 | 71 |
private class ElementsTreeModel implements TreeModel { |
75 | 72 |
|
... | ... | |
337 | 334 |
this.pnlScriptEditorContainer.setLayout(new BorderLayout()); |
338 | 335 |
this.pnlScriptEditorContainer.add(this.scriptEditor.asJComponent(), BorderLayout.CENTER); |
339 | 336 |
|
337 |
this.tabExpressionBuilder.setEnabledAt(0, this.config.getScriptsEnabled()); |
|
340 | 338 |
this.setPreferredSize(new Dimension(750, 500)); |
341 | 339 |
} |
342 | 340 |
|
... | ... | |
559 | 557 |
this.config.removeAllSymbolTables(); |
560 | 558 |
} |
561 | 559 |
|
560 |
@Override |
|
561 |
public void removeSymbolTable(String name) { |
|
562 |
this.config.removeSymbolTable(name); |
|
563 |
} |
|
564 |
|
|
565 |
@Override |
|
566 |
public void setScriptsEnabled(boolean enabled) { |
|
567 |
this.config.setScriptsEnabled(enabled); |
|
568 |
this.tabExpressionBuilder.setEnabledAt(0, this.config.getScriptsEnabled()); |
|
569 |
} |
|
570 |
|
|
571 |
@Override |
|
572 |
public boolean getScriptsEnabled() { |
|
573 |
return this.config.getScriptsEnabled(); |
|
574 |
} |
|
562 | 575 |
|
563 | 576 |
@Override |
564 | 577 |
public JComponent asJComponent() { |
Also available in: Unified diff