summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/ServerInstancePropertySetEditor.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceGridGUI/Application/ServerInstancePropertySetEditor.java')
-rw-r--r--java/src/IceGridGUI/Application/ServerInstancePropertySetEditor.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/IceGridGUI/Application/ServerInstancePropertySetEditor.java b/java/src/IceGridGUI/Application/ServerInstancePropertySetEditor.java
index 6518ba1b5d0..bc11a570415 100644
--- a/java/src/IceGridGUI/Application/ServerInstancePropertySetEditor.java
+++ b/java/src/IceGridGUI/Application/ServerInstancePropertySetEditor.java
@@ -51,17 +51,18 @@ class ServerInstancePropertySetEditor extends PropertySetEditor
}
}
+ @SuppressWarnings("unchecked")
protected void showId(String unsubstitutedId, Utils.Resolver resolver)
{
ServerInstance s = (ServerInstance)_target.getParent();
_id.setEnabled(true);
_id.setEditable(true);
- _id.setModel(new DefaultComboBoxModel<String>(s.getServiceNames()));
+ _id.setModel(new DefaultComboBoxModel(s.getServiceNames()));
_id.setSelectedItem(Utils.substitute(unsubstitutedId, resolver));
_id.setEditable(resolver == null);
_id.setEnabled(resolver == null);
}
- private JComboBox<String> _id = new JComboBox<String>();
+ private JComboBox _id = new JComboBox();
}