Skip to content
Open
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
Binary file added resources/.DS_Store
Binary file not shown.
Binary file modified resources/images/quickslothlogo-v2.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/Controllers/MainActionController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.Messages
import com.intellij.openapi.wm.ToolWindowAnchor
import com.intellij.openapi.wm.ToolWindowManager
import javax.swing.ImageIcon

/**
* Created by pamelaiupipeixinho on 16/09/17.
*/
class MainactionController : AnAction() {
override fun actionPerformed(event: AnActionEvent) {
val project = event.project?: return
val icon = ImageIcon("/resources/images/quickslothlogo-v2.1.png")
val queryText = Messages.showInputDialog(project,
"What is your Doubt?",
"Input Your Query",
Messages.getQuestionIcon())
icon)

showProcessingToolWindow(project, queryText)
}
Expand Down