Bug 572002: Adapt use of SWTs Color to current recommendation
  - Change to Color constructors without Device
  - Remove calls to Color.dispose
  - Adapt to removed ColorManager

Change-Id: I557f8605b6193224c676fd4d79be4271b1d1d0b7
diff --git a/docmlet/org.eclipse.statet.docmlet.tex.ui/src/org/eclipse/statet/internal/docmlet/tex/ui/TexUIPlugin.java b/docmlet/org.eclipse.statet.docmlet.tex.ui/src/org/eclipse/statet/internal/docmlet/tex/ui/TexUIPlugin.java
index fb3f11c..5a649c5 100644
--- a/docmlet/org.eclipse.statet.docmlet.tex.ui/src/org/eclipse/statet/internal/docmlet/tex/ui/TexUIPlugin.java
+++ b/docmlet/org.eclipse.statet.docmlet.tex.ui/src/org/eclipse/statet/internal/docmlet/tex/ui/TexUIPlugin.java
@@ -35,7 +35,6 @@
 
 import org.eclipse.statet.ecommons.preferences.PreferencesUtil;
 import org.eclipse.statet.ecommons.text.ui.settings.TextStyleManager;
-import org.eclipse.statet.ecommons.ui.SharedUIResources;
 import org.eclipse.statet.ecommons.ui.util.ImageRegistryUtil;
 
 import org.eclipse.statet.docmlet.base.ui.DocmlBaseUIResources;
@@ -544,8 +543,7 @@
 			if (!this.started) {
 				throw new IllegalStateException("Plug-in is not started.");
 			}
-			this.ltxTextStyles= new TextStyleManager(SharedUIResources.getColors(),
-					getPreferenceStore(),
+			this.ltxTextStyles= new TextStyleManager(getPreferenceStore(),
 					TexTextStyles.LTX_TEXTSTYLE_CONFIG_QUALIFIER );
 			PreferencesUtil.getSettingsChangeNotifier().addManageListener(this.ltxTextStyles);
 		}
diff --git a/yaml/org.eclipse.statet.yaml.ui/src/org/eclipse/statet/internal/yaml/ui/YamlUIPlugin.java b/yaml/org.eclipse.statet.yaml.ui/src/org/eclipse/statet/internal/yaml/ui/YamlUIPlugin.java
index 2acb537..b4e81e1 100644
--- a/yaml/org.eclipse.statet.yaml.ui/src/org/eclipse/statet/internal/yaml/ui/YamlUIPlugin.java
+++ b/yaml/org.eclipse.statet.yaml.ui/src/org/eclipse/statet/internal/yaml/ui/YamlUIPlugin.java
@@ -34,7 +34,6 @@
 
 import org.eclipse.statet.ecommons.preferences.PreferencesUtil;
 import org.eclipse.statet.ecommons.text.ui.settings.TextStyleManager;
-import org.eclipse.statet.ecommons.ui.SharedUIResources;
 
 import org.eclipse.statet.internal.yaml.ui.editors.YamlDocumentProvider;
 import org.eclipse.statet.ltk.ui.sourceediting.assist.ContentAssistComputerRegistry;
@@ -179,8 +178,7 @@
 			if (!this.started) {
 				throw new IllegalStateException("Plug-in is not started.");
 			}
-			this.yamlTextStyles= new TextStyleManager(SharedUIResources.getColors(),
-					getPreferenceStore(),
+			this.yamlTextStyles= new TextStyleManager(getPreferenceStore(),
 					YamlTextStyles.YAML_TEXTSTYLE_CONFIG_QUALIFIER );
 			PreferencesUtil.getSettingsChangeNotifier().addManageListener(this.yamlTextStyles);
 		}