Revision 33275 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/DefaultProject.java
DefaultProject.java | ||
---|---|---|
61 | 61 |
import org.gvsig.app.project.documents.layout.LayoutManager; |
62 | 62 |
import org.gvsig.app.project.documents.table.TableDocument; |
63 | 63 |
import org.gvsig.app.project.documents.table.TableManager; |
64 |
import org.gvsig.app.project.documents.view.BaseViewDocument; |
|
64 | 65 |
import org.gvsig.app.project.documents.view.DefaultViewDocument; |
65 | 66 |
import org.gvsig.app.project.documents.view.ViewManager; |
66 | 67 |
import org.gvsig.fmap.mapcontext.MapContext; |
... | ... | |
647 | 648 |
definition.addDynFieldString("name").setMandatory(true); |
648 | 649 |
definition.addDynFieldString("owner").setMandatory(true); |
649 | 650 |
|
650 |
definition.addDynFieldObject("selectionColor").setMandatory(true); |
|
651 |
definition.addDynFieldObject("projection").setMandatory(true); |
|
651 |
definition.addDynFieldObject("selectionColor").setClassOfValue(Color.class).setMandatory(true);
|
|
652 |
definition.addDynFieldObject("projection").setClassOfValue(IProjection.class).setMandatory(true);
|
|
652 | 653 |
|
653 |
definition.addDynFieldList("extents").setMandatory(true); |
|
654 |
definition.addDynFieldList("extents").setClassOfValue(ProjectExtent.class).setMandatory(true);
|
|
654 | 655 |
|
655 |
definition.addDynFieldList("documents").setMandatory(true); |
|
656 |
definition.addDynFieldList("documents").setClassOfValue(Document.class).setMandatory(true);
|
|
656 | 657 |
|
658 |
AbstractDocument.registerPersistent(); |
|
659 |
TableDocument.registerPersistent(); |
|
660 |
BaseViewDocument.registerPersistent(); |
|
661 |
DefaultViewDocument.registerPersistent(); |
|
662 |
LayoutDocument.registerPersistent(); |
|
657 | 663 |
} |
658 | 664 |
|
659 | 665 |
/** |
Also available in: Unified diff