Revision 24962 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/ShowTable.java
ShowTable.java | ||
---|---|---|
51 | 51 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
52 | 52 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
53 | 53 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
54 |
import org.gvsig.project.document.table.FeatureTableDocument; |
|
55 |
import org.gvsig.project.document.table.FeatureTableDocumentFactory; |
|
56 |
import org.gvsig.project.document.table.gui.FeatureTableDocumentPanel; |
|
54 | 57 |
|
55 | 58 |
import com.iver.andami.PluginServices; |
56 | 59 |
import com.iver.andami.messages.NotificationManager; |
57 | 60 |
import com.iver.andami.plugins.Extension; |
58 | 61 |
import com.iver.cit.gvsig.project.ProjectFactory; |
59 |
import com.iver.cit.gvsig.project.documents.table.ProjectTable; |
|
60 |
import com.iver.cit.gvsig.project.documents.table.ProjectTableFactory; |
|
61 |
import com.iver.cit.gvsig.project.documents.table.gui.Table; |
|
62 | 62 |
import com.iver.cit.gvsig.project.documents.view.gui.BaseView; |
63 | 63 |
|
64 | 64 |
|
... | ... | |
133 | 133 |
|
134 | 134 |
ProjectExtension ext = (ProjectExtension) PluginServices.getExtension(ProjectExtension.class); |
135 | 135 |
|
136 |
ProjectTable projectTable = ext.getProject().getTable(co);
|
|
136 |
FeatureTableDocument projectTable = ext.getProject().getTable(co);
|
|
137 | 137 |
FeatureStore fs=((FLyrVect)actives[i]).getFeatureStore(); |
138 | 138 |
// ReadableVectorial rv=((FLyrVect)actives[i]).getSource(); |
139 | 139 |
// if (rv instanceof VectorialEditableAdapter){ |
... | ... | |
147 | 147 |
if (projectTable == null) { |
148 | 148 |
projectTable = ProjectFactory.createTable(PluginServices.getText(this, "Tabla_de_Atributos") + ": " + actives[i].getName(), |
149 | 149 |
fs); |
150 |
projectTable.setProjectDocumentFactory(new ProjectTableFactory());
|
|
151 |
projectTable.setAssociatedTable(co);
|
|
150 |
projectTable.setProjectDocumentFactory(new FeatureTableDocumentFactory());
|
|
151 |
projectTable.setAssociatedLayer(co);
|
|
152 | 152 |
ext.getProject().addDocument(projectTable); |
153 | 153 |
} |
154 | 154 |
projectTable.setModel(fs); |
155 |
Table t = new Table();
|
|
155 |
FeatureTableDocumentPanel t = new FeatureTableDocumentPanel(fs);
|
|
156 | 156 |
t.setModel(projectTable); |
157 | 157 |
if (fs.isEditing()) { |
158 | 158 |
fs.getCommandsRecord().addObserver(t); |
Also available in: Unified diff