- Timestamp:
- 2006-07-10T15:02:33+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r12072 r12123 537 537 Collections.sort(library); 538 538 // Create 539 add = new GLIButton(); 540 add.setMnemonic(KeyEvent.VK_A); 541 Dictionary.registerBoth(add, "CDM.ClassifierManager.Add", "CDM.ClassifierManager.Add_Tooltip"); 539 add = new GLIButton(Dictionary.get("CDM.ClassifierManager.Add"), Dictionary.get("CDM.ClassifierManager.Add_Tooltip")); 540 542 541 JPanel button_pane = new JPanel(); 543 542 JPanel central_pane = new JPanel(); 544 configure = new GLIButton(); 543 544 configure = new GLIButton(Dictionary.get("CDM.ClassifierManager.Configure"), Dictionary.get("CDM.ClassifierManager.Configure_Tooltip")); 545 545 configure.setEnabled(false); 546 configure.setMnemonic(KeyEvent.VK_C); 547 Dictionary.registerBoth(configure, "CDM.ClassifierManager.Configure", "CDM.ClassifierManager.Configure_Tooltip"); 546 548 547 JPanel header_pane = new DesignPaneHeader("CDM.GUI.Classifiers", "classifiers"); 549 548 … … 560 559 } 561 560 562 JLabel classifier_label = new JLabel( );563 Dictionary.registerText(classifier_label, "CDM.ClassifierManager.Classifier");561 JLabel classifier_label = new JLabel(Dictionary.get("CDM.ClassifierManager.Classifier")); 562 564 563 classifier_list = new JList(model); 565 564 classifier_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 566 JLabel classifier_list_label = new JLabel( );567 // classifier_list_label.setHorizontalAlignment(JLabel.CENTER);565 JLabel classifier_list_label = new JLabel(Dictionary.get("CDM.ClassifierManager.Assigned")); 566 568 567 classifier_list_label.setOpaque(true); 569 Dictionary.registerText(classifier_list_label, "CDM.ClassifierManager.Assigned");568 570 569 JPanel classifier_list_pane = new JPanel(); 571 570 JPanel classifier_pane = new JPanel(); 572 remove = new GLIButton( );571 remove = new GLIButton(Dictionary.get("CDM.ClassifierManager.Remove"), Dictionary.get("CDM.ClassifierManager.Remove_Tooltip")); 573 572 remove.setEnabled(false); 574 remove.setMnemonic(KeyEvent.VK_R); 575 Dictionary.registerBoth(remove, "CDM.ClassifierManager.Remove", "CDM.ClassifierManager.Remove_Tooltip"); 576 573 577 574 JPanel temp = new JPanel(new BorderLayout()); 578 575 579 576 JPanel move_button_pane = new JPanel(); 580 577 581 move_up_button = new GLIButton( "", JarTools.getImage("arrow-up.gif"));578 move_up_button = new GLIButton(Dictionary.get("CDM.Move.Move_Up"), JarTools.getImage("arrow-up.gif"), Dictionary.get("CDM.Move.Move_Up_Tooltip")); 582 579 move_up_button.setEnabled(false); 583 move_up_button.setMnemonic(KeyEvent.VK_U); 584 Dictionary.registerBoth(move_up_button, "CDM.Move.Move_Up", "CDM.Move.Move_Up_Tooltip"); 585 586 move_down_button = new GLIButton("", JarTools.getImage("arrow-down.gif")); 580 581 move_down_button = new GLIButton(Dictionary.get("CDM.Move.Move_Down"), JarTools.getImage("arrow-down.gif"), Dictionary.get("CDM.Move.Move_Down_Tooltip")); 587 582 move_down_button.setEnabled(false); 588 move_down_button.setMnemonic(KeyEvent.VK_D); 589 Dictionary.registerBoth(move_down_button, "CDM.Move.Move_Down", "CDM.Move.Move_Down_Tooltip"); 590 583 591 584 // Listeners 592 585 add.addActionListener(new AddListener()); … … 724 717 // And reset the tooltip. If the plugin is null or is a string, then go back to the default message 725 718 if(current_selection == null || current_selection instanceof String) { 726 Dictionary.registerTooltip(classifier, "CDM.ClassifierManager.Classifier_Tooltip");719 classifier.setToolTipText(Dictionary.get("CDM.ClassifierManager.Classifier_Tooltip")); 727 720 } 728 721 else { 729 722 Classifier current_classifier = (Classifier) current_selection; 730 Dictionary.registerTooltipText(classifier,Utility.formatHTMLWidth(current_classifier.getDescription(), 40));723 classifier.setToolTipText(Utility.formatHTMLWidth(current_classifier.getDescription(), 40)); 731 724 current_classifier = null; 732 725 }
Note:
See TracChangeset
for help on using the changeset viewer.