Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nbirillo committed Jan 3, 2024
1 parent 893c534 commit 437539a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DemoPanelFactory : ToolWindowFactory {
}


// TODO: use UI bundle instead of a string here?
// TODO use UI bundle instead of a string here?
private val runTaskMethodButton = JButton("Run task function").apply {
isBorderPainted = false
isVisible = true
Expand All @@ -37,13 +37,13 @@ class DemoPanelFactory : ToolWindowFactory {
}
toolWindow.component.add(panel)

// TODO: add another listener? This example as a demo for now
// TODO add another listener? This example as a demo for now
runTaskMethodButton.setListener {
NotificationGroupManager.getInstance().getNotificationGroup(DEMO_PLUGIN_NOTIFICATION)
.createNotification("This panel demonstrates how the plugin works. The current task is a theory task, the plugin does nothing.", NotificationType.INFORMATION)
.notify(project)
}
// TODO: add an action to the button
// TODO add an action to the button
}

private fun JButton.setListener(listener: ActionListener) {
Expand All @@ -53,4 +53,4 @@ class DemoPanelFactory : ToolWindowFactory {
addActionListener(listener)
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DemoPanelWindow(service: DemoPanelService) {
get() = windowBrowser.component

init {
// TODO: load the panel's content
// TODO load the panel's content
Disposer.register(service, windowBrowser)
}
}
}

0 comments on commit 437539a

Please sign in to comment.