Revision 1021 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.app/org.gvsig.scripting.app.mainplugin/src/main/resources-plugin/scripting/lib/gvsig/table.py
table.py | ||
---|---|---|
59 | 59 |
else: |
60 | 60 |
return self.getFeatureStore().createNewFeature(feature) |
61 | 61 |
|
62 |
def _getWindowOfTable(self): |
|
63 |
application = ApplicationLocator.getManager() |
|
64 |
projectManager = application.getProjectManager() |
|
65 |
tableManager = projectManager.getDocumentManager(TableManager.TYPENAME) |
|
66 |
return tableManager.getMainWindow(self,None) |
|
67 |
|
|
68 |
|
|
62 | 69 |
# |
63 | 70 |
# Inject new methods in the class JTableDocument |
64 | 71 |
# |
... | ... | |
81 | 88 |
JTableDocument.isSelected = _isSelected |
82 | 89 |
JTableDocument.finishEditing = _commit |
83 | 90 |
JTableDocument.cancelEditing = _abort |
91 |
JTableDocument.getWindowOfTable = _getWindowOfTable |
|
84 | 92 |
|
85 | 93 |
|
Also available in: Unified diff