Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RTL not working with RAP application (Rendering of RAP application in hebrew is still Left-To-Right)
RTL not working with RAP application [message #1744936] Mon, 03 October 2016 07:26 Go to next message
Johann DUPUIS is currently offline Johann DUPUISFriend
Messages: 8
Registered: August 2013
Location: France
Junior Member
Hi all,

I'm build a basic application to test tycho build, and, RTL/multi-languages rendering in RAP 3.1.1 .

My dummy application is running on both RAP and RCP thanks to single sourcing.

While both RAP and RCP versions of my application are both rendering some widgets in hebrew (Yes/No, Ok/Cancel, preferences menu), only the RCP application is rendered in Right-To-Left.

Do I have something more to do in RAP to enable RTL?

Any help would be greatly appreciated.

Regards.

PS: I tried to add "-bidi" parameter to my (RAP) web.xml without any effect:

<init-param>
<param-name>commandline</param-name>
<param-value>-registryMultiLanguage -bidi "on=y;textDir=rtl"</param-value>
</init-param>

  • Attachment: rcp.png
    (Size: 42.60KB, Downloaded 120 times)
  • Attachment: rap.png
    (Size: 13.65KB, Downloaded 118 times)
  • Attachment: rap.en.png
    (Size: 11.81KB, Downloaded 109 times)
Re: RTL not working with RAP application [message #1744940 is a reply to message #1744936] Mon, 03 October 2016 07:45 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
how did you enable the right-to-left support? Did you set the SWT.RIGHT_TO_LEFT style on your main Shell? Is this a workbench application?
Regards,
Ivan
Re: RTL not working with RAP application [message #1744947 is a reply to message #1744940] Mon, 03 October 2016 08:36 Go to previous messageGo to next message
Johann DUPUIS is currently offline Johann DUPUISFriend
Messages: 8
Registered: August 2013
Location: France
Junior Member
Hi,

That's indeed a workbench application.

As suggested by you, I have added an explicit Style (SWT.RIGHT_TO_LEFT) for the workbench window configurer when locale is "hebrew" and it works Smile !!!

public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {

    private static final String PERSPECTIVE_ID = "example.bundle.perspective";

    public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
    	if (Activator.getDefault().getLocaleProvider().getLocale().getLanguage().equals("iw")) {	//$NON-NLS-1$
    		configurer.setShellStyle(SWT.RIGHT_TO_LEFT);	
    	}
        return new ApplicationWorkbenchWindowAdvisor(configurer);
    }

    public String getInitialWindowPerspectiveId() {
        return PERSPECTIVE_ID;
    }
}


That way, I have RTL only with browser displaying hebrew but LTR for french/english browsers.

Thank you very much for your suggestion that solved the issue.

I'm only wondering why explicit mention of the shell style must be done with RAP while it works without it for RCP.

Regards,
Johann

[Updated on: Mon, 03 October 2016 08:39]

Report message to a moderator

Re: RTL not working with RAP application [message #1744956 is a reply to message #1744947] Mon, 03 October 2016 11:54 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
that's an interesting question, which I'm interesting too Smile Did you specify something related to RTL as extension point?
Regards,
Ivan
Previous Topic:FileDialog and File Extensions Filtering
Next Topic:RichTextEditor and images
Goto Forum:
  


Current Time: Fri Apr 19 20:47:56 GMT 2024

Powered by FUDForum. Page generated in 0.03245 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top