[Gvsig_desarrolladores] utilizar la clase ProyectWindow

agirrearri agirrearri en hotmail.com
Mar Jun 22 11:46:14 CEST 2010


Hola, gracias por la respues, creo que esto no se puede hacer en gvSig
Descktop 2, donde estoy desarrollando. Pero he encontrado algo en el código
con lo que me has dicho.
Esto me podría valer?

	String docName;
		TableDocument document;
//		Project project = ((ProjectExtension) PluginServices
//				.getExtension(ProjectExtension.class)).getProject();
		Project project = ProjectManager.getInstance().getCurrentProject();

		ApplicationManager appGvSIGMan = ApplicationLocator.getManager();
		PrepareContext context = this.getPrepareDataStoreContext();
		DBStoreParameters storeParams;
		for (TablesListItem table : tables) {
			storeParams = getParameterForTable(table);

			try {
				storeParams = (DBStoreParameters) appGvSIGMan
						.prepareOpenDataStoreParameters(storeParams, context);
			} catch (Exception e2) {
				NotificationManager.addError(e2);
				continue;
			}

Gracias, atentamente Eñaut.
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/utilizar-la-clase-ProyectWindow-tp5207911p5208030.html
Sent from the gvSIG desarrolladores mailing list archive at Nabble.com.


Más información sobre la lista de distribución gvSIG_desarrolladores