- if (typeList.getSelectedValue()!=null) {
- InputType newType = getTypeFor((String)typeList.getSelectedValue());
- if (newType!=null) {
- newType.token = tok.getText().trim();
- try {
- newType.configureFromArgumentI(opanps.get(newType.getURLtokenPrefix()).getCurrentSettings());
- current=newType;
- updated=true;
- } catch (InvalidArgumentException ex) {
- System.err.println("IMPLEMENTATION ERROR: Invalid argument for type : "+typeList.getSelectedValue()+"\n");
- ex.printStackTrace();
+ if (typeList.getSelectedValue() != null)
+ {
+ InputType newType = getTypeFor((String) typeList.getSelectedValue());
+ if (newType != null)
+ {
+ newType.token = tok.getText().trim();
+ try
+ {
+ newType.configureFromArgumentI(opanps.get(
+ newType.getURLtokenPrefix()).getCurrentSettings());
+ current = newType;
+ updated = true;
+ } catch (InvalidArgumentException ex)
+ {
+ System.err
+ .println("IMPLEMENTATION ERROR: Invalid argument for type : "
+ + typeList.getSelectedValue() + "\n");
+ ex.printStackTrace();
+ }