Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: MODIFIED: core, MessageList.java ...

eyebrowse
Discussion topic

Back to topic list

CVS update: MODIFIED: core, MessageList.java ...

Reply

Author ms
Full name zxcv
Date 2001-10-18 16:03:24 PDT
Message User: ms
  Date: 01/10/18 16:03:24

  Modified: src/java/org/tigris/​eyebrowse/core BrowseList.java
                        MessageList.java
  Log:
  fix for issue 6099. use default windowsize when users try to use a windowsize smaller then 1 message
  
  Revision Changes Path
  1.37 +1 -8 eyebrowse/src/java/o​rg/tigris/eyebrowse/​core/BrowseList.java​
  
  http://eyebrowse.tig​ris.org/source/brows​e/eyebrowse/src/java​/org/tigris/eyebrows​e/core/BrowseList.ja​va.diff?r1=1.36&​r2=1.37
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: BrowseList.java
  ====================​====================​====================​=======
  RCS file: /usr/local/tigris/da​ta/helm/cvs/reposito​ry/eyebrowse/src/jav​a/org/tigris/eyebrow​se/core/BrowseList.j​ava,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -b -r1.36 -r1.37
  --- BrowseList.java 2001/10/17 00:43:16 1.36
  +++ BrowseList.java 2001/10/18 23:03:23 1.37
  @@ -269,14 +269,7 @@
           MessageList.getInsta​nce().populateWindow​Indices
               (context, firstIndex, lastIndex, totalMatches, windowSize);
   
  - if (windowSize != DEFAULT_WINDOW_SIZE)
  - {
               context.put("windowSize", new Integer(windowSize));
  - }
  - else
  - {
  - context.put("windowSize", "");
  - }
           return context;
       }
   }
  
  
  
  1.12 +9 -5 eyebrowse/src/java/o​rg/tigris/eyebrowse/​core/MessageList.jav​a
  
  http://eyebrowse.tig​ris.org/source/brows​e/eyebrowse/src/java​/org/tigris/eyebrows​e/core/MessageList.j​ava.diff?r1=1.11​&r2=1.12
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MessageList.java
  ====================​====================​====================​=======
  RCS file: /usr/local/tigris/da​ta/helm/cvs/reposito​ry/eyebrowse/src/jav​a/org/tigris/eyebrow​se/core/MessageList.​java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- MessageList.java 2001/10/16 23:12:39 1.11
  +++ MessageList.java 2001/10/18 23:03:23 1.12
  @@ -138,8 +138,13 @@
        */
       protected int getWindowSize(Context context)
       {
  - return PropUtil.defaultInt((String) context.get(WINDOW_SIZE_KEY),
  - DEFAULT_WINDOW_SIZE);
  + int windowSize = PropUtil.defaultInt((String)
  + context.get(WINDOW_SIZE_KEY), DEFAULT_WINDOW_SIZE);
  + if (windowSize <= 0)
  + {
  + windowSize = DEFAULT_WINDOW_SIZE;
  + }
  + return windowSize;
    }
   
       /**
  @@ -184,8 +189,7 @@
        */
       protected List buildPageList(int windowSize, int messages)
       {
  - int nbrPages = ( windowSize == 0 ? 0 :
  - (messages + windowSize - 1) / windowSize );
  + int nbrPages = (messages + windowSize - 1) / windowSize ;
           List windows = new ArrayList(nbrPages);
           for (int i = 1; i <= messages; i += windowSize)
           {
  
  
  

--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@eyeb​rowse.tigris.org
For additional commands, e-mail: cvs-help at eyebrowse dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: MODIFIED: core, MessageList.java ... ms zxcv 2001-10-18 16:03:24 PDT
Messages per page: