Ignore:
Timestamp:
2007-01-12T14:05:00+13:00 (17 years ago)
Author:
mdewsnip
Message:

Added a static getLoadedCollectionName() function into CollectionManager, as part of making CollectionManager fully static.

File:
1 edited

Legend:

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

    r13453 r13586  
    3838import org.greenstone.gatherer.Dictionary;
    3939import org.greenstone.gatherer.Gatherer;
     40import org.greenstone.gatherer.collection.CollectionManager;
    4041import org.greenstone.gatherer.gui.DesignPaneHeader;
    4142import org.greenstone.gatherer.gui.EmailField;
     
    152153       
    153154        JLabel short_name_label = new JLabel(Dictionary.get("NewCollectionPrompt.Collection_Name"));
    154         JTextField short_name_textfield = new JTextField(Gatherer.c_man.getCollection().getName());
     155        JTextField short_name_textfield = new JTextField(CollectionManager.getLoadedCollectionName());
    155156        short_name_textfield.setEditable(false);
    156157        short_name_textfield.setBackground(Configuration.getColor("coloring.collection_tree_background", false));
     
    317318
    318319        public BrowseListener(String prefix_raw) {
    319         this.prefix = prefix_raw.replaceAll(StaticStrings.COLNAME_PATTERN, Gatherer.c_man.getCollection().getName());
     320        this.prefix = prefix_raw.replaceAll(StaticStrings.COLNAME_PATTERN, CollectionManager.getLoadedCollectionName());
    320321        }
    321322
     
    346347                // If we're using a remote Greenstone server, upload the image
    347348                if (Gatherer.isGsdlRemote) {
    348                 RemoteGreenstoneServer.uploadCollectionFile(Gatherer.c_man.getCollection().getName(), collection_image_file);
     349                RemoteGreenstoneServer.uploadCollectionFile(CollectionManager.getLoadedCollectionName(), collection_image_file);
    349350                }
    350351            }
     
    415416        // Set the title
    416417        String collection_title = name_textfield.getText();
    417         String collection_name = Gatherer.c_man.getCollection().getName();
     418        String collection_name = CollectionManager.getLoadedCollectionName();
    418419        Gatherer.g_man.setTitle(collection_title, collection_name);
    419420                collection_name_collectionmeta.setValue(name_textfield.getText());
Note: See TracChangeset for help on using the changeset viewer.