Revision 6055 trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/buffer/BufferGeoprocessPlugin.java
BufferGeoprocessPlugin.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.1 2006-06-23 19:02:35 azabala |
|
48 |
* Revision 1.2 2006-06-27 16:11:41 azabala |
|
49 |
* toString() added to Plugin interface to force textual representation of geoprocess plugins |
|
50 |
* |
|
51 |
* Revision 1.1 2006/06/23 19:02:35 azabala |
|
49 | 52 |
* first version in cvs |
50 | 53 |
* |
51 | 54 |
* Revision 1.1 2006/06/22 17:46:30 azabala |
... | ... | |
56 | 59 |
package com.iver.cit.gvsig.geoprocess.impl.buffer; |
57 | 60 |
|
58 | 61 |
import java.net.URL; |
59 |
import java.util.TreeMap; |
|
60 | 62 |
|
61 | 63 |
import com.iver.andami.PluginServices; |
62 | 64 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
... | ... | |
64 | 66 |
import com.iver.cit.gvsig.geoprocess.core.IGeoprocessPlugin; |
65 | 67 |
import com.iver.cit.gvsig.geoprocess.core.gui.IGeoprocessPanel; |
66 | 68 |
import com.iver.cit.gvsig.geoprocess.impl.buffer.gui.GeoProcessingBufferPanel; |
69 |
import com.iver.cit.gvsig.geoprocess.manager.GeoprocessManager; |
|
67 | 70 |
import com.iver.cit.gvsig.gui.View; |
68 | 71 |
|
69 | 72 |
public class BufferGeoprocessPlugin implements IGeoprocessPlugin { |
70 | 73 |
|
71 |
//TODO REVISAR ESTO PARA QUE SEA COMUN A TODOS |
|
72 |
//LOS GEOPROCESOS, Y DEFINIR PRIORIDADES PARA |
|
73 |
//QUE LAS DESCRIPCIONES DE UN GEOPROCESO |
|
74 |
//NO MACHAQUEN A LAS DE OTRO |
|
75 |
static TreeMap descriptions = new TreeMap(); |
|
76 | 74 |
static{ |
77 |
descriptions.put("Analisis",
|
|
75 |
GeoprocessManager.registerPackageDescription("Analisis",
|
|
78 | 76 |
"Geoprocesos que permiten "+ |
79 | 77 |
"extraer nueva informaci?n "+ |
80 | 78 |
"de informaci?n ya existente"); |
81 |
descriptions.put("Analisis/Proximidad", |
|
79 |
GeoprocessManager. |
|
80 |
registerPackageDescription("Analisis/Proximidad", |
|
82 | 81 |
"Geoprocesos que realizan "+ |
83 | 82 |
"an?lisis de proximidad o corredor"); |
84 | 83 |
} |
... | ... | |
116 | 115 |
return "Analisis/Proximidad/Buffer"; |
117 | 116 |
} |
118 | 117 |
|
119 |
public String getDescriptionForPackage(String name) { |
|
120 |
return (String) descriptions.get(name); |
|
121 |
} |
|
122 |
|
|
123 | 118 |
public String toString(){ |
124 | 119 |
return "Buffer"; |
125 | 120 |
} |
Also available in: Unified diff