Revision 47326
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/TableManager.java | ||
---|---|---|
47 | 47 |
import org.gvsig.app.project.documents.actions.PasteDocumentAction; |
48 | 48 |
import org.gvsig.app.project.documents.gui.IDocumentWindow; |
49 | 49 |
import org.gvsig.app.project.documents.gui.WindowLayout; |
50 |
import org.gvsig.app.project.documents.table.TableDocument.TableLink; |
|
50 | 51 |
import org.gvsig.app.project.documents.table.gui.FeatureTableDocumentPanel; |
51 | 52 |
import org.gvsig.app.project.documents.table.gui.TableProperties; |
52 | 53 |
import org.gvsig.fmap.dal.AbstractStoresRepository; |
... | ... | |
396 | 397 |
.setClassOfValue(Evaluator.class).setMandatory(false); |
397 | 398 |
factory.persistenceDefinition.addDynFieldObject("baseOrder") |
398 | 399 |
.setClassOfValue(FeatureQueryOrder.class).setMandatory(false); |
400 |
factory.persistenceDefinition.addDynFieldList("linkTable") |
|
401 |
.setClassOfItems(TableLink.class).setMandatory(false); |
|
399 | 402 |
factory.persistenceDefinition.addDynFieldMap("patterns") |
400 | 403 |
.setClassOfItems(String.class).setMandatory(false); |
401 | 404 |
} |
402 | 405 |
|
406 |
//Register also the TableLink |
|
407 |
if (manager.getDefinition(PERSISTENCE_TABLELINK_DEFINITION_NAME) == null){ |
|
408 |
DynStruct tableLinkDefinition = |
|
409 |
manager.addDefinition(TableLink.class, |
|
410 |
PERSISTENCE_TABLELINK_DEFINITION_NAME, |
|
411 |
"TableLink Persistence definition", null, null); |
|
412 |
|
|
413 |
tableLinkDefinition.addDynFieldObject("source") |
|
414 |
.setClassOfValue(TableDocument.class).setMandatory(true); |
|
415 |
tableLinkDefinition.addDynFieldObject("target") |
|
416 |
.setClassOfValue(TableDocument.class).setMandatory(true); |
|
417 |
tableLinkDefinition.addDynFieldString("fieldSource").setMandatory(true); |
|
418 |
tableLinkDefinition.addDynFieldString("fieldTarget").setMandatory(true); |
|
419 |
tableLinkDefinition.addDynFieldBoolean("enabled").setMandatory(true); |
|
420 |
} |
|
403 | 421 |
|
404 | 422 |
ProjectManager.getInstance().registerDocumentFactory(factory); |
405 | 423 |
|
Also available in: Unified diff