Revision 21359 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/LegendManager.java

View differences:

LegendManager.java
71 71
import javax.swing.tree.TreePath;
72 72
import javax.swing.tree.TreeSelectionModel;
73 73

  
74
import org.gvsig.fmap.drivers.IFMapLegendDriver;
75
import org.gvsig.fmap.drivers.exceptions.LegendDriverException;
76 74
import org.gvsig.fmap.mapcontext.exceptions.LegendLayerException;
77 75
import org.gvsig.fmap.mapcontext.layers.FLayer;
78 76
import org.gvsig.fmap.mapcontext.layers.FLayers;
......
83 81
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
84 82
import org.gvsig.fmap.mapcontext.rendering.legend.IVectorLegend;
85 83
import org.gvsig.fmap.mapcontext.rendering.legend.SingleSymbolLegend;
84
import org.gvsig.fmap.mapcontext.rendering.legend.driver.IFMapLegendDriver;
85
import org.gvsig.fmap.mapcontext.rendering.legend.driver.LegendDriverException;
86 86
import org.gvsig.gui.beans.swing.JButton;
87 87

  
88 88
import com.iver.andami.PluginServices;
......
240 240
						}
241 241
						if ((type & LegendDriverException.UNSUPPORTED_LEGEND_READING) != 0){
242 242
							type = type & ~LegendDriverException.UNSUPPORTED_LEGEND_READING;
243
							message +="-"+ PluginServices.getText(this, "unsupported_legend_file_format")+"\n"; 
243
							message +="-"+ PluginServices.getText(this, "unsupported_legend_file_format")+"\n";
244 244
							hasReason = true;
245 245
						}
246 246
						if ((type & LegendDriverException.LAYER_NAME_NOT_FOUND) != 0){
247 247
							type = type & ~LegendDriverException.UNSUPPORTED_LEGEND_READING;
248
							message +="-"+ PluginServices.getText(this, "could_not_find_layer")+"\n"; 
248
							message +="-"+ PluginServices.getText(this, "could_not_find_layer")+"\n";
249 249
							hasReason = true;
250 250
						}
251 251
						if (!hasReason) {
......
702 702
		legend = activePanel.getLegend();
703 703

  
704 704

  
705
		if (table != null && table.size() > 1) 
705
		if (table != null && table.size() > 1)
706 706
			applyRestOfLegends(table,layer.getMapContext().getLayers());
707 707

  
708 708
		/* try to apply the legend to all the active layers that
......
762 762
					}
763 763
				}
764 764
			}
765
			else 
766
				applyRestOfLegends(table,(FLayers) my_layer);	
765
			else
766
				applyRestOfLegends(table,(FLayers) my_layer);
767 767
		}
768 768
	}
769 769

  
......
775 775

  
776 776
	/**
777 777
	 * Applies the legend to the layer.
778
	 * 
778
	 *
779 779
	 * @param aLegend , legend that the user wants to apply
780 780
	 */
781 781
	private void applyLegend(ILegend aLegend) {
......
791 791
			}
792 792
		}
793 793
		NotificationManager.addWarning(
794
				PluginServices.getText(this, 
794
				PluginServices.getText(this,
795 795
						"caution_no_registered_panel_associated_to_" +
796 796
						"loaded_legend_the_legend_wont_be_applied"));
797 797
	}

Also available in: Unified diff