Skip to content

Commit

Permalink
fix various stuff found during plugin test
Browse files Browse the repository at this point in the history
* prefer Uber Motif to make plugin easier to identify
* fix null pointer exception for icon load
  • Loading branch information
davissuber committed Oct 12, 2023
1 parent 75ea90d commit 10d30d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions intellij/src/main/kotlin/motif/intellij/MotifService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import com.intellij.psi.PsiClass
import com.intellij.psi.PsiElement
import com.intellij.ui.content.Content
import com.intellij.ui.content.ContentFactory
import javax.swing.Icon
import motif.core.ResolvedGraph
import motif.intellij.analytics.AnalyticsService
import motif.intellij.analytics.MotifAnalyticsActions
Expand Down Expand Up @@ -169,7 +168,7 @@ class MotifService(val project: Project) : Disposable {
if (toolWindowManager.getToolWindow(TOOL_WINDOW_ID) == null) {
val toolWindow: ToolWindow =
toolWindowManager.registerToolWindow(TOOL_WINDOW_ID, true, ToolWindowAnchor.RIGHT)
toolWindow.setIcon(IconLoader.getIcon("/icons/icon.svg", Icon::class.java))
toolWindow.setIcon(IconLoader.getIcon("/icons/icon.svg", this::class.java))
toolWindow.title = TOOL_WINDOW_TITLE

scopePanel = MotifScopePanel(project, graph)
Expand Down
2 changes: 1 addition & 1 deletion intellij/src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<idea-plugin>
<id>com.uber.motif</id>
<name>Motif</name>
<name>Uber Motif</name>
<version>0.0.5</version>
<vendor email="[email protected]" url="https://www.uber.com/">Uber</vendor>

Expand Down

0 comments on commit 10d30d5

Please sign in to comment.