|
From: <de...@us...> - 2003-12-12 10:32:12
|
Update of /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/commun
In directory sc8-pr-cvs1:/tmp/cvs-serv21927/commun
Modified Files:
EbliLib.java
Log Message:
Deplacement du package tableau et filechooser
Index: EbliLib.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/ebli/src/org/fudaa/ebli/commun/EbliLib.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** EbliLib.java 11 Dec 2003 12:41:52 -0000 1.7
--- EbliLib.java 12 Dec 2003 10:32:08 -0000 1.8
***************
*** 18,47 ****
*/
public class EbliLib {
! public final static boolean DEBUG= "TRUE".equals(System.getProperty("DEBUG"));
! public static void debug(String _s) {
! System.out.println("DEBUG: " + _s);
! }
! public static void error(String _s) {
! System.out.println("ERROR: " + _s);
! }
! /**
! * Cherche l'index de la chaine <code>_string</code>
! * dans le tableau <code>_stringArray</code>. Renvoie <code>-1</code> si
! * l'un des deux parametres est nuls.
! * @return index si l'action du composant est trouvee dans le tableau, -1 sinon
! */
! public static int getIndex(Object _obj, Object[] _objArray) {
! if ((_obj == null) || (_objArray == null)) {
! return -1;
! }
! int n= _objArray.length - 1;
! Object com;
! for (int i= n; i >= 0; i--) {
! com= _objArray[i];
! if (_obj.equals(com))
! return i;
! }
! return -1;
! }
/**
* Return -1 if no contiguous selection
--- 18,23 ----
*/
public class EbliLib {
!
!
/**
* Return -1 if no contiguous selection
|