Revision 43360
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.geodb.app/org.gvsig.geodb.app.mainplugin/src/main/java/org/gvsig/geodb/vectorialdb/wizard/TablesListItemVectorial.java | ||
---|---|---|
31 | 31 |
|
32 | 32 |
import org.gvsig.andami.messages.NotificationManager; |
33 | 33 |
import org.gvsig.app.ApplicationLocator; |
34 |
import org.gvsig.app.ApplicationManager; |
|
35 |
import org.gvsig.app.project.ProjectManager; |
|
34 | 36 |
import org.gvsig.fmap.dal.DataTypes; |
35 | 37 |
import org.gvsig.fmap.dal.exception.DataException; |
36 | 38 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
... | ... | |
135 | 137 |
} |
136 | 138 |
|
137 | 139 |
private void showNoPkWarning(String tableName) { |
138 |
|
|
140 |
ApplicationManager application = ApplicationLocator.getManager(); |
|
139 | 141 |
String msg = Messages.getText( |
140 | 142 |
"_Table_NAME_does_not_have_declared_PK", new String[] { tableName } ); |
141 | 143 |
msg = msg + "\n\n"; |
... | ... | |
146 | 148 |
"_Strange_behavior_if_selected_ID_not_unique_values"); |
147 | 149 |
msg = msg + " "; |
148 | 150 |
|
149 |
JOptionPane.showMessageDialog( |
|
150 |
ApplicationLocator.getManager().getRootComponent(), |
|
151 |
msg, |
|
152 |
Messages.getText("_Id_field"), |
|
153 |
JOptionPane.WARNING_MESSAGE); |
|
154 |
|
|
151 |
application.messageDialog( |
|
152 |
msg, |
|
153 |
null, |
|
154 |
Messages.getText("_Id_field"), |
|
155 |
JOptionPane.WARNING_MESSAGE, |
|
156 |
"show_no_primary_key_warning_in_database_tables" |
|
157 |
); |
|
158 |
|
|
155 | 159 |
} |
156 | 160 |
|
157 | 161 |
public void setEnabledPanels(boolean b) { |
Also available in: Unified diff