You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2021/01/31 10:44:50 UTC
[directory-studio] branch master updated: DIRSTUDIO-947: Add text
editor and colors and fonts preference pages
This is an automated email from the ASF dual-hosted git repository.
seelmann pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-studio.git
The following commit(s) were added to refs/heads/master by this push:
new 2ee6b92 DIRSTUDIO-947: Add text editor and colors and fonts preference pages
2ee6b92 is described below
commit 2ee6b92cb3e6f6da414bcab5c1805162eb40915e
Author: Stefan Seelmann <ma...@stefan-seelmann.de>
AuthorDate: Sun Jan 31 11:44:33 2021 +0100
DIRSTUDIO-947: Add text editor and colors and fonts preference pages
---
plugins/rcp/plugin.xml | 10 ++++++++++
.../directory/studio/test/integration/ui/RcpAppTest.java | 2 ++
2 files changed, 12 insertions(+)
diff --git a/plugins/rcp/plugin.xml b/plugins/rcp/plugin.xml
index 8d81add..ee4e53d 100644
--- a/plugins/rcp/plugin.xml
+++ b/plugins/rcp/plugin.xml
@@ -112,6 +112,16 @@
class="org.eclipse.ui.ExtensionFactory:appearancePreferencePage"
id="org.eclipse.ui.preferencePages.Appearance"
name="Appearance"/>
+ <page
+ category="org.eclipse.ui.preferencePages.Appearance"
+ class="org.eclipse.ui.ExtensionFactory:colorsAndFontsPreferencePage"
+ id="org.eclipse.ui.preferencePages.ColorsAndFonts"
+ name="Colors and Fonts"/>
+ <page
+ category="org.eclipse.ui.preferencePages.Appearance"
+ class="org.eclipse.ui.internal.editors.text.TextEditorDefaultsPreferencePage"
+ id="org.eclipse.ui.preferencePages.GeneralTextEditor"
+ name="Text Editors"/>
</extension>
<extension
diff --git a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/RcpAppTest.java b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/RcpAppTest.java
index 04cadc5..28252b2 100644
--- a/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/RcpAppTest.java
+++ b/tests/test.integration.ui/src/main/java/org/apache/directory/studio/test/integration/ui/RcpAppTest.java
@@ -317,6 +317,8 @@ public class RcpAppTest extends AbstractLdapTestUnit
assertTrue( prefs.pageExists( "General", "Network Connections" ) );
assertTrue( prefs.pageExists( "General", "Appearance" ) );
+ assertTrue( prefs.pageExists( "General", "Appearance", "Text Editors" ) );
+ assertTrue( prefs.pageExists( "General", "Appearance", "Colors and Fonts" ) );
assertTrue( prefs.pageExists( "Help" ) );
assertTrue( prefs.pageExists( "Install/Update" ) );