- Timestamp:
- 2003-09-26T14:58:33+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java
r5529 r5536 144 144 add.setMnemonic(KeyEvent.VK_A); 145 145 add.setPreferredSize(BUTTON_SIZE); 146 Dictionary. setBoth(add, "MetaEdit.Accumulate", "MetaEdit.Accumulate_Tooltip");146 Dictionary.registerBoth(add, "MetaEdit.Accumulate", "MetaEdit.Accumulate_Tooltip"); 147 147 148 148 update = new JButton(); … … 151 151 update.setMnemonic(KeyEvent.VK_P); 152 152 update.setPreferredSize(BUTTON_SIZE); 153 Dictionary. setBoth(update, "MetaEdit.Overwrite", "MetaEdit.Overwrite_Tooltip");153 Dictionary.registerBoth(update, "MetaEdit.Overwrite", "MetaEdit.Overwrite_Tooltip"); 154 154 155 155 remove = new JButton(); … … 158 158 remove.setMnemonic(KeyEvent.VK_R); 159 159 remove.setPreferredSize(BUTTON_SIZE); 160 Dictionary. setBoth(remove, "MetaEdit.Remove", "MetaEdit.Remove_Tooltip");160 Dictionary.registerBoth(remove, "MetaEdit.Remove", "MetaEdit.Remove_Tooltip"); 161 161 162 162 expand = new JButton(); … … 165 165 expand.setMnemonic(KeyEvent.VK_E); 166 166 expand.setPreferredSize(new Dimension(25, 25)); 167 Dictionary. setBoth(expand, "MetaEdit.Expand", "MetaEdit.Expand_Tooltip");167 Dictionary.registerBoth(expand, "MetaEdit.Expand", "MetaEdit.Expand_Tooltip"); 168 168 169 169 tree = new GValueTree(CONTROL_SIZE.width, CONTROL_SIZE.height); … … 301 301 String[] args = new String[1]; 302 302 args[0] = Gatherer.c_man.getCollection().getName(); 303 Dictionary. setText(collection_label, "Collection.Collection", args);303 Dictionary.registerText(collection_label, "Collection.Collection", args); 304 304 // Update label coloring. 305 305 collection_label.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false)); … … 320 320 } 321 321 else { 322 Dictionary. setText(collection_label, "Collection.No_Collection");322 Dictionary.registerText(collection_label, "Collection.No_Collection"); 323 323 collection_label.setBackground(Color.lightGray); 324 324 collection_label.setForeground(Color.black); … … 353 353 ///atherer.println("\tCreating collection_label"); 354 354 collection_label = new JLabel(); 355 Dictionary. setText(collection_label, "Collection.Collection");355 Dictionary.registerText(collection_label, "Collection.Collection"); 356 356 collection_label.setOpaque(true); 357 357 … … 384 384 fcb.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false)); 385 385 fcb.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false)); 386 Dictionary. setTooltip(fcb, "Collection.Filter_Tooltip");386 Dictionary.registerTooltip(fcb, "Collection.Filter_Tooltip"); 387 387 fcb = null; 388 388 … … 419 419 table_label.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false)); 420 420 table_label.setEditable(false); 421 Dictionary. setText(table_label, "MetaEdit.No_File");421 Dictionary.registerText(table_label, "MetaEdit.No_File"); 422 422 423 423 card_layout = new CardLayout(); … … 435 435 no_file_message.setOpaque(false); 436 436 no_file_message.setVerticalAlignment(JLabel.CENTER); 437 Dictionary. setText(no_file_message, "MetaEdit.No_File");437 Dictionary.registerText(no_file_message, "MetaEdit.No_File"); 438 438 439 439 JLabel no_metadata_message = new JLabel(); … … 441 441 no_metadata_message.setOpaque(false); 442 442 no_metadata_message.setVerticalAlignment(JLabel.CENTER); 443 Dictionary. setText(no_metadata_message, "MetaEdit.No_Metadata");443 Dictionary.registerText(no_metadata_message, "MetaEdit.No_Metadata"); 444 444 445 445 JPanel table_pane_one = new JPanel(); … … 490 490 tools_off_label.setOpaque(false); 491 491 tools_off_label.setVerticalAlignment(JLabel.CENTER); 492 Dictionary. setText(tools_off_label, "MetaEdit.No_Metadata_Element");492 Dictionary.registerText(tools_off_label, "MetaEdit.No_Metadata_Element"); 493 493 494 494 JPanel tools_on_pane = new JPanel(); … … 740 740 else { 741 741 records = null; 742 Dictionary. setText(table_label, "MetaEdit.No_File");742 Dictionary.registerText(table_label, "MetaEdit.No_File"); 743 743 744 744 // Remove old model from msm … … 1128 1128 String[] args = new String[1]; 1129 1129 args[0] = selected_metadata_element.toString(); 1130 Dictionary. setText(extracted_message, "MetaEdit.AutoMessage", args);1130 Dictionary.registerText(extracted_message, "MetaEdit.AutoMessage", args); 1131 1131 card_layout.show(this, NONE); 1132 1132 card_showing = NONE;
Note:
See TracChangeset
for help on using the changeset viewer.