Revision 147 branches/usability_v2/org.gvsig.app.document.layout.app/org.gvsig.app.document.layout.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/DefaultLayoutDocument.java

View differences:

DefaultLayoutDocument.java
23 23

  
24 24
import org.gvsig.app.project.documents.AbstractDocument;
25 25
import org.gvsig.app.project.documents.DocumentManager;
26
import org.gvsig.app.project.documents.layout.fframes.FFrame;
27
import org.gvsig.app.project.documents.layout.fframes.FFrameView;
28
import org.gvsig.fmap.mapcontext.MapContext;
29
import org.gvsig.tools.ToolsLocator;
30
import org.gvsig.tools.dynobject.DynStruct;
31
import org.gvsig.tools.persistence.PersistenceManager;
26 32
import org.gvsig.tools.persistence.PersistentState;
27 33
import org.gvsig.tools.persistence.exception.PersistenceException;
28 34

  
......
35 41
    LayoutDocument {
36 42

  
37 43
    private static final long serialVersionUID = 7320640550072493414L;
44
    public static final String PERSISTENCE_DEFINITION_NAME = "DefaultLayoutDocument";
38 45

  
39
    static final String LAYOUTCONTEXT_OBJECT = "layoutContext";
46
    static final String LAYOUT_CONTEXT_OBJECT = "layoutContext";
40 47

  
41 48
    private LayoutContext layoutContext = null;
42 49

  
......
53 60
    public void loadFromState(PersistentState state)
54 61
        throws PersistenceException {
55 62
        super.loadFromState(state);
56
        this.layoutContext = (LayoutContext) state.get(LAYOUTCONTEXT_OBJECT);
63
        this.layoutContext = (LayoutContext) state.get(LAYOUT_CONTEXT_OBJECT);
57 64
    }
58 65

  
59 66
    public void saveToState(PersistentState state) throws PersistenceException {
60 67
        super.saveToState(state);
61
        state.set(LAYOUTCONTEXT_OBJECT, layoutContext);
68
        state.set(LAYOUT_CONTEXT_OBJECT, layoutContext);
62 69
    }
63 70

  
64 71
    public LayoutContext getLayoutContext() {

Also available in: Unified diff