Revision 8086
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/pom.xml | ||
---|---|---|
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vcsgis</artifactId> |
|
6 |
<version>1.0.96</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.vcsgis.app</artifactId> |
|
9 |
<packaging>pom</packaging> |
|
10 |
<name>${project.artifactId}</name> |
|
11 |
<modules> |
|
12 |
<module>org.gvsig.vcsgis.app.mainplugin</module> |
|
13 |
<module>org.gvsig.vcsgis.app.server</module> |
|
14 |
</modules> |
|
15 |
|
|
16 |
</project> |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/pom.xml | ||
---|---|---|
1 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
2 |
<modelVersion>4.0.0</modelVersion> |
|
3 |
<parent> |
|
4 |
<groupId>org.gvsig</groupId> |
|
5 |
<artifactId>org.gvsig.vcsgis.app</artifactId> |
|
6 |
<version>1.0.96</version> |
|
7 |
</parent> |
|
8 |
<artifactId>org.gvsig.vcsgis.app.mainplugin</artifactId> |
|
9 |
<packaging>jar</packaging> |
|
10 |
<name>${project.artifactId}</name> |
|
11 |
<properties> |
|
12 |
<!-- Package info property values --> |
|
13 |
<gvsig.package.info.state>testing</gvsig.package.info.state> |
|
14 |
<gvsig.package.info.official>true</gvsig.package.info.official> |
|
15 |
<gvsig.package.info.name>vcsgis</gvsig.package.info.name> |
|
16 |
<gvsig.package.info.description>Provides tools for Version Control System (VCS) for GIS.</gvsig.package.info.description> |
|
17 |
<gvsig.package.info.categories /> |
|
18 |
<gvsig.package.info.javaVM>j1_8</gvsig.package.info.javaVM> |
|
19 |
<gvsig.package.info.poolURL>https://devel.gvsig.org/download/projects/gvsig-vcsgis/pool</gvsig.package.info.poolURL> |
|
20 |
</properties> |
|
21 |
|
|
22 |
<dependencies> |
|
23 |
<dependency> |
|
24 |
<groupId>org.gvsig</groupId> |
|
25 |
<artifactId>org.gvsig.andami</artifactId> |
|
26 |
<scope>compile</scope> |
|
27 |
</dependency> |
|
28 |
<dependency> |
|
29 |
<groupId>org.gvsig</groupId> |
|
30 |
<artifactId>org.gvsig.vcsgis.swing.api</artifactId> |
|
31 |
<scope>compile</scope> |
|
32 |
</dependency> |
|
33 |
<dependency> |
|
34 |
<groupId>org.gvsig</groupId> |
|
35 |
<artifactId>org.gvsig.vcsgis.lib.api</artifactId> |
|
36 |
<scope>compile</scope> |
|
37 |
</dependency> |
|
38 |
<dependency> |
|
39 |
<groupId>org.gvsig</groupId> |
|
40 |
<artifactId>org.gvsig.vcsgis.lib.impl</artifactId> |
|
41 |
<scope>runtime</scope> |
|
42 |
</dependency> |
|
43 |
<dependency> |
|
44 |
<groupId>org.gvsig</groupId> |
|
45 |
<artifactId>org.gvsig.vcsgis.swing.impl</artifactId> |
|
46 |
<scope>runtime</scope> |
|
47 |
</dependency> |
|
48 |
<dependency> |
|
49 |
<groupId>org.gvsig</groupId> |
|
50 |
<artifactId>org.gvsig.app.mainplugin</artifactId> |
|
51 |
<scope>compile</scope> |
|
52 |
</dependency> |
|
53 |
<dependency> |
|
54 |
<groupId>org.gvsig</groupId> |
|
55 |
<artifactId>org.gvsig.app.document.table.app.mainplugin</artifactId> |
|
56 |
<scope>compile</scope> |
|
57 |
</dependency> |
|
58 |
<dependency> |
|
59 |
<groupId>org.apache.httpcomponents</groupId> |
|
60 |
<artifactId>httpclient</artifactId> |
|
61 |
<scope>runtime</scope> |
|
62 |
</dependency> |
|
63 |
<dependency> |
|
64 |
<groupId>org.gvsig</groupId> |
|
65 |
<artifactId>org.gvsig.geodb.app.mainplugin</artifactId> |
|
66 |
<scope>compile</scope> |
|
67 |
</dependency> |
|
68 |
<dependency> |
|
69 |
<groupId>javax.servlet</groupId> |
|
70 |
<artifactId>javax.servlet-api</artifactId> |
|
71 |
<version>3.1.0</version> |
|
72 |
<scope>compile</scope> |
|
73 |
</dependency> |
|
74 |
|
|
75 |
</dependencies> |
|
76 |
|
|
77 |
<build> |
|
78 |
<plugins> |
|
79 |
|
|
80 |
<plugin> |
|
81 |
<groupId>org.apache.maven.plugins</groupId> |
|
82 |
<artifactId>maven-surefire-plugin</artifactId> |
|
83 |
<configuration> |
|
84 |
<systemPropertyVariables> |
|
85 |
<user.language>es</user.language> |
|
86 |
<user.region>ES</user.region> |
|
87 |
</systemPropertyVariables> |
|
88 |
<!-- Skip test execution ? --> |
|
89 |
<skipTests>true</skipTests> |
|
90 |
<!-- Ignore test execution failure ? --> |
|
91 |
<testFailureIgnore>false</testFailureIgnore> |
|
92 |
</configuration> |
|
93 |
</plugin> |
|
94 |
|
|
95 |
<!-- Skip test compilation ? --> |
|
96 |
<plugin> |
|
97 |
<groupId>org.apache.maven.plugins</groupId> |
|
98 |
<artifactId>maven-compiler-plugin</artifactId> |
|
99 |
<executions> |
|
100 |
<execution> |
|
101 |
<id>default-testCompile</id> |
|
102 |
<phase>process-test-sources</phase> |
|
103 |
<goals> |
|
104 |
<goal>testCompile</goal> |
|
105 |
</goals> |
|
106 |
<configuration> |
|
107 |
<skip>false</skip> |
|
108 |
</configuration> |
|
109 |
</execution> |
|
110 |
</executions> |
|
111 |
</plugin> |
|
112 |
|
|
113 |
</plugins> |
|
114 |
</build> |
|
115 |
|
|
116 |
</project> |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/buildNumber.properties | ||
---|---|---|
1 |
#Wed Mar 29 08:11:03 CEST 2023 |
|
2 |
buildNumber=107 |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/scripting/scripts/CatalogVCSGis/workspacesnode.py | ||
---|---|---|
1 |
# encoding: utf-8 |
|
2 |
|
|
3 |
import gvsig |
|
4 |
|
|
5 |
from gvsig.uselib import use_plugin |
|
6 |
use_plugin("org.gvsig.vcsgis.app.mainplugin") |
|
7 |
|
|
8 |
from gvsig import getResource |
|
9 |
from gvsig.commonsdialog import inputbox, msgbox, QUESTION, WARNING, YES, YES_NO |
|
10 |
|
|
11 |
from java.util import Collections |
|
12 |
from java.lang import Throwable |
|
13 |
from javax.swing import JPopupMenu |
|
14 |
from javax.swing import JSeparator |
|
15 |
from javax.swing import JMenuItem |
|
16 |
|
|
17 |
from org.gvsig.andami import PluginsLocator |
|
18 |
from org.gvsig.tools.swing.api import ToolsSwingLocator |
|
19 |
from org.gvsig.fmap.dal.store.jdbc import JDBCServerExplorerParameters |
|
20 |
from org.gvsig.fmap.mapcontext import MapContextLocator |
|
21 |
from org.gvsig.fmap.dal.swing import DALSwingLocator |
|
22 |
from org.gvsig.tools.swing.api import ToolsSwingLocator |
|
23 |
from org.gvsig.tools import ToolsLocator |
|
24 |
from org.gvsig.tools.dispose import DisposeUtils |
|
25 |
from org.gvsig.tools.swing.api.windowmanager import WindowManager, WindowManager_v2 |
|
26 |
|
|
27 |
from addons.Catalog.catalogutils import CatalogNode, CatalogSimpleNode, createJMenuItem, getDataManager, getIconFromParams |
|
28 |
from addons.Catalog.catalogutils import openAsTable, openAsForm, openSearchDialog, openAsParameters, addToBookmarks |
|
29 |
from addons.Catalog.catalogutils import openAsLayer |
|
30 |
|
|
31 |
from org.gvsig.fmap.dal.exception import ValidateDataParametersException |
|
32 |
|
|
33 |
from org.gvsig.app import ApplicationLocator |
|
34 |
from org.gvsig.app.project.documents.table import TableManager |
|
35 |
|
|
36 |
from javax.swing import SwingUtilities |
|
37 |
from java.io import File |
|
38 |
from javax.imageio import ImageIO |
|
39 |
from javax.swing import ImageIcon |
|
40 |
|
|
41 |
from addons.Catalog.cataloglocator import getCatalogManager |
|
42 |
|
|
43 |
from org.gvsig.vcsgis.lib import VCSGisLocator |
|
44 |
from org.gvsig.vcsgis.swing import VCSGisSwingLocator |
|
45 |
|
|
46 |
def confirmDialog(prompt, title, optionType, messageType, msgid=None): |
|
47 |
manager = ToolsSwingLocator.getThreadSafeDialogsManager() |
|
48 |
n = manager.confirmDialog(prompt, title, optionType, messageType, msgid) |
|
49 |
return n |
|
50 |
|
|
51 |
icons = dict() |
|
52 |
|
|
53 |
def getIcon(name): |
|
54 |
icon = icons.get(name,None) |
|
55 |
if icon == None: |
|
56 |
pathname=getResource(__file__,"images", name + ".png") |
|
57 |
f = File(str(pathname)) |
|
58 |
icon = ImageIcon(ImageIO.read(f)) |
|
59 |
icons[name] = icon |
|
60 |
return icon |
|
61 |
|
|
62 |
class VCSGisWorkspaces(CatalogNode): |
|
63 |
def __init__(self, parent): |
|
64 |
CatalogNode.__init__(self,parent, icon=getIcon("workspaces")) |
|
65 |
self.__load() |
|
66 |
|
|
67 |
def __load(self,*args): |
|
68 |
self._children = list() |
|
69 |
descriptors_map = VCSGisLocator.getVCSGisManager().getWorkspaces() |
|
70 |
descriptors = list(descriptors_map.values()) |
|
71 |
descriptors.sort(lambda x,y : cmp(x.getLabel().lower(),y.getLabel().lower())) |
|
72 |
for descriptor in descriptors: |
|
73 |
self._children.append(VCSGisWorkspace(self, descriptor)) |
|
74 |
self.reload() |
|
75 |
|
|
76 |
def toString(self): |
|
77 |
i18n = ToolsLocator.getI18nManager() |
|
78 |
return i18n.getTranslation("_VCSGis") |
|
79 |
|
|
80 |
def createPopup(self): |
|
81 |
i18n = ToolsLocator.getI18nManager() |
|
82 |
menu = JPopupMenu() |
|
83 |
menu.add(createJMenuItem(i18n.getTranslation("_Update"),self.__load)) |
|
84 |
return menu |
|
85 |
|
|
86 |
class VCSGisWorkspace(CatalogNode): |
|
87 |
def __init__(self, parent, descriptor): |
|
88 |
CatalogNode.__init__(self, parent, icon=getIconFromParams(descriptor.getExplorerParameters())) |
|
89 |
self.__descriptor = descriptor |
|
90 |
self.__params = descriptor.getExplorerParameters() |
|
91 |
|
|
92 |
def getServerExplorer(self): |
|
93 |
return self.__descriptor.getExplorer() |
|
94 |
|
|
95 |
def _getChildren(self): |
|
96 |
if self._children == None: |
|
97 |
self.__load() |
|
98 |
return self._children |
|
99 |
|
|
100 |
def __load(self,*args): |
|
101 |
self._children = list() |
|
102 |
self._children.append(VCSGisCategories(self, self.__descriptor)) |
|
103 |
self._children.append(VCSGisModels(self, self.__descriptor)) |
|
104 |
self._children.append(VCSGisResources(self, self.__descriptor)) |
|
105 |
self._children.append(VCSGisTables(self, self.__descriptor)) |
|
106 |
SwingUtilities.invokeLater(self.reload) |
|
107 |
|
|
108 |
def createPopup(self): |
|
109 |
i18n = ToolsLocator.getI18nManager() |
|
110 |
menu = JPopupMenu() |
|
111 |
menu.add(createJMenuItem(i18n.getTranslation("_Edit_parameters"),self.editParameters)) |
|
112 |
menu.add(createJMenuItem(i18n.getTranslation("_Show_config"),lambda e: self.__showTable("VCSGIS_CONFIG"))) |
|
113 |
menu.add(createJMenuItem(i18n.getTranslation("_Create_connexion"),lambda e: None, enabled=False)) |
|
114 |
menu.add(JSeparator()) |
|
115 |
menu.add(createJMenuItem(i18n.getTranslation("_Copy_URL"),self.copyURL)) |
|
116 |
menu.add(JSeparator()) |
|
117 |
menu.add(createJMenuItem(i18n.getTranslation("_Update"),self.__load)) |
|
118 |
return menu |
|
119 |
|
|
120 |
def __showTable(self, tablename): |
|
121 |
serverExplorer = self.__descriptor.getExplorer() |
|
122 |
params = serverExplorer.get(tablename) |
|
123 |
#openAsTable(params) |
|
124 |
#openAsForm(params) |
|
125 |
openSearchDialog(params) |
|
126 |
|
|
127 |
def editParameters(self, event=None): |
|
128 |
manager = DALSwingLocator.getDataStoreParametersPanelManager() |
|
129 |
panel = manager.createDataStoreParametersPanel(self.__params) |
|
130 |
manager.showPropertiesDialog(self.__params, panel) |
|
131 |
|
|
132 |
def copyURL(self, event=None): |
|
133 |
application = ApplicationLocator.getApplicationManager() |
|
134 |
url = self.__params.getDynValue("URL") |
|
135 |
if url.startswith("jdbc:h2:file:"): |
|
136 |
url = url.replace("jdbc:h2:file:","jdbc:h2:tcp://localhost:9123/") |
|
137 |
if url.startswith("jdbc:h2:split:"): |
|
138 |
url = url.replace("jdbc:h2:split:","jdbc:h2:tcp://localhost:9123/split:") |
|
139 |
application.putInClipboard(url) |
|
140 |
|
|
141 |
def toString(self): |
|
142 |
return self.__descriptor.getLabel() |
|
143 |
|
|
144 |
class VCSGisModels(CatalogNode): |
|
145 |
def __init__(self, parent, descriptor): |
|
146 |
CatalogNode.__init__(self, parent, icon=getIcon("modelos")) |
|
147 |
self.__descriptor = descriptor |
|
148 |
|
|
149 |
def _getChildren(self): |
|
150 |
if self._children == None: |
|
151 |
self.__load() |
|
152 |
return self._children |
|
153 |
|
|
154 |
def __load(self): |
|
155 |
self._children = list() |
|
156 |
try : |
|
157 |
ws = self.__descriptor.getWorkspace() |
|
158 |
for model in ws.getWorkspaceDataModels(): |
|
159 |
self._children.append(VCSGisModel(self, self.__descriptor, model)) |
|
160 |
except Throwable as e: |
|
161 |
e.printStackTrace() |
|
162 |
pass |
|
163 |
finally: |
|
164 |
DisposeUtils.disposeQuietly(ws) |
|
165 |
SwingUtilities.invokeLater(self.reload) |
|
166 |
|
|
167 |
def toString(self): |
|
168 |
i18n = ToolsLocator.getI18nManager() |
|
169 |
return i18n.getTranslation("_Models") |
|
170 |
|
|
171 |
class VCSGisModel(CatalogNode): |
|
172 |
def __init__(self, parent, descriptor, model): |
|
173 |
CatalogNode.__init__(self, parent, icon=getIcon("modelo")) |
|
174 |
self.__descriptor = descriptor |
|
175 |
self.__model = model |
|
176 |
|
|
177 |
def _getChildren(self): |
|
178 |
if self._children == None: |
|
179 |
self.__load() |
|
180 |
return self._children |
|
181 |
|
|
182 |
def __load(self): |
|
183 |
self._children = list() |
|
184 |
try : |
|
185 |
ws = self.__descriptor.getWorkspace() |
|
186 |
entities = ws.getWorkspaceEntities() |
|
187 |
entities.sort(lambda x,y : cmp(x.getLabel().lower(),y.getLabel().lower())) |
|
188 |
for entity in entities: |
|
189 |
if self.__model in entity.getDataModelsAsList(): |
|
190 |
params = ws.createOpenStoreParameters(entity.getEntityName()) |
|
191 |
self._children.append(VCSGisTable(self, params, entity, self.__descriptor)) |
|
192 |
except Throwable as e: |
|
193 |
e.printStackTrace() |
|
194 |
pass |
|
195 |
finally: |
|
196 |
DisposeUtils.disposeQuietly(ws) |
|
197 |
SwingUtilities.invokeLater(self.reload) |
|
198 |
|
|
199 |
def createPopup(self): |
|
200 |
i18n = ToolsLocator.getI18nManager() |
|
201 |
menu = JPopupMenu() |
|
202 |
menu.add(createJMenuItem(i18n.getTranslation("_VCS_Connect_to_datamodel"),lambda e:self.__connectToDataModel(),"tools-vcsgis-checkout-datamodel")) |
|
203 |
return menu |
|
204 |
|
|
205 |
def __connectToDataModel(self): |
|
206 |
PluginsLocator.getActionInfoManager().execute( |
|
207 |
"tools-vcsgis-checkout-datamodel", ( |
|
208 |
"--workspace=", self.__descriptor.getWorkspace(), |
|
209 |
"--model=", self.__model |
|
210 |
)) |
|
211 |
|
|
212 |
def toString(self): |
|
213 |
return self.__model |
|
214 |
|
|
215 |
class VCSGisResources(CatalogNode): |
|
216 |
def __init__(self, parent, descriptor): |
|
217 |
CatalogNode.__init__(self, parent, icon=getIcon("resources")) |
|
218 |
self.__descriptor = descriptor |
|
219 |
|
|
220 |
def _getChildren(self): |
|
221 |
if self._children == None: |
|
222 |
self.__load() |
|
223 |
return self._children |
|
224 |
|
|
225 |
def __load(self): |
|
226 |
self._children = list() |
|
227 |
try : |
|
228 |
ws = self.__descriptor.getWorkspace() |
|
229 |
for resource in ws.getWorkspaceResourcesTableNames(): |
|
230 |
entity = ws.getWorkspaceEntity(resource) |
|
231 |
if entity != None: |
|
232 |
params = ws.createOpenStoreParameters(entity.getEntityName()) |
|
233 |
self._children.append(VCSGisTable(self, params, entity, self.__descriptor)) |
|
234 |
except Throwable as e: |
|
235 |
e.printStackTrace() |
|
236 |
pass |
|
237 |
finally: |
|
238 |
DisposeUtils.disposeQuietly(ws) |
|
239 |
SwingUtilities.invokeLater(self.reload) |
|
240 |
|
|
241 |
def toString(self): |
|
242 |
i18n = ToolsLocator.getI18nManager() |
|
243 |
return i18n.getTranslation("_Resources") |
|
244 |
|
|
245 |
class VCSGisCategories(CatalogNode): |
|
246 |
def __init__(self, parent, descriptor): |
|
247 |
CatalogNode.__init__(self, parent, icon=getIcon("tags")) |
|
248 |
self.__descriptor = descriptor |
|
249 |
|
|
250 |
def _getChildren(self): |
|
251 |
if self._children == None: |
|
252 |
self.__load() |
|
253 |
return self._children |
|
254 |
|
|
255 |
def __load(self): |
|
256 |
self._children = list() |
|
257 |
try : |
|
258 |
ws = self.__descriptor.getWorkspace() |
|
259 |
for category in ws.getWorkspaceEntityCategories(): |
|
260 |
self._children.append(VCSGisCategory(self, self.__descriptor, category)) |
|
261 |
except Throwable as e: |
|
262 |
e.printStackTrace() |
|
263 |
pass |
|
264 |
finally: |
|
265 |
DisposeUtils.disposeQuietly(ws) |
|
266 |
SwingUtilities.invokeLater(self.reload) |
|
267 |
|
|
268 |
def toString(self): |
|
269 |
i18n = ToolsLocator.getI18nManager() |
|
270 |
return i18n.getTranslation("_Categories") |
|
271 |
|
|
272 |
class VCSGisCategory(CatalogNode): |
|
273 |
def __init__(self, parent, descriptor, category): |
|
274 |
CatalogNode.__init__(self, parent, icon=getIcon("tag")) |
|
275 |
self.__descriptor = descriptor |
|
276 |
self.__category = category |
|
277 |
|
|
278 |
def _getChildren(self): |
|
279 |
if self._children == None: |
|
280 |
self.__load() |
|
281 |
return self._children |
|
282 |
|
|
283 |
def __load(self): |
|
284 |
self._children = list() |
|
285 |
try : |
|
286 |
ws = self.__descriptor.getWorkspace() |
|
287 |
entities = ws.getWorkspaceEntities() |
|
288 |
entities.sort(lambda x,y : cmp(x.getLabel().lower(),y.getLabel().lower())) |
|
289 |
for entity in entities: |
|
290 |
if self.__category in entity.getCategoriesAsList(): |
|
291 |
params = ws.createOpenStoreParameters(entity.getEntityName()) |
|
292 |
self._children.append(VCSGisTable(self, params, entity, self.__descriptor)) |
|
293 |
except Throwable as e: |
|
294 |
e.printStackTrace() |
|
295 |
pass |
|
296 |
finally: |
|
297 |
DisposeUtils.disposeQuietly(ws) |
|
298 |
SwingUtilities.invokeLater(self.reload) |
|
299 |
|
|
300 |
def toString(self): |
|
301 |
return self.__category |
|
302 |
|
|
303 |
class VCSGisTables(CatalogNode): |
|
304 |
def __init__(self, parent, descriptor): |
|
305 |
CatalogNode.__init__(self, parent, icon=getIcon("tables")) |
|
306 |
self.__descriptor = descriptor |
|
307 |
|
|
308 |
def _getChildren(self): |
|
309 |
if self._children == None: |
|
310 |
self.__load() |
|
311 |
return self._children |
|
312 |
|
|
313 |
def __load(self): |
|
314 |
self._children = list() |
|
315 |
try : |
|
316 |
ws = self.__descriptor.getWorkspace() |
|
317 |
entities = ws.getWorkspaceEntities() |
|
318 |
entities.sort(lambda x,y : cmp(x.getLabel().lower(),y.getLabel().lower())) |
|
319 |
for entity in entities: |
|
320 |
params = ws.createOpenStoreParameters(entity.getEntityName()) |
|
321 |
self._children.append(VCSGisTable(self, params, entity, self.__descriptor)) |
|
322 |
except Throwable as e: |
|
323 |
e.printStackTrace() |
|
324 |
pass |
|
325 |
finally: |
|
326 |
DisposeUtils.disposeQuietly(ws) |
|
327 |
SwingUtilities.invokeLater(self.reload) |
|
328 |
|
|
329 |
def toString(self): |
|
330 |
i18n = ToolsLocator.getI18nManager() |
|
331 |
return i18n.getTranslation("_Tables") |
|
332 |
|
|
333 |
|
|
334 |
class VCSGisTable(CatalogSimpleNode): |
|
335 |
def __init__(self, parent, params, entity, wsdescriptor): |
|
336 |
CatalogSimpleNode.__init__(self, parent, icon=getIcon("table")) |
|
337 |
self.__entity = entity |
|
338 |
self.__params = params |
|
339 |
self.__wsdescriptor = wsdescriptor |
|
340 |
|
|
341 |
def getParams(self): |
|
342 |
return self.__params |
|
343 |
|
|
344 |
def toString(self): |
|
345 |
return self.__entity.getLabel() |
|
346 |
|
|
347 |
def createPopup(self): |
|
348 |
i18n = ToolsLocator.getI18nManager() |
|
349 |
menu = JPopupMenu() |
|
350 |
menu.add(createJMenuItem(i18n.getTranslation("_Add_to_view"),self.actionPerformed, "view-layer-add")) |
|
351 |
menu.add(createJMenuItem(i18n.getTranslation("_Open_as_table"),self.openAsTable, "layer-show-attributes-table")) |
|
352 |
menu.add(createJMenuItem(i18n.getTranslation("_Open_as_form"),self.openAsForm, "layer-show-form")) |
|
353 |
menu.add(createJMenuItem(i18n.getTranslation("_Open_search_dialog"),self.openSearchDialog, "search-by-attributes-layer")) |
|
354 |
menu.add(JSeparator()) |
|
355 |
menu.add(createJMenuItem(i18n.getTranslation("_Add_to_bookmarks"),self.addToBookmarks)) |
|
356 |
menu.add(JSeparator()) |
|
357 |
menu.add(createJMenuItem(i18n.getTranslation("_Remove_entity"),self.removeEntity)) |
|
358 |
menu.add(createJMenuItem(i18n.getTranslation("_Edit_parameters"),self.editParameters)) |
|
359 |
menu.add(JSeparator()) |
|
360 |
menu.add(createJMenuItem(i18n.getTranslation("_VCS_Checkout"),lambda e:self.__showCheckout(), "tools-vcsgis-checkout")) |
|
361 |
menu.add(createJMenuItem(i18n.getTranslation("_VCS_Show_changes"),lambda e:self.__showChanges(), "tools-vcsgis-showchanges")) |
|
362 |
actions = getCatalogManager().getActions("VCSGIS_TABLE", self.__params) |
|
363 |
if len(actions)>0 : |
|
364 |
menu.add(JSeparator()) |
|
365 |
for action in actions: |
|
366 |
menu.add(JMenuItem(action)) |
|
367 |
return menu |
|
368 |
|
|
369 |
def __showCheckout(self): |
|
370 |
PluginsLocator.getActionInfoManager().execute( |
|
371 |
"tools-vcsgis-checkout", ( |
|
372 |
"--workspace=", self.__wsdescriptor.getWorkspace(), |
|
373 |
"--tablenames=", (self.__entity.getEntityName(),), |
|
374 |
"--overwrite=", True |
|
375 |
)) |
|
376 |
|
|
377 |
def __showChanges(self): |
|
378 |
PluginsLocator.getActionInfoManager().execute( |
|
379 |
"tools-vcsgis-showchanges", ( |
|
380 |
"--workspace=", self.__wsdescriptor.getWorkspace(), |
|
381 |
"--tablenames=", (self.__entity.getEntityName(),), |
|
382 |
)) |
|
383 |
|
|
384 |
def removeEntity(self, *args): |
|
385 |
ws = self.__wsdescriptor.getWorkspace() |
|
386 |
ws.removeEntity(self.__entity.getEntityName()) |
|
387 |
self.reload() |
|
388 |
|
|
389 |
def openAsForm(self, *args): |
|
390 |
openAsForm(self.getParams()) |
|
391 |
|
|
392 |
def openSearchDialog(self, *args): |
|
393 |
#menu.add(createJMenuItem(i18n.getTranslation("_Open_search_dialog"),self.openSearchDialog)) |
|
394 |
openSearchDialog(self.getParams()) |
|
395 |
|
|
396 |
def addToBookmarks(self, event=None): |
|
397 |
addToBookmarks(self.getRoot(), self.getParams(), self.__entity.getLabel()) |
|
398 |
|
|
399 |
def openAsTable(self, event): |
|
400 |
openAsTable(self.getParams(), self.__entity.getLabel()) |
|
401 |
|
|
402 |
def editParameters(self, event): |
|
403 |
openAsParameters(self.getParams()) |
|
404 |
|
|
405 |
def actionPerformed(self, event): |
|
406 |
openAsLayer(self.getParams(), self.__entity.getLabel()) |
|
407 |
|
|
408 |
def selfRegister(*args): |
|
409 |
catalogManager = getCatalogManager() |
|
410 |
catalogManager.addCatalogNode(VCSGisWorkspaces) |
|
411 |
catalogManager.putCatalogInViews() |
|
412 |
|
|
413 |
|
|
414 |
def main(*args): |
|
415 |
selfRegister() |
|
416 |
pass |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/scripting/scripts/CatalogVCSGis/workspacesnode.inf | ||
---|---|---|
1 |
[script] |
|
2 |
enable = true |
|
3 |
|
|
4 |
[Unit] |
|
5 |
type = Script |
|
6 |
name = workspacesnode |
|
7 |
description = |
|
8 |
createdBy = |
|
9 |
version = |
|
10 |
|
|
11 |
[Script] |
|
12 |
main = main |
|
13 |
Lang = python |
|
14 |
enable = true |
|
15 |
|
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/scripting/scripts/CatalogVCSGis/autorun.py | ||
---|---|---|
1 |
# encoding: utf-8 |
|
2 |
|
|
3 |
import gvsig |
|
4 |
|
|
5 |
from CatalogVCSGis.workspacesnode import selfRegister |
|
6 |
|
|
7 |
def main(*args): |
|
8 |
selfRegister() |
|
9 |
|
|
10 |
|
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/scripting/scripts/CatalogVCSGis/__init__.py | ||
---|---|---|
1 |
|
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/scripting/scripts/CatalogVCSGis/autorun.inf | ||
---|---|---|
1 |
[Unit] |
|
2 |
type = Script |
|
3 |
name = autorun |
|
4 |
description = |
|
5 |
createdBy = |
|
6 |
version = |
|
7 |
|
|
8 |
[Script] |
|
9 |
main = main |
|
10 |
Lang = python |
|
11 |
enable = true |
|
12 |
isolationGroup = gvsig-base |
|
13 |
|
|
14 |
[properties] |
|
15 |
autorun.group.name = gvsig-base |
|
16 |
autorun.group.order = 1000 |
|
17 |
autorun.order = 2980 |
|
18 |
|
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/config.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 |
<!-- gvSIG. Desktop Geographic Information System. Copyright (C) 2007-2013 gvSIG |
|
3 |
Association. This program is free software; you can redistribute it and/or modify |
|
4 |
it under the terms of the GNU General Public License as published by the Free Software |
|
5 |
Foundation; either version 3 of the License, or (at your option) any later version. |
|
6 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
|
7 |
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
8 |
PURPOSE. See the GNU General Public License for more details. You should have received |
|
9 |
a copy of the GNU General Public License along with this program; if not, write to |
|
10 |
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, |
|
11 |
USA. For any additional information, do not hesitate to contact us at info AT gvsig.com, |
|
12 |
or visit our website www.gvsig.com. --> |
|
13 |
<plugin-config> |
|
14 |
<depends plugin-name="org.gvsig.app.mainplugin" /> |
|
15 |
<depends plugin-name="org.gvsig.app.document.table.app.mainplugin" /> |
|
16 |
<depends plugin-name="org.gvsig.topology.app.mainplugin" optional="true"/> |
|
17 |
<!-- <depends plugin-name="org.gvsig.shp.app.mainplugin" />--> |
|
18 |
<depends plugin-name="org.gvsig.geodb.app.mainplugin" /> |
|
19 |
<depends plugin-name="org.gvsig.csv.app.mainplugin"/> |
|
20 |
<depends plugin-name="org.gvsig.h2spatial.h2gis132.app.mainplugin" /> |
|
21 |
<resourceBundle name="text" /> |
|
22 |
<libraries library-dir="lib" /> |
|
23 |
<extensions> |
|
24 |
<extension class-name="org.gvsig.vcsgis.app.VCSGisExtension" |
|
25 |
description="" active="true" priority="1"> |
|
26 |
|
|
27 |
<action |
|
28 |
name="tools-vcsgis-init-server" |
|
29 |
label="_VCS_Initialize_repository" |
|
30 |
tooltip="_VCS_Initialize_repository" |
|
31 |
position="900700101" |
|
32 |
action-command="tools-vcsgis-init-server" |
|
33 |
icon="tools-vcsgis-init-server" |
|
34 |
accelerator="" |
|
35 |
/> |
|
36 |
|
|
37 |
<action |
|
38 |
name="tools-vcsgis-register-workspace" |
|
39 |
label="_VCS_Register_workingcopy" |
|
40 |
tooltip="_Register_workingcopy" |
|
41 |
position="900700103" |
|
42 |
action-command="tools-vcsgis-register-workspace" |
|
43 |
icon="tools-vcsgis-register-workspace" |
|
44 |
accelerator="" |
|
45 |
/> |
|
46 |
|
|
47 |
<action |
|
48 |
name="tools-vcsgis-registrationeditingstores" |
|
49 |
label="_VCS_Registration_of_editing_stores" |
|
50 |
tooltip="_VCS_Registration_of_editing_stores" |
|
51 |
position="900700103" |
|
52 |
action-command="tools-vcsgis-registrationeditingstores" |
|
53 |
icon="tools-vcsgis-registrationeditingstores" |
|
54 |
accelerator="" |
|
55 |
/> |
|
56 |
|
|
57 |
<action |
|
58 |
name="tools-vcsgis-repositoryentityfeaturetypeeditor" |
|
59 |
label="_VCS_Registration_of_editing_stores" |
|
60 |
tooltip="_VCS_Registration_of_editing_stores" |
|
61 |
position="900700104" |
|
62 |
action-command="tools-vcsgis-repositoryentityfeaturetypeeditor" |
|
63 |
icon="tools-vcsgis-repositoryentityfeaturetypeeditor" |
|
64 |
accelerator="" |
|
65 |
/> |
|
66 |
|
|
67 |
<action |
|
68 |
name="tools-vcsgis-show_server-entities" |
|
69 |
label="_VCS_Show_server_entities" |
|
70 |
tooltip="_VCS_Show_server_entities" |
|
71 |
position="900700105" |
|
72 |
action-command="tools-vcsgis-show_server-entities" |
|
73 |
icon="tools-vcsgis-show-server-entities" |
|
74 |
accelerator="" |
|
75 |
/> |
|
76 |
|
|
77 |
<action |
|
78 |
name="tools-vcsgis-show_server-hooks" |
|
79 |
label="_VCS_Show_server_hooks" |
|
80 |
tooltip="_VCS_Show_server_hooks" |
|
81 |
position="900700106" |
|
82 |
action-command="tools-vcsgis-show_server-hooks" |
|
83 |
icon="tools-vcsgis-show-server-hooks" |
|
84 |
accelerator="" |
|
85 |
/> |
|
86 |
|
|
87 |
<action |
|
88 |
name="tools-vcsgis-init-workspace" |
|
89 |
label="_VCS_Initialize_workingcopy" |
|
90 |
tooltip="_VCS_Initialize_workingcopy" |
|
91 |
position="900700200" |
|
92 |
action-command="tools-vcsgis-init-workspace" |
|
93 |
icon="tools-vcsgis-init-workspace" |
|
94 |
accelerator="" |
|
95 |
/> |
|
96 |
|
|
97 |
<action |
|
98 |
name="tools-vcsgis-download-workingcopy" |
|
99 |
label="_VCS_download_workingcopy" |
|
100 |
tooltip="_VCS_download_workingcopy" |
|
101 |
position="900700210" |
|
102 |
action-command="tools-vcsgis-download-workingcopy" |
|
103 |
icon="tools-vcsgis-download-workingcopy" |
|
104 |
accelerator="" |
|
105 |
/> |
|
106 |
|
|
107 |
<action |
|
108 |
name="tools-vcsgis-add-to-workspace" |
|
109 |
label="_Add_to_VCS_workingcopy" |
|
110 |
tooltip="_Add_table_or_layer_to_VCS_workingcopy" |
|
111 |
position="900700300" |
|
112 |
action-command="tools-vcsgis-add-to-workspace" |
|
113 |
icon="tools-vcsgis-add-to-workspace" |
|
114 |
accelerator="" |
|
115 |
/> |
|
116 |
|
|
117 |
<action |
|
118 |
name="tools-vcsgis-import-history" |
|
119 |
label="_Import_history_to_VCSGis_repository" |
|
120 |
tooltip="_Import_a_table_or_layer_with_history_to_a_VCSGis_repository" |
|
121 |
position="900700300" |
|
122 |
action-command="tools-vcsgis-import-history" |
|
123 |
icon="tools-vcsgis-add-to-workspace" |
|
124 |
accelerator="" |
|
125 |
/> |
|
126 |
|
|
127 |
<action |
|
128 |
name="tools-vcsgis-checkout" |
|
129 |
label="_VCS_checkout" |
|
130 |
tooltip="_Checkout_table_from_VCS_repository" |
|
131 |
position="900700220" |
|
132 |
action-command="tools-vcsgis-checkout" |
|
133 |
icon="tools-vcsgis-checkout" |
|
134 |
accelerator="" |
|
135 |
/> |
|
136 |
|
|
137 |
<action |
|
138 |
name="tools-vcsgis-checkout-datamodel" |
|
139 |
label="_VCS_Connect_to_datamodel" |
|
140 |
tooltip="_VCS_Connect_to_datamodel" |
|
141 |
position="900701000" |
|
142 |
action-command="tools-vcsgis-checkout-datamodel" |
|
143 |
icon="tools-vcsgis-checkout-datamodel" |
|
144 |
accelerator="" |
|
145 |
/> |
|
146 |
|
|
147 |
<action |
|
148 |
name="tools-vcsgis-export" |
|
149 |
label="_VCS_Export" |
|
150 |
tooltip="_Export_to_a_local_table_a_table_of_the_repository" |
|
151 |
position="900700500" |
|
152 |
action-command="tools-vcsgis-export" |
|
153 |
icon="tools-vcsgis-export" |
|
154 |
accelerator="" |
|
155 |
/> |
|
156 |
|
|
157 |
<action |
|
158 |
name="tools-vcsgis-showchanges" |
|
159 |
label="_VCS_Show_changes" |
|
160 |
tooltip="_VCS_Show_changes" |
|
161 |
position="900702000" |
|
162 |
action-command="tools-vcsgis-showchanges" |
|
163 |
icon="tools-vcsgis-showchanges" |
|
164 |
accelerator="" |
|
165 |
/> |
|
166 |
|
|
167 |
<action |
|
168 |
name="tools-vcsgis-register-workspace" |
|
169 |
label="_VCS_Register_workingcopy" |
|
170 |
tooltip="_Register_workingcopy" |
|
171 |
position="900700300" |
|
172 |
action-command="tools-vcsgis-register-workspace" |
|
173 |
icon="tools-vcsgis-register-workspace" |
|
174 |
accelerator="" |
|
175 |
/> |
|
176 |
|
|
177 |
<action |
|
178 |
name="tools-vcsgis-prepare-workingcopy" |
|
179 |
label="_VCS_Prepare_workingcopy" |
|
180 |
tooltip="_Prepare_workingcopy" |
|
181 |
position="900700400" |
|
182 |
action-command="tools-vcsgis-prepare-workingcopy" |
|
183 |
icon="tools-vcsgis-prepare-workingcopy" |
|
184 |
accelerator="" |
|
185 |
/> |
|
186 |
|
|
187 |
<action |
|
188 |
name="tools-vcsgis-show-revisions" |
|
189 |
label="_VCS_Revisions" |
|
190 |
tooltip="_Show_revisions_panel" |
|
191 |
position="900700600" |
|
192 |
action-command="tools-vcsgis-show-revisions" |
|
193 |
icon="tools-vcsgis-show-revisions" |
|
194 |
accelerator="" |
|
195 |
/> |
|
196 |
|
|
197 |
<action |
|
198 |
name="tools-vcsgis-create-resource-table" |
|
199 |
label="_VCS_Create_resource_table" |
|
200 |
tooltip="_Create_resource_table" |
|
201 |
position="900700104" |
|
202 |
action-command="tools-vcsgis-create-resource-table" |
|
203 |
icon="" |
|
204 |
accelerator="" |
|
205 |
/> |
|
206 |
|
|
207 |
<action |
|
208 |
name="tools-vcsgis-logout" |
|
209 |
label="_VCS_Logout_from_working_copy" |
|
210 |
tooltip="_Logout_from_working_copy" |
|
211 |
position="900700404" |
|
212 |
action-command="tools-vcsgis-logout" |
|
213 |
icon="" |
|
214 |
accelerator="" |
|
215 |
/> |
|
216 |
|
|
217 |
<action |
|
218 |
name="tools-vcsgis-backup-history" |
|
219 |
label="_VCS_Backup_history" |
|
220 |
tooltip="_Backup_history" |
|
221 |
position="900700800" |
|
222 |
action-command="tools-vcsgis-backup-history" |
|
223 |
icon="tools-vcsgis-backup-history" |
|
224 |
accelerator="" |
|
225 |
/> |
|
226 |
|
|
227 |
<action |
|
228 |
name="tools-vcsgis-restore-history" |
|
229 |
label="_VCS_Restore_history" |
|
230 |
tooltip="_Restore_history" |
|
231 |
position="900700900" |
|
232 |
action-command="tools-vcsgis-restore-history" |
|
233 |
icon="tools-vcsgis-restore-history" |
|
234 |
accelerator="" |
|
235 |
/> |
|
236 |
|
|
237 |
|
|
238 |
|
|
239 |
<menu text="tools/_VCSGis/_Administration/_VCS_Initialize_repository" name="tools-vcsgis-init-server" /> |
|
240 |
<!-- |
|
241 |
<menu text="tools/_VCSGis/_Administration/_VCS_Registration_workingcopies" name="tools-vcsgis-register-workspace" /> |
|
242 |
--> |
|
243 |
<menu text="tools/_VCSGis/_Administration/_VCS_Registration_of_editing_stores" name="tools-vcsgis-registrationeditingstores" /> |
|
244 |
<menu text="tools/_VCSGis/_Administration/_VCS_Repository_entity_feature_type_editor" name="tools-vcsgis-repositoryentityfeaturetypeeditor" /> |
|
245 |
<menu text="tools/_VCSGis/_Administration/_VCS_Prepare_workingcopy" name="tools-vcsgis-prepare-workingcopy" /> |
|
246 |
<menu text="tools/_VCSGis/_Administration/_VCS_Create_resource_table" name="tools-vcsgis-create-resource-table" /> |
|
247 |
<menu text="tools/_VCSGis/_Administration/_VCS_Import_history" name="tools-vcsgis-import-history" /> |
|
248 |
<menu text="tools/_VCSGis/_Administration/_Backups/_VCS_Backup_history" name="tools-vcsgis-backup-history" /> |
|
249 |
<menu text="tools/_VCSGis/_Administration/_Backups/_VCS_Restore_history" name="tools-vcsgis-restore-history" /> |
|
250 |
<menu text="tools/_VCSGis/_VCS_Initialize_workingcopy" name="tools-vcsgis-init-workspace" /> |
|
251 |
<menu text="tools/_VCSGis/_VCS_Download_workingcopy" name="tools-vcsgis-download-workingcopy" /> |
|
252 |
<menu text="tools/_VCSGis/_VCS_Add_to_workingcopy" name="tools-vcsgis-add-to-workspace" /> |
|
253 |
<menu text="tools/_VCSGis/_VCS_Checkout" name="tools-vcsgis-checkout" /> |
|
254 |
<!-- |
|
255 |
<menu text="tools/_VCSGis/_VCS_Export" name="tools-vcsgis-export" /> |
|
256 |
--> |
|
257 |
<menu text="tools/_VCSGis/_VCS_Show_revisions" name="tools-vcsgis-show-revisions" /> |
|
258 |
<menu text="tools/_VCSGis/_VCS_Logout" name="tools-vcsgis-logout" /> |
|
259 |
<menu text="tools/_VCSGis/_VCS_Show_changes" name="tools-vcsgis-showchanges" /> |
|
260 |
<menu text="tools/_VCSGis/_VCS_Connect_to_datamodel" name="tools-vcsgis-checkout-datamodel" /> |
|
261 |
|
|
262 |
<tool-bar name="vcsgis" position="900700300"> |
|
263 |
<!--<action-tool name="tools-vcsgis-init-server" />--> |
|
264 |
<!--<action-tool name="tools-vcsgis-init-workspace" />--> |
|
265 |
<action-tool name="tools-vcsgis-download-workingcopy" /> |
|
266 |
<action-tool name="tools-vcsgis-checkout" /> |
|
267 |
<action-tool name="tools-vcsgis-add-to-workspace" /> |
|
268 |
<action-tool name="tools-vcsgis-checkout-datamodel" /> |
|
269 |
<action-tool name="tools-vcsgis-showchanges" /> |
|
270 |
</tool-bar> |
|
271 |
|
|
272 |
</extension> |
|
273 |
<extension class-name="org.gvsig.vcsgis.app.VCSGisExecuteTopologyPlanExtension" |
|
274 |
description="" active="true" priority="1"> |
|
275 |
|
|
276 |
<action |
|
277 |
name="tools-vcsgis-execute-topologyplan" |
|
278 |
label="_VCS_Execute_topology_plan" |
|
279 |
tooltip="_VCS_Execute_topology_plan_of_active_layer" |
|
280 |
position="908300300" |
|
281 |
action-command="tools-vcsgis-execute-topologyplan" |
|
282 |
icon="tools-vcsgis-execute-topologyplan" |
|
283 |
accelerator="" |
|
284 |
/> |
|
285 |
<menu text="tools/_Topology/_VCS_Execute_topology_plan" name="tools-vcsgis-execute-topologyplan" /> |
|
286 |
</extension> |
|
287 |
</extensions> |
|
288 |
</plugin-config> |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/VCSGisEntityColors.properties | ||
---|---|---|
1 |
#Color format supported: |
|
2 |
# - rgb(0xRR,0xGG,0xBB) (HTML CCS format) |
|
3 |
# - rgb(red,green,blue) (HTML CCS format) |
|
4 |
# - #RRGGBB (HTML format) |
|
5 |
# - color_number (integer) |
|
6 |
# - color_name (https://www.w3schools.com/colors/colors_names.asp) |
|
7 |
# |
|
8 |
COLOR_LOCAL_NEW=darkgreen |
|
9 |
COLOR_LOCAL_MODIFIED=darkblue |
|
10 |
COLOR_LOCAL_UNMODIFIED=black |
|
11 |
COLOR_LOCAL_AND_REPOSITORY_MODIFIED=red |
|
12 |
COLOR_REPOSITORY_NEW=darkgoldenRod |
|
13 |
COLOR_REPOSITORY_MODIFIED=darkmagenta |
|
14 |
COLOR_CONFLICT=darkred |
|
15 |
COLOR_UNKNOWN_STATE=lightgray |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/plugin-persistence.def | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!-- |
|
3 |
Definitions of plugin persistence org.gvsig.vcsgis.app.mainplugin. |
|
4 |
--> |
|
5 |
<definitions> |
|
6 |
<version>1.0.0</version> |
|
7 |
<classes> |
|
8 |
<class name="org.gvsig.vcsgis.app.mainplugin"> |
|
9 |
<description>Persistence of VCSGis plugin</description> |
|
10 |
<fields> |
|
11 |
<field name="workspaces" type="Map" classOfItems="org.gvsig.vcsgis.lib.workspace.VCSGisWorkspaceDescriptor" mandatory="false"> |
|
12 |
<description></description> |
|
13 |
</field> |
|
14 |
<field name="EmptyEffectiveDateAllowedInCommitPanel" type="Boolean" mandatory="false" defaultValue="false"> |
|
15 |
<description></description> |
|
16 |
</field> |
|
17 |
<field name="CurrentDateAsEffectiveDateByDefaultInCommitPanel" type="Boolean" mandatory="false" defaultValue="false"> |
|
18 |
<description></description> |
|
19 |
</field> |
|
20 |
<field name="RepositoryEntityFeatureTypeEditorMode" type="Integer" mandatory="false" defaultValue="0"> |
|
21 |
<description></description> |
|
22 |
</field> |
|
23 |
</fields> |
|
24 |
</class> |
|
25 |
</classes> |
|
26 |
</definitions> |
org.gvsig.vcsgis/tags/org.gvsig.vcsgis-1.0.96/org.gvsig.vcsgis.app/org.gvsig.vcsgis.app.mainplugin/src/main/resources-plugin/i18n/text.properties | ||
---|---|---|
1 |
_Connection=Conexi\u00f3n |
|
2 |
_Initialize=Inicializar |
|
3 |
_VCS_Initialize_repository=Inicializar repositorio |
|
4 |
_VCS_Initialize_workingcopy=Inicializar copia de trabajo |
|
5 |
_Name=Nombre |
|
6 |
_File=Archivo |
|
7 |
_Repository=Repositorio |
|
8 |
_URL=URL |
|
9 |
_Layers=Capas |
|
10 |
_Tables=Tablas |
|
11 |
_VCS_Add_layer=A\u00f1adir capa |
|
12 |
_VCS_Add_to_workingcopy=A\u00f1adir a la copia de trabajo |
|
13 |
_Add_table_or_layer_to_VCS_workingcopy=A\u00f1adir tabla o capa a la copia de trabajo de VCSGis |
|
14 |
_Workingcopy=Copia de trabajo |
|
15 |
_Cant_initialize_server_{0}=No se ha podido inicializar el repositorio ''{0}''. |
|
16 |
_Cant_initialize_workingcopy_{0}=No se ha podido inicializar la copia de trabajo ''{0}''. |
|
17 |
_Cant_add_{0}_as_{1}_in_{2}=No se ha podido a\u00f1adir ''{0}'' como ''{1}'' en ''{2}''. |
|
18 |
_table=Tabla |
|
19 |
_Table=Tabla |
|
20 |
_Revision=Revisi\u00f3n |
|
21 |
_VCS_Checkout=Obtener copia local (checkout) |
|
22 |
_Failed_checkout_of_{0}=Ha fallado la obtenci\u00f3n de la copia local de ''{0}'' |
|
23 |
_VCSGis=VCSGis |
|
24 |
_Workingcopy_VCS=Copia de trabajo VCSGis |
|
25 |
_Database_server=Servidor de base de datos |
|
26 |
_Personal_database_H2=Base de datos personal (H2Spatial) |
|
27 |
_Create_conexion_to_database=Crear conexi\u00f3n a la base de datos |
|
28 |
_VCS_Repository=Repositorio VCSGis |
|
29 |
_Database_server=Servidor de base de datos |
|
30 |
_Remote_repository=Repositorio remoto |
|
31 |
_URL=URL |
|
32 |
_Close=Cerrar |
|
33 |
_Checkout_table_from_VCS_repository=Obtener una tabla desde un repositorio VCSGis |
|
34 |
_VCS_Show_changes=Mostrar cambios |
|
35 |
_VCS_Changes=VCSGis Cambios |
|
36 |
_Local=Local |
|
37 |
_Remote=Remoto |
|
38 |
_VCS_Registration_workingcopies=Registro de copias de trabajo |
|
39 |
_VCS_Prepare_workingcopy=Preparar copia de trabajo |
|
40 |
_Selected_connection_is_not_a_valid_workingcopy=La conexi\u00f3n seleccionada no es una copia de trabajo v\u00e1lida |
|
41 |
_Cant_register_workingcopy=No se ha podido registrar la copia de trabajo |
|
42 |
_Administration=Administraci\u00f3n |
|
43 |
_Field_for_label=Campo para etiqueta |
|
44 |
_Select_all=Seleccionar todo |
|
45 |
_Unselect_all=Deseleccionar todo |
|
46 |
_Refresh=Refrescar |
|
47 |
_Revert=Revertir |
|
48 |
_VCS_Commit=Confirmar (commit) |
|
49 |
_Show_form=Mostrar formulario |
|
50 |
_Effective_date=Fecha de entrada en vigor |
|
51 |
_Comment=Comentario |
|
52 |
_No_errors=Sin errores |
|
53 |
_dbfile_is_null=El archivo de la base de datos no exite |
|
54 |
_workingcopy_explorer_is_null=El explorador de la copia de trabajo no exite |
|
55 |
_label_is_null=La etiqueta no existe |
|
56 |
_Cant_open_workingcopy=No se puede abrir la copia de trabajo |
|
57 |
_Store_not_in_control_version=El almac\u00e9n no est\u00e1 en el control de versiones |
|
58 |
_Cant_create_table=No se puede crear la tabla |
|
59 |
_Cant_create_config_table=No se puede crear la configuraci\u00f3n de la tabla |
|
60 |
_Cant_create_table_entities=No se puede crear la tabla de entidades |
|
61 |
_Cant_create_table_changes=No se puede crear la tabla de cambios |
|
62 |
_Entity_already_exists=La entidad ya existe |
|
63 |
_Entity_has_not_VCSGISCODE=La entidad no tiene VCSGISCODE |
|
64 |
_Cant_open_entities=No se pueden abrir las entidades |
|
65 |
_Cant_insert_entities=No pueden insertar entidades |
|
66 |
_Cant_open_changes=No se puedea abrir los cambios |
|
67 |
_Cant_insert_change=No se puede insertar el cambio |
|
68 |
_Cant_open_store=No se puede abrir el almac\u00e9n |
|
69 |
_Cant_retrieve_source_features=No se pueden obtener los datos de la fuente |
|
70 |
_Cant_insert_features=No se pueden insertar los datos |
|
71 |
_Cant_commit=No se puede hacer el commit |
|
72 |
_Cant_commit_workingcopy_is_out_of_date=No se puede hacer el commit, la copia de trabajo est\u00e1 desactualizada |
|
73 |
_Cant_checkout=No se puede hacer el checkout |
|
74 |
_Table_already_exists_in_the_workingcopy=La tabla ya existe en la copia de trabajo |
|
75 |
_Table_not_in_repository=La tabla no est\u00e1 en el repositorio |
|
76 |
_Cant_update_entities=No se pueden actualizar las entidades |
|
77 |
_Cant_prepare_update=No se puede preparar la actualizaci\u00f3n |
|
78 |
_Cant_update=No se puede actualizar |
|
79 |
_Reload_remote_changes=Recargar cambios remotos |
|
80 |
_Clean_remote_changes=Limpiar cambios remotos |
|
81 |
_Update_tables_with_remote_changes=Actualizar tablas.\nSe actualizar\u00e1n las tablas locales con los cambios del repositorio.\nSi hay cambios locales se perder\u00e1n. |
|
82 |
_Merge_tables_with_remote_changes=Mezclar tablas.\nSe ejecuta sobre la copia local las operaciones seleccionadas.\nSe mantendr\u00e1n los cambios remotos para los registros seleccionados,\ny los cambios locales para los registros no seleccionados. |
|
83 |
_Download_remote_changes_of_selected_table=Descargar cambios remotos de la tabla seleccionada |
|
84 |
_VCS_Show_server_entities=Mostrar entidades del repositorio |
|
85 |
_VCS_Show_server_hooks=Mostrar hooks del repositorio VCSGis |
|
86 |
_The_selected_connection_does_not_correspond_to_a_version_control_server=La conexi\u00f3n seleccionada no se corresponde con un repositorio de control de versiones |
|
87 |
_Add_new_table_to_project=A\u00f1adir la tabla nueva al proyecto |
|
88 |
_Add_new_layer_to_view=A\u00f1adir la nueva capa a la vista |
|
89 |
_Select_a_view=Seleccione una vista |
|
90 |
_Cant_show_form_because_entity_isnt_in_workingcopy_yet=No se puede mostrar el formulario porque la entidad no est\u00e1 en la copia de trabajo todav\u00eda. |
|
91 |
_Dont_add_the_tables_or_layers_to_the_project=No a\u00f1adir las tablas/capas al proyecto |
|
92 |
_Add_layers_to_view=A\u00f1adir las capas a la vista |
|
93 |
_Add_tables_to_project=A\u00f1adir las tablas al proyecto |
|
94 |
_Cant_retrieve_entities_from_repository=No se han podido obtener las entidades del repositorio |
|
95 |
_Cant_retrieve_entities=No se han podido obtener las entidades |
|
96 |
_Working_copy=Copia de trabajo |
|
97 |
_VCS_Server_entities=Entidades del servidor |
|
98 |
_VCS_Server_hooks=Hooks del servidor |
|
99 |
_VCS_Export=Exportar |
|
100 |
_Export_to_a_local_table_a_table_of_the_repository=Exporta a una tabla local una tabla del repositorio |
|
101 |
_Add=A\u00f1adir |
|
102 |
_Remove=Eliminar |
|
103 |
_Cant_retrieve_entities=No se han podido obtener las entidades |
|
104 |
_Add_layer=A\u00f1adir capa |
|
105 |
_Adding_table_layer=A\u00f1adiendo tabla/capa |
|
106 |
_Preparing_source=Preparando fuente |
|
107 |
_Finishing=Finalizando |
|
108 |
_If_you_cant_find_the_layer_click_here_to_initialize_a_new_workingcopy=Si no puede encontar la capa, pulse aqu\u00ed para inicializar una nueva copia de trabajo |
|
109 |
_Repository_info=Informaci\u00f3n del repositorio |
|
110 |
_Layer=Capa |
|
111 |
_Name=Nombre |
|
112 |
_Committing_changes=Enviando cambios |
|
113 |
_The_selected_table_is_already_in_the_working_copy=La tabla seleccionada ya est\u00e1 en la copia de trabajo |
|
114 |
_To_download_updated_data_use_show_changes_tool=Para descargar los datos actualizados utilice la herramienta de mostrar cambios |
|
115 |
_Processing=Procesando |
|
116 |
_Ended_process=Proceso finalizado |
|
117 |
_Workingcopy_changes_list_updated=Lista de cambios de la copia de trabajo actualizada (%s) |
|
118 |
_Repository_changes_list_updated=Lista de cambios del repositorio actualizada (%s) |
|
119 |
_If_you_cant_find_the_layer_click_here_to_initialize_a_new_workingcopy=Si no puede encontrar la capa, pulse aqu\u00ed para inicializar una nueva copia de trabajo. |
|
120 |
_Projection=Proyecci\u00f3n |
|
121 |
_Zoom=Zoom |
|
122 |
_Center=Centrar |
|
123 |
_Clean_highlighted=Limpiar resaltados |
|
124 |
_Do_you_want_add_layer_to_active_view=\u00bfDesea a\u00f1adir la capa a la vista activa? |
|
125 |
_Do_you_want_add_table_to_project=\u00bfDesea a\u00f1adir la tabla al proyecto? |
|
126 |
_Clean_highlighted=Limpiar geometr\u00edas resaltadas |
|
127 |
_Category=Categor\u00eda |
|
128 |
_Overwrite_table=Sobrescribir tabla |
|
129 |
_Delete_existing_table_in_workingcopy_and_checkout_table_from_repository=Borra la copia de local y obtiene de nuevo una copia desde el repositorio. |
|
130 |
_Select_revision=Seleccionar revisi\u00f3n |
|
131 |
#_Next_page=Siguiente p\u00e1gina |
|
132 |
_Retrieve_more_data=Recuperar m\u00e1s datos. |
|
133 |
_Retrieve_the_next_page_of_revisions_from_the_repository=Recupera la siguiente p\u00e1gina de revisiones del repositorio. |
|
134 |
table=tabla |
|
135 |
operation=operaci\u00f3n |
|
136 |
label=etiqueta |
|
137 |
_VCS_Show_revisions=Mostrar revisiones |
|
138 |
_VCS_Revisions=Revisiones |
|
139 |
_Cant_remove_entity=No se ha podido eliminar la entidad |
|
140 |
_Cant_remove_changes=No se han podido eliminar los cambios |
|
141 |
_Add_the_table_to_the_project=A\u00f1adir la tabla al proyecto |
|
142 |
_Identifier_field=Campo del identificador |
|
143 |
_Sort_field=Campo de ordenaci\u00f3n |
|
144 |
_Use_revision_date=Usar fecha de revisi\u00f3n |
|
145 |
_Revision_date_field=Campo fecha de revisi\u00f3n |
|
146 |
_Time_interval_to_group_changes=Intervalo de agrupaci\u00f3n |
|
147 |
_Use_revision_number=Usar n\u00famero de revisi\u00f3n |
|
148 |
_Revision_number_field=Campo n\u00famero de revisi\u00f3n |
|
149 |
_VCS_Import_history=Importar historial |
|
150 |
_Import_history=Importar historial |
|
151 |
_The_process_has_created_local_changes_that_would_need_to_be_committed_to_the_repository=El proceso ha creado cambios locales que ser\u00eda necesario "confirmar" en el repositorio |
|
152 |
_VCSGis_Merge=VCSGis mezcla |
|
153 |
_User=Usuario |
|
154 |
_Password=Contrase\u00f1a |
|
155 |
_User_login=Inicio de sesi\u00f3n de usuario |
|
156 |
_Others=Otras |
|
157 |
_Table_already_exists_in_working_copy=La tabla ya existe en la copia de trabajo |
|
158 |
_You_can_rename_the_table=Puede usted cambiar el nombre de la tabla |
|
159 |
_VCS_Create_resource_table=Crear tabla de recursos |
|
160 |
_Create_resource_table_parameters=Par\u00e1metros para la creaci\u00f3n de la tabla de recursos |
|
161 |
_TableName=Nombre de tabla |
|
162 |
_Enter_the_identifier_and_password_of_a_user_with_permissions_to_perform_the_requested_operation=Introduzca identificador y contrase\u00f1a de un usuario con permisos para realizar la operaci\u00f3n solicitada |
|
163 |
_Authorization_required_for_this_operation=Autorizaci\u00f3n necesaria para esta operaci\u00f3n |
|
164 |
_VCS_Checkout_DataModel=Obtener copia local del modelo de datos |
|
165 |
_VCS_Connect_to_datamodel=Conectar a modelo de datos |
|
166 |
_Data_models=Modelos de datos |
|
167 |
_Failed_connect_to_{0}=Ha fallado la conexi\u00f3n con ''{0}'' |
|
168 |
_Overwrite_existing_tables=Sobreescribir las tablas existentes |
|
169 |
_Delete_existing_tables_in_workingcopy_and_then_checkout_them_from_repository=Elimina las tablas existentes en la copia de trabajo y las vuelve a obtener del repositorio. |
|
170 |
_VCS_Logout=Cerrar sesi\u00f3n |
|
171 |
_Logout_the_current_user_from_a_VCSGis_working_copy=Cierra la sesi\u00f3n de usuario en una copia de trabajo |
|
172 |
_VCS_operation_add_entity=Nueva entidad |
|
173 |
_VCS_operation_insert=Nuevo |
|
174 |
_VCS_operation_update=Modificado |
|
175 |
_VCS_operation_delete=Borrado |
|
176 |
_Highlight=Resaltar |
|
177 |
_Topology_plan_execution_failed_Do_you_wish_to_continue=Ha fallado la ejecuci\u00f3n del plan de topolog\u00eda. \u00bfDesea continuar? |
|
178 |
_Cant_pass_topology_plans=No se pueden pasar los planes topol\u00f3gicos |
|
179 |
_TopologyPlan_has_been_updated_please_retry_commit=El plan topol\u00f3gico se ha actualizado. Por favor, reintente el commit. |
|
180 |
_Sending_topology_plans=Enviando los planes topol\u00f3gicos |
|
181 |
_Execute_topology_plan=Ejecutar plan de topolog\u00eda |
|
182 |
_Import_history_to_VCSGis_repository=Importar hist\u00f3rico al respositorio de VCSGis |
|
183 |
_Import_a_table_or_layer_with_history_to_a_VCSGis_repository=Importar una tabla o capa con hist\u00f3rico al respositorio de VCSGis |
|
184 |
_Selected_tables_are_editing=Alguna tabla seleccionada est\u00e1 en edici\u00f3n |
|
185 |
_Unmodified_locally=No modificada en local |
|
186 |
_New_locally=Nueva en local |
Also available in: Unified diff