Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class AsmViewerHostUi(private val project: Project) : LifetimedService() {
}

val content = contentManager.factory.createContent(wrapper, "", false)
content.preferredFocusableComponent = contentContainer
contentManager.addContent(content)

val newPanel = AsmContentPanelFactory.create(project, null, null)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.jetbrains.rider.plugins.dotnetdisassembler

import com.intellij.openapi.util.IconLoader
import javax.swing.Icon

object AsmViewerIcons {
@JvmField
val ToolWindow: Icon = IconLoader.getIcon("/icons/disassemblerToolWindow.svg", AsmViewerIcons::class.java)
}
4 changes: 3 additions & 1 deletion src/rider/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<toolWindow id="AsmViewer"
canCloseContents="false"
icon="AllIcons.Debugger.Db_primitive"
icon="com.jetbrains.rider.plugins.dotnetdisassembler.AsmViewerIcons.ToolWindow"
anchor="right"
factoryClass="com.jetbrains.rider.plugins.dotnetdisassembler.AsmViewerToolWindowFactory"/>

Expand All @@ -34,6 +34,8 @@
<statistics.counterUsagesCollector
implementationClass="com.jetbrains.rider.plugins.dotnetdisassembler.statistics.AsmViewerStatisticsCollector"/>

<iconMapper mappingFile="disassemblerIconMappings.json"/>

</extensions>
<actions resource-bundle="messages.AsmViewerBundle">
<!-- Show ASM Viewer Action -->
Expand Down
17 changes: 17 additions & 0 deletions src/rider/main/resources/META-INF/pluginIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/rider/main/resources/disassemblerIconMappings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"icons": {
"expui": {
"disassemblerToolWindow.svg": "icons/disassemblerToolWindow.svg"
}
}
}
5 changes: 5 additions & 0 deletions src/rider/main/resources/icons/disassemblerToolWindow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.