Skip to content

Commit

Permalink
fix: compatibility for IntelliJ 2021.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
u215942 committed Jun 2, 2021
1 parent d9e8435 commit cf787d5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
<idea-plugin version="2">
<id>ch.docksnet.rgraph</id>
<name>Java Method Reference Diagram</name>
<version>3.0.0</version>
<version>3.0.1</version>
<vendor>Stefan Zeller</vendor>
<depends>com.intellij.diagram</depends>
<depends>com.intellij.modules.java</depends>
<description><![CDATA[
Java Reference Diagram<br>
This plugins gives an overview about coupling and cohesion of java files in a package, methods in a class.
Expand All @@ -42,6 +43,9 @@

<change-notes><![CDATA[
<ul>
<li>
Version 3.0.1: IntelliJ 2021.1+ support
</li>
<li>
Version 3.0.0
<ul>
Expand Down Expand Up @@ -105,7 +109,7 @@
<add-to-group group-id="Graph.DefaultGraphToolbar"/>
</action>
<action id="RGRAPH.ShowClusterCount" class="ch.docksnet.rgraph.actions.ShowOuterReferencesAction"
description="same package/same package hierarchy/other package hierarchy">
description="Same package/same package hierarchy/other package hierarchy">
<add-to-group group-id="Graph.DefaultGraphToolbar"/>
</action>
<action id="RGRAPH.MarkNode" class="ch.docksnet.rgraph.actions.MarkAction"></action>
Expand Down
2 changes: 1 addition & 1 deletion intellij-reference-diagram.iml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<sourceFolder url="file://$MODULE_DIR$/resources" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/test/java" isTestSource="true" />
</content>
<orderEntry type="jdk" jdkName="IntelliJ IDEA IU-191.7479.19" jdkType="IDEA JDK" />
<orderEntry type="jdk" jdkName="IntelliJ IDEA IU-211.7442.40" jdkType="IDEA JDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="jdepend-2.9.5" level="project" />
<orderEntry type="library" name="uml-support" level="project" />
Expand Down
2 changes: 1 addition & 1 deletion src/ch/docksnet/rgraph/ReferenceDiagramProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public DiagramColorManager getColorManager() {
}

public static ReferenceDiagramProvider getInstance() {
return (ReferenceDiagramProvider) DiagramProvider.findByID(ID);
return (ReferenceDiagramProvider) DiagramProvider.<PsiElement>findByID(ID);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/ch/docksnet/rgraph/ReferenceUmlCategoryManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import com.intellij.psi.PsiField;
import com.intellij.psi.PsiMethod;
import com.intellij.ui.LayeredIcon;
import icons.UmlIcons;
import com.intellij.uml.UmlIcons;

/**
* @author Stefan Zeller
Expand Down
2 changes: 1 addition & 1 deletion src/ch/docksnet/rgraph/method/ReferenceNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.intellij.openapi.util.Iconable;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiMethod;
import icons.UmlIcons;
import com.intellij.uml.UmlIcons;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand Down

0 comments on commit cf787d5

Please sign in to comment.