Update of /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/util/os
In directory sheep:/tmp/cvs-serv15897/src/lib/com/izforge/izpack/util/os
Modified Files:
Shortcut.java
Log Message:
Added support for createForAll - flag
Index: Shortcut.java
===================================================================
RCS file:
/cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/util/os/Shortcut.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Shortcut.java 6 May 2005 20:09:12 -0000 1.18
+++ Shortcut.java 9 May 2005 14:17:57 -0000 1.19
@@ -68,6 +68,9 @@
/** identifies the user type as valid for all users */
public static final int ALL_USERS = 2;
+ /** indicates that this shortcut should be created for all users or only
me **/
+ private Boolean createForAll;
+
/*--------------------------------------------------------------------------*/
/**
* This method initializes the object. It is used as a replacement for the
contructor because of
@@ -454,6 +457,40 @@
public void setURL(String string)
{
}
+
+ /**
+ * Gets the Programs Folder for the given User.
+ * This is where to create subfolders or to place or create shortcuts.
+ *
+ * @param current_user one of current or all
+ *
+ * @return The Foldername or null on unsupported platforms.
+ */
+ public String getProgramsFolder( int current_user )
+ {
+ return null;
+ }
+
+ /**
+ * Sets the flag which indicates, that this should created for all.
+ *
+ * @param aCreateForAll A Flag - Set to true, if to create for All.
+ */
+ public void setCreateForAll( Boolean aCreateForAll )
+ {
+ this.createForAll = new Boolean( aCreateForAll.booleanValue( ) );
+ }
+
+ /**
+ * Gets the create for All Flag
+ *
+ * @return Returns True if this should be for all.
+ */
+ public Boolean getCreateForAll( )
+ {
+ return createForAll;
+ }
+
}
/*---------------------------------------------------------------------------*/
|