ITerrain terrain = Terrains.getTerrainFactory().createTerrain(lisTerrain.getSelectedItem());
if (lisTerrain.getSelectedIndex() == -1) return; ITerrain terrain = Terrains.getTerrainFactory().createTerrain((String) lisTerrain.getSelectedValue());
    private void refreshTerrainFromList() {        ITerrain terrain = Terrains.getTerrainFactory().createTerrain(lisTerrain.getSelectedItem());        terrain = curHex.getTerrain(terrain.getType());        choTerrainType.setSelectedItem(Terrains.getName(terrain.getType()));        texTerrainLevel.setText(Integer.toString(terrain.getLevel()));        cheTerrExitSpecified.setSelected(terrain.hasExitsSpecified());        texTerrExits.setText(Integer.toString(terrain.getExits()));    }