Ignore:
Timestamp:
2004-10-07T16:44:32+13:00 (20 years ago)
Author:
mdewsnip
Message:

Replaced all "Gatherer.config" with "Configuration".

File:
1 edited

Legend:

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

    r7998 r8231  
    4343import javax.swing.event.*;
    4444import javax.swing.text.*;
     45import org.greenstone.gatherer.Configuration;
    4546import org.greenstone.gatherer.Dictionary;
    4647import org.greenstone.gatherer.Gatherer;
     
    7071    // Creation
    7172    JPanel content_pane = (JPanel) getContentPane();
    72     content_pane.setBackground(Gatherer.config.getColor("coloring.collection_heading_background", false));
     73    content_pane.setBackground(Configuration.getColor("coloring.collection_heading_background", false));
    7374    JPanel center_pane = new JPanel();
    7475    center_pane.setOpaque(false);
     
    8182    Dictionary.setText(name_label, "MEM.Name");
    8283    name_field = new JTextField();
    83     name_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    84     name_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    85     name_field.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    86     name_field.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     84    name_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     85    name_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     86    name_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     87    name_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    8788    Dictionary.setTooltip(name_field, "MEM.Set_Name_Tooltip");
    8889   
     
    9495    Dictionary.setText(namespace_label, "MEM.Namespace");
    9596    namespace_field = new JTextField();
    96     namespace_field.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    97     namespace_field.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    98     namespace_field.setSelectionColor(Gatherer.config.getColor("coloring.collection_selection_background", false));
    99     namespace_field.setSelectedTextColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
     97    namespace_field.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     98    namespace_field.setForeground(Configuration.getColor("coloring.collection_tree_foreground", false));
     99    namespace_field.setSelectionColor(Configuration.getColor("coloring.collection_selection_background", false));
     100    namespace_field.setSelectedTextColor(Configuration.getColor("coloring.collection_selection_foreground", false));
    100101    Dictionary.setTooltip(namespace_field, "MEM.Set_Namespace_Tooltip");
    101102
     
    143144    content_pane.add(button_pane, BorderLayout.SOUTH);
    144145   
    145     setLocation((Gatherer.config.screen_size.width - ADD_SET_SIZE.width) / 2, (Gatherer.config.screen_size.height - ADD_SET_SIZE.height) / 2);
     146    setLocation((Configuration.screen_size.width - ADD_SET_SIZE.width) / 2, (Configuration.screen_size.height - ADD_SET_SIZE.height) / 2);
    146147    setVisible(true);
    147148    }
Note: See TracChangeset for help on using the changeset viewer.