Revision 951 trunk/org.gvsig.gdal/org.gvsig.gdal.prov/org.gvsig.gdal.prov.ogr/src/main/java/org/gvsig/gdal/prov/ogr/OGRDataExplorerParameters.java
OGRDataExplorerParameters.java | ||
---|---|---|
24 | 24 |
package org.gvsig.gdal.prov.ogr; |
25 | 25 |
|
26 | 26 |
import java.io.File; |
27 |
import org.apache.commons.lang3.StringUtils; |
|
27 | 28 |
|
28 | 29 |
import org.gvsig.fmap.dal.DataServerExplorerParameters; |
30 |
import org.gvsig.fmap.dal.serverexplorer.filesystem.FilesystemServerExplorerParameters; |
|
29 | 31 |
import org.gvsig.fmap.dal.spi.AbstractDataParameters; |
30 | 32 |
import org.gvsig.tools.ToolsLocator; |
31 | 33 |
import org.gvsig.tools.dynobject.DelegatedDynObject; |
... | ... | |
106 | 108 |
public void setConnectionString(String connection) { |
107 | 109 |
this.setDynValue(CONNECTION_STRING_PARAMETER_NAME, connection); |
108 | 110 |
} |
111 |
|
|
112 |
@Override |
|
113 |
public boolean isTheSameServerExplorer(DataServerExplorerParameters params) { |
|
114 |
if(!(params instanceof OGRDataExplorerParameters)){ |
|
115 |
return false; |
|
116 |
} |
|
117 |
File f1 = this.getFile(); |
|
118 |
File f2 = ((OGRDataExplorerParameters)params).getFile(); |
|
119 |
if( f1 == null || f2==null ) { |
|
120 |
return false; |
|
121 |
} |
|
122 |
return StringUtils.equals(f1.getAbsolutePath(),f2.getAbsolutePath()); |
|
123 |
} |
|
109 | 124 |
} |
Also available in: Unified diff