Revision 6541

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/TocItemBranch.java
82 82
	
83 83
	private final String unavailableImgPath = "images/unavailable.png";
84 84
	
85
	private boolean isUnavailable = false;
85
	private boolean isAvailable = true;
86 86
		
87 87
	private FLayer lyr;
88 88
	
......
139 139
	}
140 140
	private void updateStateIcon() {
141 141
		if (icolayer == null) return;
142
		if (((FLyrDefault)this.lyr).isUnavailable() != this.isUnavailable || finalIcon==null) { 
143
			if (((FLyrDefault)this.lyr).isUnavailable()) {
142
		if (this.lyr.isAvialable() != this.isAvailable || finalIcon==null) { 
143
			if (!this.lyr.isAvialable()) {
144 144
				BufferedImage newImage = new BufferedImage(icolayer.getIconWidth(),icolayer.getIconHeight(),BufferedImage.TYPE_INT_ARGB);			
145 145
				Graphics2D grp = newImage.createGraphics();			
146 146
				grp.drawImage(icolayer.getImage(),0,0,null);
......
158 158
			} else {
159 159
				this.finalIcon = new ImageIcon(icolayer.getImage());
160 160
			}
161
			this.isUnavailable =(((FLyrDefault)this.lyr).isUnavailable());
161
			this.isAvailable =(this.lyr.isAvialable());
162 162
		}		
163 163
		
164 164
	}
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/Project.java
1078 1078
                    if (lyr instanceof FLyrVect)
1079 1079
                    {
1080 1080
                        FLyrVect lyrVect = (FLyrVect) lyr;
1081
                        if (!lyrVect.isUnavailable())
1081
                        if (lyrVect.isAvialable())
1082 1082
                        	usedDataSources.put(lyrVect.getRecordset().getName(), lyrVect.getSource().getRecordset());
1083 1083
                    }
1084 1084
                }

Also available in: Unified diff