Bug 427794 - [bidi] extend org.eclipse.jface.util.BidiUtils.applyBidiProcessing to cover ComboBox widget
Summary: [bidi] extend org.eclipse.jface.util.BidiUtils.applyBidiProcessing to cover C...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.4 M6   Edit
Assignee: Moshe WAJNBERG CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 407927
Blocks: 407865 178081
  Show dependency tree
 
Reported: 2014-02-10 08:21 EST by Tomer Mahlin CLA
Modified: 2014-03-06 05:17 EST (History)
4 users (show)

See Also:
markus.kell.r: review+


Attachments
applyBidiProcessing API for Combo (3.89 KB, patch)
2014-03-03 04:57 EST, Moshe WAJNBERG CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomer Mahlin CLA 2014-02-10 08:21:51 EST
BidiUtils were introduced via bug 383185
At the moment they cover only Text widget: 

     public static void applyBidiProcessing(Text field, String handlingType)


Similar to Text widget handling was added to ComboBox via bug 407927
Thus BidiUtils should cover ComboBox as well. 

    public static void applyBidiProcessing(Combo field, String handlingType)
Comment 1 Moshe WAJNBERG CLA 2014-03-03 04:57:44 EST
Created attachment 240446 [details]
applyBidiProcessing API for Combo

Hello Markus,

Please find in attachment the applyBidiProcessing API for combo

Please note that this patch depends on https://bugs.eclipse.org/bugs/show_bug.cgi?id=407927

Thank you
Comment 2 Tomer Mahlin CLA 2014-03-03 05:22:04 EST
We will provide an updated patch the same date the change in bug 407927 is committed. At the moment, the idea was simply to set the expectations on the suggested change (really a minor one). We are simply adding a new signature for already present function:

public static void applyBidiProcessing(Combo combo, String handlingType) {
	SegmentListener listener = getSegmentListener(handlingType);
	if (listener != null) {
 	    combo.addSegmentListener(listener);
	}
}

Current signature works with Text object, new signature works with Combo object.
The importance of this API is in the fact that without it, it won't be possible to leverage new functionality introduced via bug 407927 .

Many thanks for your support and help.
Comment 3 Tomer Mahlin CLA 2014-03-03 05:55:54 EST
I think we both (Moshe and me) pressed the Save button too early :-)).
The dependent changes in bug 407927 were already delivered.
Thus currently submitted patch is the right one to look at (no additional ones are required).
Comment 4 Markus Keller CLA 2014-03-03 08:39:29 EST
I'm checking this patch and bug 407927 and will release the API today.
Comment 5 Markus Keller CLA 2014-03-03 12:57:08 EST
Fixed with http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d1262d545c169942ed70b824486071ffd11137ca

Added the missing @since tag, the missing "." in the Javadoc, the same debugging aids as in applyBidiProcessing(Text, String), and an if-clause in applyTextDirection(Control, String). The latter shouldn't make a difference as of now, but but it could avoid a problem in the future if combo#addSegmentListener(..) is ever implemented on other platforms.
Comment 6 Moshe WAJNBERG CLA 2014-03-06 05:17:51 EST
Verified on the 05/03/14 build.

Thank you very much Markus for your help.