Revision 24759 branches/v2_0_0_prep/applications/appgvSIG/src/com/iver/cit/gvsig/gui/panels/PanelLinkProperties.java

View differences:

PanelLinkProperties.java
6 6
import javax.swing.JPanel;
7 7
import javax.swing.JTextField;
8 8

  
9
import org.gvsig.fmap.data.ReadException;
10 9
import org.gvsig.fmap.mapcontext.layers.FLayer;
11
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect;
12 10

  
13 11
import com.iver.andami.PluginServices;
14
import com.iver.andami.messages.NotificationManager;
15 12
import com.iver.cit.gvsig.project.documents.view.IProjectView;
16 13
import com.iver.cit.gvsig.project.documents.view.gui.BaseView;
17 14

  
......
87 84
			jComboBoxCampo1 = new JComboBox();
88 85
			jComboBoxCampo1.setPreferredSize(new java.awt.Dimension(80,25));
89 86

  
90
			if (PluginServices.getMainFrame() != null)
87
			if (PluginServices.getMainFrame() != null) {
91 88
				if  (PluginServices.getMDIManager().getActiveWindow() instanceof BaseView ){
92 89
				    BaseView theView = (BaseView)PluginServices.getMDIManager().getActiveWindow();
93 90
				    view = theView.getModel();
......
115 112
//				    }
116 113
				}
117 114
			}
115
			}
118 116
		return jComboBoxCampo1;
119 117
	}
120 118

  
......
167 165
			if (field.compareTo(types[0])==0){
168 166
				return 0;
169 167
			}
170
			else if (field.compareTo(types[1])==0) return 1;
168
			else if (field.compareTo(types[1])==0) {
169
				return 1;
170
			}
171 171
			return 1;
172 172
		}
173 173

  

Also available in: Unified diff