Revision 5292 branches/MULTITHREADING_DEVELOPMENT/extensions/extWMS/src/com/iver/cit/gvsig/fmap/drivers/wms/FMapWMSDriver.java
FMapWMSDriver.java | ||
---|---|---|
92 | 92 |
} |
93 | 93 |
} else if (idRequest == WMSOperations.GET_MAP) { |
94 | 94 |
String fileName = event.getFileName(); |
95 |
System.out.println("GetMap al driver"); |
|
96 | 95 |
for (int i = 0; i < listeners.size(); i++) { |
97 |
System.out.println("getMap enviat al listener: "+i); |
|
98 | 96 |
WMSOperations l = (WMSOperations) listeners.get(i); |
99 | 97 |
l.getMap(eventType, new File(fileName), event.getMessage()); |
100 | 98 |
} |
101 | 99 |
} |
102 | 100 |
} |
103 | 101 |
|
104 |
FMapWMSDriver(URL host) { |
|
102 |
protected FMapWMSDriver(URL host) {
|
|
105 | 103 |
try { |
106 | 104 |
client = new WMSClient(host.toString(), this); |
107 | 105 |
} catch (ConnectException e) { |
... | ... | |
319 | 317 |
} |
320 | 318 |
|
321 | 319 |
public void addListener(WMSOperations listener) { |
322 |
if (!listeners.contains(listener)) |
|
320 |
if (!listeners.contains(listener)) { |
|
321 |
System.out.println("Listener afegit al driver"); |
|
323 | 322 |
listeners.add(listener); |
323 |
} |
|
324 | 324 |
} |
325 | 325 |
|
326 | 326 |
public void cancel(int opCode) { |
Also available in: Unified diff