Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blewitt2015-09-09 07:20:51 +0000
committerAlex Blewitt2015-09-09 07:39:07 +0000
commit19544bb09f62a88d42170ce2a5287620e0f34bea (patch)
tree0626f1f2f0c7d78369105719f531b3bcb1980479
parent49f7f263dd5f32d7ad46b2aaf9656374d82e821e (diff)
downloadeclipse.platform.resources-19544bb09f62a88d42170ce2a5287620e0f34bea.tar.gz
eclipse.platform.resources-19544bb09f62a88d42170ce2a5287620e0f34bea.tar.xz
eclipse.platform.resources-19544bb09f62a88d42170ce2a5287620e0f34bea.zip
Bug 475417 - Fix reference to non-public interface
The Platform.getContentTypeManager() is the correct way to resolve the content type manager, not by using the internal instance accessor. Change-Id: I4a412ec2e86b51f37c8ecf16d077a57fcf00516d Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
-rw-r--r--tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/content/IContentTypeManagerTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/content/IContentTypeManagerTest.java b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/content/IContentTypeManagerTest.java
index 94f1b857e..a303099e1 100644
--- a/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/content/IContentTypeManagerTest.java
+++ b/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/content/IContentTypeManagerTest.java
@@ -889,7 +889,7 @@ public class IContentTypeManagerTest extends ContentTypeTest {
* Bugs 67841 and 62443
*/
public void testIOException() {
- ContentTypeManager manager = ContentTypeManager.getInstance();
+ IContentTypeManager manager = Platform.getContentTypeManager();
IContentType xml = manager.getContentType(Platform.PI_RUNTIME + ".xml");
IContentType rootElement = manager.getContentType(PI_RESOURCES_TESTS + ".root-element");
IContentType[] selected = null;
@@ -1144,7 +1144,7 @@ public class IContentTypeManagerTest extends ContentTypeTest {
* Regression test for bug 68894
*/
public void testPreferences() throws CoreException, BackingStoreException {
- ContentTypeManager manager = ContentTypeManager.getInstance();
+ IContentTypeManager manager = Platform.getContentTypeManager();
IContentType text = manager.getContentType(IContentTypeManager.CT_TEXT);
Preferences textPrefs = InstanceScope.INSTANCE.getNode(ContentTypeManager.CONTENT_TYPE_PREF_NODE).node(text.getId());
assertNotNull("0.1", text);

Back to the top