home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIPHEFT062001.ISO / browser / nc32lyc / comm.z / java40.jar / netscape / softupdate / WinProfileItem.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-08-15  |  1.6 KB  |  46 lines

  1. package netscape.softupdate;
  2.  
  3. import java.text.MessageFormat;
  4.  
  5. final class WinProfileItem extends InstallObject {
  6.    private WinProfile profile;
  7.    private String section;
  8.    private String key;
  9.    private String value;
  10.  
  11.    WinProfileItem(WinProfile var1, String var2, String var3, String var4) throws SoftUpdateException {
  12.       super(var1.softUpdate());
  13.       this.profile = var1;
  14.       this.section = var2;
  15.       this.key = var3;
  16.       this.value = var4;
  17.    }
  18.  
  19.    protected void Complete() throws SoftUpdateException {
  20.       this.profile.finalWriteString(this.section, this.key, this.value);
  21.    }
  22.  
  23.    float GetInstallOrder() {
  24.       return 4.0F;
  25.    }
  26.  
  27.    public String toString() {
  28.       Object[] var1 = new Object[]{this.profile.filename(), this.section, this.key, this.value};
  29.       return MessageFormat.format(Strings.getString("winprofile"), var1);
  30.    }
  31.  
  32.    protected void Abort() {
  33.    }
  34.  
  35.    protected void Prepare() throws SoftUpdateException {
  36.    }
  37.  
  38.    protected boolean CanUninstall() {
  39.       return false;
  40.    }
  41.  
  42.    protected boolean RegisterPackageNode() {
  43.       return true;
  44.    }
  45. }
  46.