litesoft
Diff Revisions
263
vs
264
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/InjectionPointSelectorController.java
|
@@ -260,7 +260,7 @@ |
260 |
260 |
|
@Override |
261 |
261 |
|
public String toString() |
262 |
262 |
|
{ |
263 |
|
- |
return justSimpleName( getClass().getName() ) + addXtra() + ": " + replace( getText(), '\n', "\\n" ); |
|
263 |
+ |
return replace( getText(), '\n', "\\n" ) + ":" + addXtra(); |
264 |
264 |
|
} |
265 |
265 |
|
|
266 |
266 |
|
protected String addXtra() |
|
@@ -492,7 +492,7 @@ |
492 |
492 |
|
Between<T> zSelectedBetween = getCurrentSelectedBetween( pSelectedBetweens, 0 ); |
493 |
493 |
|
|
494 |
494 |
|
int zInjectInsToAdd = mInjectIns.size() - 1; |
495 |
|
- |
int zAvailableBetweenBuckets = (pCount - 3) / 2; |
|
495 |
+ |
int zAvailableBetweenBuckets = Math.min( zInjectInsToAdd, (pCount - 3) / 2 ); |
496 |
496 |
|
|
497 |
497 |
|
System.out.println( "buildHomeViewSett( " + zSelectedBetween + " ): " + // |
498 |
498 |
|
pCount + " ( " + mInjectIns.size() + " ) " + zInjectInsToAdd + " | " + zAvailableBetweenBuckets ); |
|
@@ -544,7 +544,7 @@ |
544 |
544 |
|
Between<T> zSelectedBetween = getCurrentSelectedBetween( pSelectedBetweens, pCurrentIndex ); |
545 |
545 |
|
|
546 |
546 |
|
int zInjectInsToAdd = zLowerNdx - zUpperNdx; |
547 |
|
- |
int zAvailableBetweenBuckets = pCount / 2; |
|
547 |
+ |
int zAvailableBetweenBuckets = Math.min( zInjectInsToAdd, pCount / 2 ); |
548 |
548 |
|
|
549 |
549 |
|
System.out.println( " buildSubsequentViewSet( " + pCurrentIndex + " => " + zSelectedBetween + " ): " + // |
550 |
550 |
|
pCount + " ( " + zUpperNdx + ", " + zLowerNdx + " ) " + zInjectInsToAdd + " | " + zAvailableBetweenBuckets ); |
|
@@ -558,7 +558,7 @@ |
558 |
558 |
|
|
559 |
559 |
|
while ( zCurrNdx < zThru ) |
560 |
560 |
|
{ |
561 |
|
- |
zEntries.add( Reference.create( mSynopsisLines,zCurrT ) ); |
|
561 |
+ |
zEntries.add( Reference.create( mSynopsisLines, zCurrT ) ); |
562 |
562 |
|
int zLastNdx = zCurrNdx; |
563 |
563 |
|
T zLastT = zCurrT; |
564 |
564 |
|
int zHowMany = zInjectInsToAdd / zAvailableBetweenBuckets; |