Ignore:
Timestamp:
2003-08-22T10:08:26+12:00 (21 years ago)
Author:
jmt12
Message:

Changed calls to CollectionMeta to reflect the two modes of retrieving value - as text, or as greenstone format

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r5086 r5255  
    213213        maintainer_label.setPreferredSize(LABEL_SIZE);
    214214        maintainer_emailfield = new EmailField(Gatherer.config.getColor("coloring.error_background", false));
    215         public_checkbox = new JCheckBox("CDM.General.Access", public_collectionmeta.getValue().equals(CollectionConfiguration.TRUE_STR));
    216         beta_checkbox = new JCheckBox("CDM.General.Beta", beta_collectionmeta.getValue().equals(CollectionConfiguration.TRUE_STR));
     215        public_checkbox = new JCheckBox("CDM.General.Access", public_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));
     216        beta_checkbox = new JCheckBox("CDM.General.Beta", beta_collectionmeta.getValue(CollectionMeta.TEXT).equals(CollectionConfiguration.TRUE_STR));
    217217        JPanel name_panel = new JPanel();
    218218        name_label = new JLabel("CDM.General.Collection_Name");
     
    322322        maintainer_collectionmeta = new CollectionMeta(CollectionDesignManager.collect_config.getMaintainer());
    323323        // Make sure the components are up to date
    324         creator_emailfield.setText(creator_collectionmeta.getValue());
     324        creator_emailfield.setText(creator_collectionmeta.getValue(CollectionMeta.TEXT));
    325325        creator_emailfield.setCaretPosition(0);
    326         description_textarea.setText(collection_extra_collectionmeta.getValue());
     326        description_textarea.setText(collection_extra_collectionmeta.getValue(CollectionMeta.TEXT));
    327327        description_textarea.setCaretPosition(0);
    328         icon_textfield.setText(icon_collection_collectionmeta.getValue());
     328        icon_textfield.setText(icon_collection_collectionmeta.getValue(CollectionMeta.TEXT));
    329329        icon_textfield.setCaretPosition(0);
    330         maintainer_emailfield.setText(maintainer_collectionmeta.getValue());
     330        maintainer_emailfield.setText(maintainer_collectionmeta.getValue(CollectionMeta.TEXT));
    331331        maintainer_emailfield.setCaretPosition(0);
    332         name_textfield.setText(collection_name_collectionmeta.getValue());
     332        name_textfield.setText(collection_name_collectionmeta.getValue(CollectionMeta.TEXT));
    333333        name_textfield.setCaretPosition(0);
    334         small_icon_textfield.setText(icon_collection_small_collectionmeta.getValue());
     334        small_icon_textfield.setText(icon_collection_small_collectionmeta.getValue(CollectionMeta.TEXT));
    335335        small_icon_textfield.setCaretPosition(0);
    336336        ready = true;
Note: See TracChangeset for help on using the changeset viewer.