Revision 44871 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/raster/impl/DefaultCoverageStoreNotification.java
DefaultCoverageStoreNotification.java | ||
---|---|---|
26 | 26 |
|
27 | 27 |
import org.gvsig.fmap.dal.DataStore; |
28 | 28 |
import org.gvsig.fmap.dal.DataStoreNotification; |
29 |
import org.gvsig.tools.observer.BaseNotification; |
|
29 | 30 |
import org.gvsig.tools.undo.command.Command; |
30 | 31 |
|
31 |
public class DefaultCoverageStoreNotification implements DataStoreNotification { |
|
32 |
public class DefaultCoverageStoreNotification |
|
33 |
extends BaseNotification |
|
34 |
implements DataStoreNotification |
|
35 |
{ |
|
32 | 36 |
|
33 | 37 |
public DefaultCoverageStoreNotification( |
34 |
DefaultCoverageStore defaultCoverageStore, String notification,
|
|
35 |
Command command) {
|
|
36 |
// TODO Auto-generated constructor stub
|
|
38 |
DefaultCoverageStore defaultCoverageStore, String notification) {
|
|
39 |
super(notification, 2);
|
|
40 |
this.setValue(0, defaultCoverageStore);
|
|
37 | 41 |
} |
38 | 42 |
|
39 | 43 |
public DefaultCoverageStoreNotification( |
40 |
DefaultCoverageStore defaultCoverageStore, String notification) { |
|
41 |
// TODO Auto-generated constructor stub |
|
44 |
DefaultCoverageStore defaultCoverageStore, String notification, |
|
45 |
Command command) { |
|
46 |
this(defaultCoverageStore, notification); |
|
47 |
this.setValue(1, command); |
|
42 | 48 |
} |
43 | 49 |
|
50 |
@Override |
|
44 | 51 |
public DataStore getSource() { |
45 |
// TODO Auto-generated method stub |
|
46 |
return null; |
|
52 |
return (DataStore) this.getValue(0); |
|
47 | 53 |
} |
48 | 54 |
|
49 |
public String getType() { |
|
50 |
// TODO Auto-generated method stub |
|
51 |
return null; |
|
52 |
} |
|
53 | 55 |
|
54 | 56 |
} |
Also available in: Unified diff