Changeset 8606


Ignore:
Timestamp:
2004-11-19T15:27:04+13:00 (19 years ago)
Author:
mdewsnip
Message:

Made just one WarningDialog constructor.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
7 edited

Legend:

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

    r8605 r8606  
    550550        message_name = "warning.MissingEXEC";
    551551    }
    552     WarningDialog dialog = new WarningDialog(message_name, "general.exec_address" );
     552    WarningDialog dialog = new WarningDialog(message_name, "general.exec_address", false);
    553553    dialog.setValueField(new URLField(Configuration.getColor("coloring.editable_foreground", false), Configuration.getColor("coloring.editable_background", false), Configuration.getColor("coloring.error_foreground", false), Configuration.getColor("coloring.error_background", false)));
    554554    dialog.display();
     
    570570     */
    571571    static public void missingGSDL() {
    572     WarningDialog dialog = new WarningDialog("warning.MissingGSDL", false);
     572    WarningDialog dialog = new WarningDialog("warning.MissingGSDL", null, false);
    573573    dialog.display();
    574574    dialog.dispose();
     
    578578    /** Prints a warning message about a missing PERL path, which although not fatal pretty much ensures no collection creation/building will work properly in the Gatherer. */
    579579    static public void missingPERL() {
    580     WarningDialog dialog = new WarningDialog("warning.MissingPERL", false);
     580    WarningDialog dialog = new WarningDialog("warning.MissingPERL", null, false);
    581581    dialog.display();
    582582    dialog.dispose();
     
    586586    /** Prints a warning message about a missing a valid WGet path. not fatal, but mirroring won't work */
    587587    static public void missingWGET() {
    588     WarningDialog dialog = new WarningDialog("warning.MissingWGET", false);
     588    WarningDialog dialog = new WarningDialog("warning.MissingWGET", null, false);
    589589    dialog.display();
    590590    dialog.dispose();
     
    593593    /** Prints a warning message about having an old version of WGet. not fatal, but mirroring may not work properly */
    594594    static public void oldWGET() {
    595     WarningDialog dialog = new WarningDialog("warning.OldWGET", false);
     595    WarningDialog dialog = new WarningDialog("warning.OldWGET", null, false);
    596596    dialog.display();
    597597    dialog.dispose();
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r8243 r8606  
    385385        if(NewCollectionDetailsPrompt.titleClashes(title, CollectionDesignManager.collect_config.getFile())) {
    386386        // Determine if the user wants to be warned about this
    387         WarningDialog dialog = new WarningDialog("warning.TitleClashes", true);
     387        WarningDialog dialog = new WarningDialog("warning.TitleClashes", null, true);
    388388        if(dialog.display() == JOptionPane.OK_OPTION) {
    389389            // If they have said yes, then carry on with the assignement
     
    434434        if(!has_been_warned && NewCollectionDetailsPrompt.titleClashes(title, CollectionDesignManager.collect_config.getFile())) {
    435435            // Determine if the user wants to be warned about this
    436             WarningDialog dialog = new WarningDialog("warning.TitleClashes", true);
     436            WarningDialog dialog = new WarningDialog("warning.TitleClashes", null, true);
    437437            if(dialog.display() == JOptionPane.OK_OPTION) {
    438438            // If they have said yes, then carry on with the assignement
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r8600 r8606  
    11671167
    11681168        // Now display a message dialog saying its all built
    1169         WarningDialog collection_built_warning_dialog = new WarningDialog("warning.CollectionBuilt", false);
     1169        WarningDialog collection_built_warning_dialog = new WarningDialog("warning.CollectionBuilt", null, false);
    11701170        collection_built_warning_dialog.setMessageOnly(true); // Not a warning
    11711171        collection_built_warning_dialog.display();
  • trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java

    r8503 r8606  
    504504    MetadataValue previously_selected_metadata_value = metadata_value_table.getSelectedMetadataValueTableEntry();
    505505    metadata_value_table.rebuildAndSelectRowWithValueClosestTo(previously_selected_metadata_value);
    506 
    507 //  // Update the meta-audit view to show the current selection, if any.
    508 //  Gatherer.g_man.meta_audit.setRecords(file_nodes);
    509506    }
    510507
     
    528525        // If we're adding metadata to folders display the warning
    529526        if (!file_nodes[0].isLeaf()) {
    530         WarningDialog dialog = new WarningDialog("warning.DirectoryLevelMetadata", true);
     527        WarningDialog dialog = new WarningDialog("warning.DirectoryLevelMetadata", null, true);
    531528        int dialog_result = dialog.display();
    532529        dialog.dispose();
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionMetadataPrompt.java

    r8313 r8606  
    309309        cancelled = false;
    310310        if(selected_sets.size() == 0) {
    311         WarningDialog dialog = new WarningDialog("warning.NoMetadataSetsSelected", true);
     311        WarningDialog dialog = new WarningDialog("warning.NoMetadataSetsSelected", null, true);
    312312        if(dialog.display() == JOptionPane.OK_OPTION) {
    313313            // Otherwise we are free to go
  • trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java

    r8605 r8606  
    5555
    5656
    57     public WarningDialog(String full_property, boolean can_cancel) {
    58     this(full_property, can_cancel, null);
    59     }
    60 
    61     public WarningDialog(String full_property, String affected_property) {
    62     this(full_property, false, affected_property);
    63     }
    64 
    65 
    66     private WarningDialog(String full_property, boolean can_cancel, String affected_property) {
     57    public WarningDialog(String full_property, String affected_property, boolean can_cancel)
     58    {
    6759    super(Gatherer.g_man, "Warning", true);
    6860
     
    268260    }
    269261}
    270 
    271 
    272 
    273 
    274 
    275 
    276 
    277 
  • trunk/gli/src/org/greenstone/gatherer/metadata/MetadataValueTableModel.java

    r8231 r8606  
    256256        Runnable task = new Runnable() {
    257257            public void run() {
    258             WarningDialog dialog = new WarningDialog("warning.ExtractedMetadata", false);
     258            WarningDialog dialog = new WarningDialog("warning.ExtractedMetadata", null, false);
    259259            dialog.display();
    260260            dialog.dispose();
     
    270270        Runnable task = new Runnable() {
    271271            public void run() {
    272             WarningDialog dialog = new WarningDialog("warning.InheritedMetadata", false);
     272            WarningDialog dialog = new WarningDialog("warning.InheritedMetadata", null, false);
    273273            dialog.display();
    274274            dialog.dispose();
Note: See TracChangeset for help on using the changeset viewer.