Changeset 9101
- Timestamp:
- 2005-02-18T14:19:24+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/MetadataImportMappingPrompt.java
r9024 r9101 19 19 { 20 20 final static public int ADD_BUTTON_PRESSED = 0; 21 final static public int REPLACE_BUTTON_PRESSED = 1;21 final static public int MERGE_BUTTON_PRESSED = 1; 22 22 final static public int IGNORE_BUTTON_PRESSED = 2; 23 23 final static private Dimension DIALOG_SIZE = new Dimension(640, 180); … … 28 28 private GComboBox metadata_elements_combobox = null; 29 29 private JButton add_button = null; 30 private JButton replace_button = null;30 private JButton merge_button = null; 31 31 private JButton ignore_button = null; 32 32 private JDialog on_screen = null; … … 42 42 dialog.setSize(DIALOG_SIZE); 43 43 dialog.setJMenuBar(new SimpleMenuBar("importingpreviouslyassignedmetadata")); 44 Dictionary.setText(dialog, "M SMPrompt.Merge_MDS");44 Dictionary.setText(dialog, "MIMP.Title"); 45 45 46 46 // All the loaded metadata sets except the extracted metadata set are applicable … … 55 55 add_button.addActionListener(this); 56 56 add_button.setMnemonic(KeyEvent.VK_A); 57 add_button.setText("Add"); 58 // Dictionary.registerBoth(add_button, "MSMPrompt.Add", "MSMPrompt.Add_Tooltip"); 57 Dictionary.registerBoth(add_button, "MIMP.Add", "MIMP.Add_Tooltip"); 59 58 60 replace_button = new GLIButton(); 61 replace_button.addActionListener(this); 62 replace_button.setEnabled(true); 63 replace_button.setMnemonic(KeyEvent.VK_M); 64 replace_button.setText("Replace"); 65 // Dictionary.registerBoth(merge, "MSMPrompt.Merge", "MSMPrompt.Merge_Tooltip"); 59 merge_button = new GLIButton(); 60 merge_button.addActionListener(this); 61 merge_button.setEnabled(true); 62 merge_button.setMnemonic(KeyEvent.VK_M); 63 Dictionary.registerBoth(merge_button, "MIMP.Merge", "MIMP.Merge_Tooltip"); 66 64 67 65 ignore_button = new GLIButton(); … … 69 67 ignore_button.setEnabled(true); 70 68 ignore_button.setMnemonic(KeyEvent.VK_S); 71 ignore_button.setText("Ignore"); 72 // Dictionary.registerBoth(ignore_button, "MSMPrompt.Ignore", "MSMPrompt.Ignore_Tooltip"); 69 Dictionary.registerBoth(ignore_button, "MIMP.Ignore", "MIMP.Ignore_Tooltip"); 73 70 71 // add instructions!!! 72 // "MIMP.Instructions", args: source elem 74 73 metadata_elements_combobox = new GComboBox(); 75 74 … … 81 80 JPanel left_pane = new JPanel(); 82 81 left_pane.setLayout(new GridLayout(3,1)); 83 left_pane.add(new JLabel( "Source metadata element:"));84 left_pane.add(new JLabel( "Target metadata set:"));85 left_pane.add(new JLabel( "Target metadata element:"));82 left_pane.add(new JLabel(Dictionary.get("MIMP.Source_Element"))); 83 left_pane.add(new JLabel(Dictionary.get("MIMP.Target_Set"))); 84 left_pane.add(new JLabel(Dictionary.get("MIMP.Target_Element"))); 86 85 87 86 JPanel right_pane = new JPanel(); … … 95 94 button_pane.setLayout(new GridLayout(1,3)); 96 95 button_pane.add(add_button); 97 button_pane.add( replace_button);96 button_pane.add(merge_button); 98 97 button_pane.add(ignore_button); 99 98 … … 101 100 content_pane.setLayout(new BorderLayout()); 102 101 content_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 103 content_pane.add(left_pane, BorderLayout. CENTER);104 content_pane.add(right_pane, BorderLayout. EAST);102 content_pane.add(left_pane, BorderLayout.WEST); 103 content_pane.add(right_pane, BorderLayout.CENTER); 105 104 content_pane.add(button_pane, BorderLayout.SOUTH); 106 105 … … 125 124 result = ADD_BUTTON_PRESSED; 126 125 } 127 if (esrc == replace_button) {128 result = REPLACE_BUTTON_PRESSED;126 if (esrc == merge_button) { 127 result = MERGE_BUTTON_PRESSED; 129 128 } 130 129 if (esrc == ignore_button) {
Note:
See TracChangeset
for help on using the changeset viewer.