Revision 24857
trunk/extensions/extTopology/src/org/gvsig/topology/ui/LayersInTocPanel.java | ||
---|---|---|
56 | 56 |
import javax.swing.JCheckBox; |
57 | 57 |
import javax.swing.JComponent; |
58 | 58 |
|
59 |
import org.gvsig.topology.Topology; |
|
59 | 60 |
import org.gvsig.topology.ui.util.BoxLayoutPanel; |
60 | 61 |
|
62 |
import com.iver.andami.PluginServices; |
|
61 | 63 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
62 | 64 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
63 | 65 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
... | ... | |
134 | 136 |
checkBoxLyr.setSelected(true); |
135 | 137 |
} |
136 | 138 |
} |
139 |
|
|
140 |
//if a layer is already contained in a topology |
|
141 |
//it cant be selected |
|
142 |
if(lyrVect.getParentLayer() instanceof Topology){ |
|
143 |
checkBoxLyr.setEnabled(false); |
|
144 |
checkBoxLyr.setToolTipText(PluginServices.getText(this, "capa_ya_pertenece_a_topologia")); |
|
145 |
} |
|
146 |
|
|
147 |
|
|
137 | 148 |
lyr_checkbox.put(lyrVect, checkBoxLyr); |
138 | 149 |
addRow(new JComponent[] { checkBoxLyr }, 350, 20); |
139 | 150 |
}// if |
Also available in: Unified diff