* the style to a .sld file beside the associated layer file.
* Does nothing for non-file based layers.
*/
private void oneClickExport(){
IGeoResource geoResource = getSelectedLayer().getGeoResource();
ID id = geoResource.getID();
if (id.isFile()) {
try {
File file = id.toFile();
SLDTransformer aTransformer = new SLDTransformer();
aTransformer.setIndentation(StyleEditor.INDENT);
String xml = aTransformer.transform(getSLD());
File newFile = new File(file.getParent(), FilenameUtils
.getBaseName(file.getAbsolutePath())