Changeset 8994 for trunk/gli/src/org/greenstone/gatherer/gui
- Timestamp:
- 2005-02-10T12:04:53+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/gui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/DownloadProgressBar.java
r8802 r8994 286 286 } 287 287 progress.setValue(progress.getMaximum()); 288 /** @todo - put into dictionary */ 289 //progress.setString("Mirroring.DownloadJob.Mirror_Complete"); 290 Dictionary.setText(progress, "Mirroring.DownloadJob.Mirroring_Complete"); 288 Dictionary.setText(progress, "Mirroring.DownloadJob.Download_Complete"); 291 289 292 290 stop_start_button.setEnabled(false); … … 346 344 String args1[] = new String[1]; 347 345 args1[0] = initial_url.toString(); 348 Dictionary.setText(main_status, "Mirroring.DownloadJob. Mirroring", args1);346 Dictionary.setText(main_status, "Mirroring.DownloadJob.Downloading", args1); 349 347 350 348 if (current_url != null) { … … 358 356 } 359 357 else { 360 Dictionary.setText(current_status, "Mirroring.DownloadJob. Mirroring_Complete");358 Dictionary.setText(current_status, "Mirroring.DownloadJob.Download_Complete"); 361 359 } 362 360 -
trunk/gli/src/org/greenstone/gatherer/gui/EditorDialog.java
r8243 r8994 99 99 text.setWrapStyleWord(false); 100 100 if (editable) { 101 Dictionary.setTooltip(text, " MetaEdit.Value_Field_Tooltip");101 Dictionary.setTooltip(text, "EnrichPane.Value_Field_Tooltip"); 102 102 } else { 103 Dictionary.setTooltip(text, " MetaEdit.Value_Field_Tooltip_Uneditable");103 Dictionary.setTooltip(text, "EnrichPane.Value_Field_Tooltip_Uneditable"); 104 104 } 105 105 -
trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java
r8846 r8994 141 141 add.setMnemonic(KeyEvent.VK_A); 142 142 add.setPreferredSize(Utility.MINIMUM_BUTTON_SIZE); 143 Dictionary.registerBoth(add, " MetaEdit.Accumulate", "MetaEdit.Accumulate_Tooltip");143 Dictionary.registerBoth(add, "EnrichPane.Accumulate", "EnrichPane.Accumulate_Tooltip"); 144 144 145 145 update = new GLIButton(); … … 148 148 update.setMnemonic(KeyEvent.VK_P); 149 149 update.setPreferredSize(Utility.MINIMUM_BUTTON_SIZE); 150 Dictionary.registerBoth(update, " MetaEdit.Overwrite", "MetaEdit.Overwrite_Tooltip");150 Dictionary.registerBoth(update, "EnrichPane.Overwrite", "EnrichPane.Overwrite_Tooltip"); 151 151 152 152 remove = new GLIButton(); … … 155 155 remove.setMnemonic(KeyEvent.VK_R); 156 156 remove.setPreferredSize(Utility.MINIMUM_BUTTON_SIZE); 157 Dictionary.registerBoth(remove, " MetaEdit.Remove", "MetaEdit.Remove_Tooltip");157 Dictionary.registerBoth(remove, "EnrichPane.Remove", "EnrichPane.Remove_Tooltip"); 158 158 159 159 expand = new GLIButton(); … … 162 162 expand.setMnemonic(KeyEvent.VK_E); 163 163 expand.setPreferredSize(new Dimension(25, 25)); 164 Dictionary.registerBoth(expand, " MetaEdit.Expand", "MetaEdit.Expand_Tooltip");164 Dictionary.registerBoth(expand, "EnrichPane.Expand", "EnrichPane.Expand_Tooltip"); 165 165 166 166 expand_for_extracted = new GLIButton(); … … 169 169 expand_for_extracted.setMnemonic(KeyEvent.VK_E); 170 170 expand_for_extracted.setPreferredSize(new Dimension(25, 25)); 171 Dictionary.registerBoth(expand_for_extracted, " MetaEdit.Expand", "MetaEdit.Expand_Tooltip");171 Dictionary.registerBoth(expand_for_extracted, "EnrichPane.Expand", "EnrichPane.Expand_Tooltip"); 172 172 173 173 metadata_value_text_field = new JTextField(); … … 304 304 table_label.setBackground(Configuration.getColor("coloring.collection_tree_background", false)); 305 305 table_label.setEditable(false); 306 Dictionary.registerText(table_label, " MetaEdit.No_File");306 Dictionary.registerText(table_label, "EnrichPane.No_File"); 307 307 308 308 table_card_pane = new JPanel(); … … 318 318 no_file_message.setOpaque(false); 319 319 no_file_message.setVerticalAlignment(JLabel.CENTER); 320 Dictionary.registerText(no_file_message, " MetaEdit.No_File");320 Dictionary.registerText(no_file_message, "EnrichPane.No_File"); 321 321 322 322 JLabel no_metadata_message = new JLabel(); … … 324 324 no_metadata_message.setOpaque(false); 325 325 no_metadata_message.setVerticalAlignment(JLabel.CENTER); 326 Dictionary.registerText(no_metadata_message, " MetaEdit.No_Metadata");326 Dictionary.registerText(no_metadata_message, "EnrichPane.No_Metadata"); 327 327 328 328 JPanel table_pane_one = new JPanel(); … … 365 365 tools_off_label.setOpaque(false); 366 366 tools_off_label.setVerticalAlignment(JLabel.CENTER); 367 Dictionary.registerText(tools_off_label, " MetaEdit.No_Metadata_Element");367 Dictionary.registerText(tools_off_label, "EnrichPane.No_Metadata_Element"); 368 368 369 369 JPanel tools_on_pane = new JPanel(); … … 492 492 493 493 // Update the label to show nothing is selected in the collection tree 494 Dictionary.registerText(table_label, " MetaEdit.No_File");494 Dictionary.registerText(table_label, "EnrichPane.No_File"); 495 495 496 496 // Display the "no file selected" card … … 982 982 JPanel value_pane = new JPanel(); 983 983 JLabel value_label = new JLabel(); 984 Dictionary.registerText(value_label, " MetaEdit.Value");984 Dictionary.registerText(value_label, "EnrichPane.Value"); 985 985 986 986 JPanel value_field_pane = new JPanel(); … … 991 991 metadata_value_text_field.addKeyListener(new MetadataValueTextFieldKeyListener()); 992 992 metadata_value_text_field.setFocusTraversalKeysEnabled(false); 993 Dictionary.setTooltip(metadata_value_text_field, " MetaEdit.Value_Field_Tooltip");993 Dictionary.setTooltip(metadata_value_text_field, "EnrichPane.Value_Field_Tooltip"); 994 994 995 995 JPanel button_pane = new JPanel(); … … 997 997 JPanel tree_pane = new JPanel(); 998 998 JLabel tree_label = new JLabel(); 999 Dictionary.registerText(tree_label, " MetaEdit.Tree");999 Dictionary.registerText(tree_label, "EnrichPane.Tree"); 1000 1000 1001 1001 tree = new JTree(); … … 1181 1181 String[] args = new String[1]; 1182 1182 args[0] = selected_metadata_element.getFullName(); 1183 Dictionary.registerText(extracted_message, " MetaEdit.AutoMessage", args);1183 Dictionary.registerText(extracted_message, "EnrichPane.AutoMessage", args); 1184 1184 card_layout.show(this, NONE); 1185 1185 card_showing = NONE; -
trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java
r8848 r8994 196 196 */ 197 197 public void dragGestureRecognized(DragGestureEvent event) { 198 // Can never drag from MetaEdittree199 if(name.equals(" MetaEdit")) {198 // Can never drag from Enrich tree 199 if(name.equals("Enrich")) { 200 200 return; 201 201 }
Note:
See TracChangeset
for help on using the changeset viewer.