Changeset 4469


Ignore:
Timestamp:
2003-06-04T10:13:08+12:00 (21 years ago)
Author:
kjdon
Message:

commented out job_status stuff - not used by anything, changed file_status to a JLabel instead of a SmudgyLabel, and removed all teh tool tips from file_status - they only said the same thing anyway.

File:
1 edited

Legend:

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

    r4447 r4469  
    7373    private HashMap recycle_folder_mappings = new HashMap();
    7474    /** A label explaining the current moving files status. */
    75     private SmudgyLabel file_status = null;
     75    private JLabel file_status = null; // was a SmudgyLabel
    7676    /** A label explaining the status of this job. */
    77     private JLabel job_status = null;
     77    //private JLabel job_status = null; // no longer used
    7878    /** A list containing a queue of waiting movement jobs. */
    7979    //private LinkedList queue;
     
    9595    args[0] = "0";
    9696    args[1] = "0";
    97     file_status = new SmudgyLabel(get("Selected", args));
    98     job_status = new JLabel(get("No_Activity"));
     97    file_status = new JLabel(get("Selected", args)); //new SmudgyLabel(get("Selected", args));
     98    //job_status = new JLabel(get("No_Activity"));
    9999    progress = new LongProgressBar();
    100100    progress.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
     
    172172    }
    173173    /** Access to the job state label. */   
    174     public JLabel getJobStatus() {
    175     return job_status;
    176     }
     174//      public JLabel getJobStatus() {
     175//      return job_status;
     176//      }
    177177    /** Access to the progress bar. */
    178178    public LongProgressBar getProgress() {
     
    267267                String args[] = new String[1];
    268268                args[0] = "" + (queue.size() + 1) + "";
    269                 job_status.setText(get("Jobs", args));
     269                //job_status.setText(get("Jobs", args));
    270270                if(job.type == FileJob.COPY) {
    271271                args[0] = Utility.formatPath("FileActions.Copying", source_file.getAbsolutePath(), file_status.getSize().width);
     
    277277                }
    278278                args = null;
    279                 file_status.setToolTipText(Utility.formatHTMLWidth(file_status.getText(), 80));
     279                //file_status.setToolTipText(Utility.formatHTMLWidth(file_status.getText(), 80));
    280280                // If source is a file
    281281                if(source_file.isFile()) {
     
    446446                String args[] = new String[1];
    447447                args[0] = "" + (queue.size() + 1) + "";
    448                 job_status.setText(get("Jobs", args));
     448                //job_status.setText(get("Jobs", args));
    449449                args[0] = Utility.formatPath("FileActions.Deleting", source_file.getAbsolutePath(), file_status.getSize().width);
    450450                file_status.setText(get("Deleting", args));
    451451                args = null;
    452                 file_status.setToolTipText(Utility.formatHTMLWidth(file_status.getText(), 80));
     452                //file_status.setToolTipText(Utility.formatHTMLWidth(file_status.getText(), 80));
    453453                // Remove its metadata
    454454                ArrayList metadatum = null;
     
    582582            }
    583583            // Reset status area
    584             job_status.setText(get("No_Selection"));
     584            //job_status.setText(get("No_Selection"));
    585585            file_status.setText(get("No_Activity"));
    586586            progress.reset();
     
    640640        args[0] = "" + file_count + "";
    641641        args[1] = "" + dir_count + "";
    642         job_status.setText(get("Selected", args));
     642        //job_status.setText(get("Selected", args));
    643643        args = null;
    644644    }
Note: See TracChangeset for help on using the changeset viewer.