Ignore:
Timestamp:
2003-09-26T14:58:33+12:00 (21 years ago)
Author:
mdewsnip
Message:

Many more tooltips and improvements to the Dictionary. Still more to come.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java

    r5529 r5536  
    144144    add.setMnemonic(KeyEvent.VK_A);
    145145    add.setPreferredSize(BUTTON_SIZE);
    146     Dictionary.setBoth(add, "MetaEdit.Accumulate", "MetaEdit.Accumulate_Tooltip");
     146    Dictionary.registerBoth(add, "MetaEdit.Accumulate", "MetaEdit.Accumulate_Tooltip");
    147147
    148148    update = new JButton();
     
    151151    update.setMnemonic(KeyEvent.VK_P);
    152152    update.setPreferredSize(BUTTON_SIZE);
    153     Dictionary.setBoth(update, "MetaEdit.Overwrite", "MetaEdit.Overwrite_Tooltip");
     153    Dictionary.registerBoth(update, "MetaEdit.Overwrite", "MetaEdit.Overwrite_Tooltip");
    154154
    155155    remove = new JButton();
     
    158158    remove.setMnemonic(KeyEvent.VK_R);
    159159    remove.setPreferredSize(BUTTON_SIZE);
    160     Dictionary.setBoth(remove, "MetaEdit.Remove", "MetaEdit.Remove_Tooltip");
     160    Dictionary.registerBoth(remove, "MetaEdit.Remove", "MetaEdit.Remove_Tooltip");
    161161
    162162    expand = new JButton();
     
    165165    expand.setMnemonic(KeyEvent.VK_E);
    166166    expand.setPreferredSize(new Dimension(25, 25));
    167     Dictionary.setBoth(expand, "MetaEdit.Expand", "MetaEdit.Expand_Tooltip");
     167    Dictionary.registerBoth(expand, "MetaEdit.Expand", "MetaEdit.Expand_Tooltip");
    168168
    169169    tree = new GValueTree(CONTROL_SIZE.width, CONTROL_SIZE.height);
     
    301301        String[] args = new String[1];
    302302        args[0] = Gatherer.c_man.getCollection().getName();
    303         Dictionary.setText(collection_label, "Collection.Collection", args);
     303        Dictionary.registerText(collection_label, "Collection.Collection", args);
    304304        // Update label coloring.
    305305        collection_label.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     
    320320    }
    321321    else {
    322         Dictionary.setText(collection_label, "Collection.No_Collection");
     322        Dictionary.registerText(collection_label, "Collection.No_Collection");
    323323        collection_label.setBackground(Color.lightGray);
    324324        collection_label.setForeground(Color.black);
     
    353353    ///atherer.println("\tCreating collection_label");
    354354    collection_label = new JLabel();
    355     Dictionary.setText(collection_label, "Collection.Collection");
     355    Dictionary.registerText(collection_label, "Collection.Collection");
    356356    collection_label.setOpaque(true);
    357357
     
    384384    fcb.setBackgroundSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    385385    fcb.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
    386     Dictionary.setTooltip(fcb, "Collection.Filter_Tooltip");
     386    Dictionary.registerTooltip(fcb, "Collection.Filter_Tooltip");
    387387    fcb = null;
    388388
     
    419419    table_label.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    420420    table_label.setEditable(false);
    421     Dictionary.setText(table_label, "MetaEdit.No_File");
     421    Dictionary.registerText(table_label, "MetaEdit.No_File");
    422422
    423423    card_layout = new CardLayout();
     
    435435    no_file_message.setOpaque(false);
    436436    no_file_message.setVerticalAlignment(JLabel.CENTER);
    437     Dictionary.setText(no_file_message, "MetaEdit.No_File");
     437    Dictionary.registerText(no_file_message, "MetaEdit.No_File");
    438438
    439439    JLabel no_metadata_message = new JLabel();
     
    441441    no_metadata_message.setOpaque(false);
    442442    no_metadata_message.setVerticalAlignment(JLabel.CENTER);
    443     Dictionary.setText(no_metadata_message, "MetaEdit.No_Metadata");
     443    Dictionary.registerText(no_metadata_message, "MetaEdit.No_Metadata");
    444444
    445445    JPanel table_pane_one = new JPanel();
     
    490490    tools_off_label.setOpaque(false);
    491491    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");
    493493
    494494    JPanel tools_on_pane = new JPanel();
     
    740740    else {
    741741        records = null;
    742         Dictionary.setText(table_label, "MetaEdit.No_File");
     742        Dictionary.registerText(table_label, "MetaEdit.No_File");
    743743
    744744        // Remove old model from msm
     
    11281128        String[] args = new String[1];
    11291129        args[0] = selected_metadata_element.toString();
    1130         Dictionary.setText(extracted_message, "MetaEdit.AutoMessage", args);
     1130        Dictionary.registerText(extracted_message, "MetaEdit.AutoMessage", args);
    11311131        card_layout.show(this, NONE);
    11321132        card_showing = NONE;
Note: See TracChangeset for help on using the changeset viewer.