Changeset 8811


Ignore:
Timestamp:
2004-12-15T11:13:06+13:00 (19 years ago)
Author:
mdewsnip
Message:

Minor tidy ups.

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

Legend:

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

    r8652 r8811  
    213213
    214214
    215     static public void registerTooltip(Component component, String tooltip_key) {
     215    static public void registerTooltip(Component component, String tooltip_key)
     216    {
    216217    setTooltip(component, tooltip_key);
    217218    }
    218219
    219220
    220     static public void registerTooltipText(Component component, String tooltip) {
     221    static public void registerTooltipText(Component component, String tooltip)
     222    {
    221223    setTooltipText(component, tooltip);
    222224    }
  • trunk/gli/src/org/greenstone/gatherer/GAuthenticator.java

    r8474 r8811  
    4040import java.awt.event.*;
    4141import java.net.*;
     42import java.util.*;
    4243import javax.swing.*;
    4344import org.greenstone.gatherer.gui.GLIButton;
     
    4849 */
    4950public class GAuthenticator
    50     extends Authenticator {
     51    extends Authenticator
     52{
     53    static public Hashtable authentications = new Hashtable();
     54
    5155    /** Indicates if this authentication prompt been cancelled, and if so rolls-back authentication. */
    5256    private boolean authentication_cancelled = false;
     
    129133    if(!authentication_cancelled) {
    130134        // Store the authentication
    131         Gatherer.authentications.put(getRequestingHost() + ":" + getRequestingPort(), username.getText() + "@" + new String(password.getPassword()));
     135        authentications.put(getRequestingHost() + ":" + getRequestingPort(), username.getText() + "@" + new String(password.getPassword()));
    132136        return new PasswordAuthentication(username.getText(), password.getPassword());
    133137    } else {
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r8807 r8811  
    6464public class Gatherer
    6565{
    66     static public Hashtable authentications = new Hashtable();
    67 
    68     static final private String SKIN_DEFINITION_FILE = "lib/greenaqua/greenaqua.xml";
    69 
    70     /** Has the exit flag been set? <i>true</i> if so, <i>false</i> otherwise. */
     66    /** Has the exit flag been set? */
    7167    public boolean exit = false;
    72     /** The size of the Gatherer window. */
    73     public Dimension frame_size = null;
    7468
    7569    /** All of the external applications that must exit before we close the Gatherer. */
  • trunk/gli/src/org/greenstone/gatherer/collection/DownloadJob.java

    r8783 r8811  
    4646import org.greenstone.gatherer.Dictionary;
    4747import org.greenstone.gatherer.Gatherer;
     48import org.greenstone.gatherer.GAuthenticator;
    4849import org.greenstone.gatherer.WGet;
    4950import org.greenstone.gatherer.file.WorkspaceTree;
     
    231232        String address = proxy_host + ":" + proxy_port;
    232233        int count = 0;
    233         while(count < 3 && (user_pass = (String) Gatherer.authentications.get(address)) == null) {
     234        while(count < 3 && (user_pass = (String) GAuthenticator.authentications.get(address)) == null) {
    234235        Authenticator.requestPasswordAuthentication(proxy_host, null, Integer.parseInt(proxy_port), "http://", Dictionary.get("WGet.Prompt"), "HTTP");
    235236        count++;
Note: See TracChangeset for help on using the changeset viewer.