Revision 44263 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/expressionevaluator/ViewElement.java

View differences:

ViewElement.java
1 1
package org.gvsig.app.project.documents.view.expressionevaluator;
2 2

  
3 3
import java.util.ArrayList;
4
import java.util.Collection;
4 5
import java.util.Iterator;
5 6
import java.util.List;
6 7
import org.gvsig.app.ApplicationLocator;
......
27 28
    {
28 29

  
29 30
    private final List<Element> children;
31
    private final List<Element> values;
30 32
    
33
    
31 34
    public ViewElement() {
32 35
        super(
33 36
                "Views",
......
35 38
                "expressionbuilder-element-view"
36 39
        );
37 40
        this.children = new ArrayList<>();
38
        this.children.add(new ViewCaptureRectangleElement());
39
        this.children.add(new ViewCapturePointElement());
40
        this.children.add(new ViewTakeProjectionCodeElement());
41
        this.values = new ArrayList<>();
42
        
43
        this.values.add(new ViewCaptureRectangleElement());
44
        this.values.add(new ViewCapturePointElement());
45
        this.values.add(new ViewTakeProjectionCodeElement());
41 46

  
42 47
        ProjectManager manager = ApplicationLocator.getProjectManager();
43 48
        List<Document> views = manager.getCurrentProject().getDocuments(ViewManager.TYPENAME);
......
48 53
    }
49 54

  
50 55
    @Override
56
    public Collection<Element> getValues() {
57
        return this.values;
58
    }
59

  
60
    @Override
51 61
    public Element setConfig(ExpressionBuilderConfig config) {
52 62
        super.setConfig(config); 
53 63
        for (Element child : children) {
......
86 96
        return this.children;
87 97
    }
88 98

  
89
    @Override
90
    public boolean hasSubgroups() {
91
        return true;
92
    }
93

  
94
    @Override
95
    public boolean hasMoreElements() {
96
        return false;
97
    }
98
    
99 99
}

Also available in: Unified diff