Changeset 5792


Ignore:
Timestamp:
2003-11-07T10:34:54+13:00 (20 years ago)
Author:
kjdon
Message:

changed this metadata set chooser prompt to display a different title and point to a different help item if its being used for opening a non-gatherer collection

File:
1 edited

Legend:

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

    r5571 r5792  
    2929
    3030    public NewCollectionMetadataPrompt() {
     31    new NewCollectionMetadataPrompt(false);
     32    }
     33    public NewCollectionMetadataPrompt(boolean existing_coll) {
    3134    super(Gatherer.g_man, true);
    3235    this.self = this;
    33     setJMenuBar(new SimpleMenuBar("creatingacollection"));
     36    if (existing_coll) {
     37        setJMenuBar(new SimpleMenuBar("openingacollection"));
     38        Dictionary.setText(this, "NewCollectionPrompt.Metadata_Title_Existing");
     39    } else {
     40        setJMenuBar(new SimpleMenuBar("creatingacollection"));
     41        Dictionary.setText(this, "NewCollectionPrompt.Title");
     42    }
    3443    setModal(true);
    3544    setSize(size);
    36     Dictionary.setText(this, "NewCollectionPrompt.Title");
     45   
    3746
    3847    // And the remaining metadata sets.
     
    167176    implements ActionListener {
    168177    public void actionPerformed(ActionEvent event) {
    169                 // See if the user has selected no metadata sets, and if so confirm thats what they really want.
     178        // See if the user has selected no metadata sets, and if so confirm thats what they really want.
    170179        ArrayList selected_sets = sets_list.getSelected();
    171180        cancelled = false;
Note: See TracChangeset for help on using the changeset viewer.