summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoshe WAJNBERG2013-05-14 11:32:29 (EDT)
committerMarkus Keller2013-05-14 11:33:53 (EDT)
commitfb9bbaa3c39f88a9e0e5f64d3c4800a01d3573b4 (patch)
tree22729b06f762aff15962a5fd0db77ba1936bd7de
parent046e273e1084f4c9a62f5ca64578a0ccb5fd0128 (diff)
downloadeclipse.platform.text-fb9bbaa3c39f88a9e0e5f64d3c4800a01d3573b4.zip
eclipse.platform.text-fb9bbaa3c39f88a9e0e5f64d3c4800a01d3573b4.tar.gz
eclipse.platform.text-fb9bbaa3c39f88a9e0e5f64d3c4800a01d3573b4.tar.bz2
Bug 407434: [BiDi][templates] Wrong BTD in templates [BiDi 2013]I20130514-2000
-rw-r--r--org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java
index 268e63a..e00638a 100644
--- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java
+++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/templates/TemplatePreferencePage.java
@@ -80,6 +80,7 @@ import org.eclipse.jface.dialogs.StatusDialog;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.jface.resource.JFaceResources;
+import org.eclipse.jface.util.BidiUtils;
import org.eclipse.jface.viewers.CheckStateChangedEvent;
import org.eclipse.jface.viewers.CheckboxTableViewer;
import org.eclipse.jface.viewers.ColumnPixelData;
@@ -334,6 +335,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I
}
}
});
+ BidiUtils.applyBidiProcessing(fNameText, BidiUtils.BTD_DEFAULT);
createLabel(composite, TemplatesMessages.EditTemplateDialog_context);
fContextCombo= new Combo(composite, SWT.READ_ONLY);
@@ -356,6 +358,7 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I
fDescriptionText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
fDescriptionText.addModifyListener(listener);
+ BidiUtils.applyBidiProcessing(fDescriptionText, BidiUtils.BTD_DEFAULT);
Label patternLabel= createLabel(parent, TemplatesMessages.EditTemplateDialog_pattern);
patternLabel.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));
@@ -950,6 +953,8 @@ public abstract class TemplatePreferencePage extends PreferencePage implements I
d.setEnabled(event.getChecked());
}
});
+
+ BidiUtils.applyTextDirection(fTableViewer.getControl(), BidiUtils.BTD_DEFAULT);
Composite buttons= new Composite(innerParent, SWT.NONE);
buttons.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));