3

I am trying to write a right to left editor as an Eclipse plugin for languages like Arabic. Anyone has an idea how can I make it? My editor Class is like the following:

public class ArabicEditor  extends TextEditor implements org.eclipse.ui.texteditor.ITextEditor

In the constructor I wrote like this:

Window.setDefaultOrientation(SWT.RIGHT_TO_LEFT); 

But it does not work.

4

2 回答 2

0

您无需实现任何东西即可在 Eclipse 中获得从右到左的支持。只需运行 eclipse.exe -dir rtl即可在完整的 IDE 中从右到左获取文本。

于 2013-09-16T14:05:20.917 回答
0

您需要启用双向文本方向。

像往常一样单击窗口 > 首选项 > 常规 > 全球化 > 启用双向支持。不要忘记重新启动 Eclipse 以使其生效。

https://help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-globalizationprefs.htm

于 2018-05-08T07:56:19.933 回答