From 4adea567a6c49b1b628e28e5a4b0b66da4bd1f88 Mon Sep 17 00:00:00 2001 From: Anton Makeev Date: Tue, 10 Jul 2012 15:30:38 +0200 Subject: [PATCH] AppCode:Debugger: do not show internal file types in UI (OC-3943) --- .../com/intellij/openapi/fileTypes/LanguageFileType.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/core-api/src/com/intellij/openapi/fileTypes/LanguageFileType.java b/platform/core-api/src/com/intellij/openapi/fileTypes/LanguageFileType.java index 76963e53bc49..9010b3296bf2 100644 --- a/platform/core-api/src/com/intellij/openapi/fileTypes/LanguageFileType.java +++ b/platform/core-api/src/com/intellij/openapi/fileTypes/LanguageFileType.java @@ -54,6 +54,13 @@ public abstract class LanguageFileType implements FileType{ @Override public final boolean isReadOnly() { + return isSystem(); + } + + /** + * System file types cannot be editor and are not shown in the interface + */ + protected boolean isSystem() { return false; }