|
[Squirrel-sql-commits]
sql12/fw/src/net/sourceforge/squirrel_sql/fw/util
UpdateSettings.java, 1.1, 1.2
From: Rob Manning <manningr@us...> - 2007-11-25 13:43
|
Update of /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv21080/fw/src/net/sourceforge/squirrel_sql/fw/util
Modified Files:
UpdateSettings.java
Log Message:
Added fields to preferences for local update directory. Added updater - a small program to be run at startup that will detect changes to be applied and ask the user if they want to apply them.
Index: UpdateSettings.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/UpdateSettings.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** UpdateSettings.java 22 Nov 2007 01:18:14 -0000 1.1
--- UpdateSettings.java 25 Nov 2007 13:43:33 -0000 1.2
***************
*** 46,49 ****
--- 46,52 ----
private String lastUpdateCheckTimeMillis = "0";
+ /** Whether or not the update site is on a remote server */
+ private boolean isRemoteUpdateSite = true;
+
/**
* Return a copy of this object.
***************
*** 159,161 ****
--- 162,187 ----
}
+ /**
+ * Returns a boolean value to indicate whether or not the user wants to use
+ * a remote site. If this is false, it is assumed to mean that the user
+ * wants to specify a local directory on the filesystem
+ *
+ * @return true if remote site; false otherwise.
+ */
+ public boolean isRemoteUpdateSite() {
+ return this.isRemoteUpdateSite;
+ }
+
+ /**
+ * Sets a boolean value to indicate whether or not the user wants to use
+ * a remote site. If this is false, it is assumed to mean that the user
+ * wants to specify a local directory on the filesystem
+ *
+ * @param true for remote site; false for local directory.
+ */
+ public void setRemoteUpdateSite(boolean isRemoteUpdateSite) {
+ this.isRemoteUpdateSite = isRemoteUpdateSite;
+ }
+
+
}
\ No newline at end of file
|
| Thread | Author | Date |
|---|---|---|
| [Squirrel-sql-commits] sql12/fw/src/net/sourceforge/squirrel_sql/fw/util UpdateSettings.java, 1.1, 1.2 | Rob Manning <manningr@us...> |