Show content without code highlighting if configurator wasn't found
authorValentina Kiryushkina <valentina.kiryushkina@jetbrains.com>
Tue, 22 Mar 2016 13:51:08 +0000 (16:51 +0300)
committerliana.bakradze <liana.bakradze@jetbrains.com>
Fri, 8 Apr 2016 11:25:04 +0000 (14:25 +0300)
(cherry picked from commit 3d5feb8)

python/educational-core/student/src/com/jetbrains/edu/learning/ui/StudyBrowserWindow.java
python/educational-core/student/src/com/jetbrains/edu/learning/ui/StudyToolWindow.java

index 790725070af877560f720be85ea51f25e68c7406..fd7a12a5e01e8efc20228845c643ef87d31c9145 100644 (file)
@@ -126,8 +126,7 @@ class StudyBrowserWindow extends JFrame {
 
   public void loadContent(@NotNull final String content, @Nullable StudyPluginConfigurator configurator) {
     if (configurator == null) {
-      Platform.runLater(() -> myEngine.loadContent("Seems like desired plugin doesn't installed"));
-      LOG.warn("No StudyPluginConfigurator is provided for the plugin");
+      Platform.runLater(() -> myEngine.loadContent(content));
     }
     else {
       String withCodeHighlighting = createHtmlWithCodeHighlighting(content, configurator);
index 96817aa4a7948b72da3a4040e9718d7e95046204..feb06b72159a898193fa3b6b1f490c96e8eb4027 100644 (file)
@@ -97,9 +97,6 @@ public abstract class StudyToolWindow extends SimpleToolWindowPanel implements D
         myContentPanel.add(entry.getKey(), entry.getValue());
       }
     }
-    else {
-      LOG.warn("No StudyPluginConfigurator is provided for the plugin");
-    }
   }
 
   public void dispose() {