Skip to content

Commit

Permalink
Fixes #132
Browse files Browse the repository at this point in the history
  • Loading branch information
krasa committed Sep 1, 2016
1 parent c22f31d commit cb320f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/org/plantuml/idea/InstallationError.java
@@ -0,0 +1,7 @@
package org.plantuml.idea;

public class InstallationError extends RuntimeException {
public InstallationError(String s, NoClassDefFoundError e) {
super(s, e);
}
}
Expand Up @@ -5,7 +5,9 @@
import com.intellij.openapi.editor.event.CaretListener;
import com.intellij.openapi.editor.event.DocumentListener;
import com.intellij.openapi.editor.event.EditorEventMulticaster;
import net.sourceforge.plantuml.cucadiagram.dot.GraphvizUtils;
import org.jetbrains.annotations.NotNull;
import org.plantuml.idea.InstallationError;
import org.plantuml.idea.toolwindow.listener.PlantUmlCaretListener;
import org.plantuml.idea.toolwindow.listener.PlantUmlDocumentListener;

Expand All @@ -14,7 +16,12 @@ public class PlantUmlApplicationComponent implements ApplicationComponent {
private CaretListener plantUmlCaretListener = new PlantUmlCaretListener();

public PlantUmlApplicationComponent() {
}
try {
Class<GraphvizUtils> graphvizUtilsClass = GraphvizUtils.class;
} catch (NoClassDefFoundError e) {
throw new InstallationError("Reinstall the plugin. Make sure to install 'plantuml4idea.zip', not the extracted 'plantuml4idea.jar'.", e);
}
}

@Override
public void initComponent() {
Expand All @@ -35,4 +42,5 @@ public void disposeComponent() {
public String getComponentName() {
return "PlantUmlApplicationComponent";
}

}

0 comments on commit cb320f2

Please sign in to comment.