mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
platform: don't throw exception when creating Single/MultipleRootFileProvider for injected contents
This is temporary needed to avoid exceptions in some plugins (e.g. KT-22929) in IDEA 2018.1. In IDEA 2018.2 the exception will be restored and the problem will be fixed in the plugins properly.
This commit is contained in:
@@ -93,7 +93,7 @@ public abstract class AbstractFileViewProvider extends UserDataHolderBase implem
|
||||
virtualFile.putUserData(FREE_THREADED, isFreeThreaded(this));
|
||||
myFileType = type;
|
||||
if (virtualFile instanceof VirtualFileWindow && !(this instanceof FreeThreadedFileViewProvider)) {
|
||||
throw new IllegalArgumentException("Must not create "+getClass()+" for injected file "+virtualFile+"; InjectedFileViewProvider must be used instead");
|
||||
LOG.warn("Must not create "+getClass()+" for injected file "+virtualFile+"; InjectedFileViewProvider must be used instead");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user