Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 200907 Details for
Bug 183164
[Implementation for] Display of Complex Expressions Containing Bidirectional Text
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
update test programs after adding STextOffsets
patch_bidi_tests_20110804.txt (text/plain), 3.34 KB, created by
Matitiahu Allouche
on 2011-08-04 07:53:25 EDT
(
hide
)
Description:
update test programs after adding STextOffsets
Filename:
MIME Type:
Creator:
Matitiahu Allouche
Created:
2011-08-04 07:53:25 EDT
Size:
3.34 KB
patch
obsolete
>diff --git src/org/eclipse/equinox/bidi/internal/tests/STextMethodsTest.java src/org/eclipse/equinox/bidi/internal/tests/STextMethodsTest.java >index 3c09385..9be2d9a 100644 >--- src/org/eclipse/equinox/bidi/internal/tests/STextMethodsTest.java >+++ src/org/eclipse/equinox/bidi/internal/tests/STextMethodsTest.java >@@ -39,21 +39,21 @@ > return ","; //$NON-NLS-1$ > } > >- public boolean skipProcessing(STextEnvironment environment, String text, STextCharTypes dirProps) { >- byte dirProp = dirProps.getBidiTypeAt(0); >- if (dirProp == AL) >+ public boolean skipProcessing(STextEnvironment environment, String text, STextCharTypes charTypes) { >+ byte charType = charTypes.getBidiTypeAt(0); >+ if (charType == AL) > return true; > return false; > } > > public int getDirection(STextEnvironment environment, String text) { >- return getDirection(environment, text, new STextCharTypes(text)); >+ return getDirection(environment, text, new STextCharTypes(this, environment, text)); > } > >- public int getDirection(STextEnvironment environment, String text, STextCharTypes dirProps) { >+ public int getDirection(STextEnvironment environment, String text, STextCharTypes charTypes) { > for (int i = 0; i < text.length(); i++) { >- byte dirProp = dirProps.getBidiTypeAt(i); >- if (dirProp == AL) >+ byte charType = charTypes.getBidiTypeAt(i); >+ if (charType == AL) > return dirArabic; > } > return dirHebrew; >diff --git src/org/eclipse/equinox/bidi/internal/tests/STextSomeMoreTest.java src/org/eclipse/equinox/bidi/internal/tests/STextSomeMoreTest.java >index e10dd73..aaa69ff 100644 >--- src/org/eclipse/equinox/bidi/internal/tests/STextSomeMoreTest.java >+++ src/org/eclipse/equinox/bidi/internal/tests/STextSomeMoreTest.java >@@ -13,8 +13,7 @@ > > import org.eclipse.equinox.bidi.STextEngine; > import org.eclipse.equinox.bidi.STextEnvironment; >-import org.eclipse.equinox.bidi.custom.STextCharTypes; >-import org.eclipse.equinox.bidi.custom.STextProcessor; >+import org.eclipse.equinox.bidi.custom.*; > > /** > * Tests some weird cases >@@ -31,15 +30,15 @@ > return 1; > } > >- public int indexOfSpecial(STextEnvironment env, String text, STextCharTypes dirProps, int[] offsets, int caseNumber, int fromIndex) { >+ public int indexOfSpecial(STextEnvironment env, String text, STextCharTypes charTypes, STextOffsets offsets, int caseNumber, int fromIndex) { > return fromIndex; > } > >- public int processSpecial(STextEnvironment env, String text, STextCharTypes dirProps, int[] offsets, int[] state, int caseNumber, int separLocation) { >+ public int processSpecial(STextEnvironment env, String text, STextCharTypes charTypes, STextOffsets offsets, int[] state, int caseNumber, int separLocation) { > int len = text.length(); > for (int i = len - 1; i >= 0; i--) { >- STextProcessor.insertMark(text, dirProps, offsets, i); >- STextProcessor.insertMark(text, dirProps, offsets, i); >+ STextProcessor.insertMark(text, charTypes, offsets, i); >+ STextProcessor.insertMark(text, charTypes, offsets, i); > } > return len; > } >@@ -59,7 +58,7 @@ > return 1; > } > >- public int indexOfSpecial(STextEnvironment env, String text, STextCharTypes dirProps, int[] offsets, int caseNumber, int fromIndex) { >+ public int indexOfSpecial(STextEnvironment env, String text, STextCharTypes charTypes, STextOffsets offsets, int caseNumber, int fromIndex) { > return fromIndex; > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
ob1.eclipse
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 183164
:
148967
|
157821
|
158092
|
158531
|
160015
|
160017
|
160081
|
160698
|
160858
|
162228
|
162229
|
164476
|
186038
|
186054
|
186488
|
186490
|
188406
|
188407
|
188408
|
188627
|
194078
|
194079
|
195082
|
195084
|
196575
|
196576
|
199068
|
199070
|
199113
|
199855
|
200008
|
200389
|
200629
|
200630
|
200631
|
200742
|
200743
|
200803
|
200805
|
200905
| 200907 |
201464
|
201465
|
201467
|
201468
|
201469
|
201470
|
201676
|
201677
|
201785
|
201787
|
202172
|
202173
|
205767
|
205768
|
206588
|
210657