public SeparateGeometriesDialog(Window mainFrame, VectorDataNode vectorDataNode, String helpId, String text) {
super(mainFrame, "Import Geometry", ModalDialog.ID_YES_NO_HELP, helpId);
JPanel content = new JPanel(new BorderLayout());
content.add(new JLabel(text), BorderLayout.NORTH);
List<AttributeType> types = vectorDataNode.getFeatureType().getTypes();
ArrayList<String> names = new ArrayList<String>();
for (AttributeType type : types) {
if (type.getBinding().equals(String.class)) {
names.add(type.getName().getLocalPart());
}
}
comboBox = new JComboBox(names.toArray(new String[names.size()]));
if (names.size() > 0) {
JPanel content2 = new JPanel(new BorderLayout());
content2.add(new JLabel("Attribute for mask/layer naming: "), BorderLayout.WEST);
content2.add(comboBox, BorderLayout.CENTER);
content.add(content2, BorderLayout.SOUTH);
}
setContent(content);
}