- Timestamp:
- 2003-08-29T10:17:44+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java
r5210 r5342 88 88 setModal(true); 89 89 setSize(SIZE); 90 setTitle(get(" Title"));90 setTitle(get("CDM.ArgumentConfiguration.Title")); 91 91 setJMenuBar(new SimpleMenuBar("7.0")); // can we tell whether we are doing a classifier or plugin, to make the help more specific?? 92 92 JPanel button_pane = new JPanel(); … … 101 101 custom = new JTextField(); 102 102 } 103 JLabel custom_label = new JLabel(get("C ustom"));103 JLabel custom_label = new JLabel(get("CDM.ArgumentConfiguration.Custom")); 104 104 custom_label.setPreferredSize(LABEL_SIZE); 105 105 JPanel custom_pane = new JPanel(); 106 106 String args[] = new String[1]; 107 107 args[0] = data.getName(); 108 JLabel header = new JLabel(get(" Header",args));108 JLabel header = new JLabel(get("CDM.ArgumentConfiguration.Header",args)); 109 109 args = null; 110 110 header.setHorizontalAlignment(JLabel.CENTER); … … 418 418 model.addElement(values.get(i)); 419 419 } 420 one = new JButton(get(" Add"));420 one = new JButton(get("CDM.ArgumentConfiguration.Add")); 421 421 one.addActionListener(new AddListener((JComboBox)value, list)); 422 two = new JButton(get(" Remove"));422 two = new JButton(get("CDM.ArgumentConfiguration.Remove")); 423 423 two.addActionListener(new RemoveListener(list)); 424 424 if(argument.getValues().size() > 0 || argument.isRequired()) { … … 537 537 String args[] = new String[1]; 538 538 args[0] = argument.getName(); 539 JOptionPane.showMessageDialog(self, get(" Required_Argument", args), get("Error_Title"), JOptionPane.ERROR_MESSAGE);539 JOptionPane.showMessageDialog(self, get("CDM.ArgumentConfiguration.Required_Argument", args), get("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE); 540 540 args = null; 541 541 return false; … … 560 560 args[0] = argument.getName(); 561 561 args[1] = result; 562 JOptionPane.showMessageDialog(self, get(" Bad_Integer", args), get("Error_Title"), JOptionPane.ERROR_MESSAGE);562 JOptionPane.showMessageDialog(self, get("CDM.ArgumentConfiguration.Bad_Integer", args), get("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE); 563 563 args = null; 564 564 return false; … … 570 570 String args[] = new String[1]; 571 571 args[0] = argument.getName(); 572 JOptionPane.showMessageDialog(self, get(" Required_Argument", args), get("Error_Title"), JOptionPane.ERROR_MESSAGE);572 JOptionPane.showMessageDialog(self, get("CDM.ArgumentConfiguration.Required_Argument", args), get("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE); 573 573 args = null; 574 574 return false; … … 609 609 String args[] = new String[1]; 610 610 args[0] = argument.getName(); 611 JOptionPane.showMessageDialog(self, get(" Required_Argument", args), get("Error_Title"), JOptionPane.ERROR_MESSAGE);611 JOptionPane.showMessageDialog(self, get("CDM.ArgumentConfiguration.Required_Argument", args), get("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE); 612 612 return false; 613 613 }
Note:
See TracChangeset
for help on using the changeset viewer.