Skip to content

Commit

Permalink
IJ-CR-146078 extract intellij.platform.bootstrap
Browse files Browse the repository at this point in the history
GitOrigin-RevId: b79efc92829111228e83058e54381d8e02116b6f
  • Loading branch information
develar authored and seclerp committed Oct 6, 2024
1 parent 5d29f17 commit 5af946d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.platform.backend.workspace.WorkspaceModel
import com.jetbrains.rider.model.RdProjectDescriptor
import com.jetbrains.rider.projectView.workspace.findProjects
import com.jetbrains.rider.plugins.efcore.features.connections.impl.AppSettingsConnectionProvider
import com.jetbrains.rider.plugins.efcore.features.connections.impl.DataGripConnectionProvider
import com.jetbrains.rider.plugins.efcore.features.connections.impl.UserSecretsConnectionProvider
import com.jetbrains.rider.projectView.workspace.findProjects
import java.util.*

@Service(Service.Level.PROJECT)
@Suppress("UnstableApiUsage")
class DbConnectionsCollector(private val intellijProject: Project) {
internal class DbConnectionsCollector(private val intellijProject: Project) {
companion object {
fun getInstance(intellijProject: Project) = intellijProject.service<DbConnectionsCollector>()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ package com.jetbrains.rider.plugins.efcore.features.terminal.smartExecute
import com.intellij.execution.Executor
import com.intellij.openapi.actionSystem.impl.SimpleDataContext
import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.popup.JBPopupFactory
import com.intellij.terminal.TerminalShellCommandHandler
import com.jetbrains.rider.plugins.efcore.EfCoreUiBundle
import com.jetbrains.rider.plugins.efcore.cli.api.models.DotnetEfVersion
import com.jetbrains.rider.plugins.efcore.cli.execution.KnownEfCommands
import com.jetbrains.rider.plugins.efcore.features.database.drop.DropDatabaseAction
Expand All @@ -13,15 +15,12 @@ import com.jetbrains.rider.plugins.efcore.features.migrations.add.AddMigrationAc
import com.jetbrains.rider.plugins.efcore.features.migrations.remove.RemoveLastMigrationAction
import com.jetbrains.rider.plugins.efcore.features.migrations.script.GenerateScriptAction
import com.jetbrains.rider.plugins.efcore.features.shared.BaseCommandAction
import com.jetbrains.rider.plugins.efcore.features.shared.QuickActionsGroup
import com.jetbrains.rider.plugins.efcore.rd.riderEfCoreModel
import com.jetbrains.rider.projectView.solution
import java.util.UUID
import com.intellij.openapi.ui.popup.JBPopupFactory
import com.jetbrains.rider.plugins.efcore.EfCoreUiBundle
import com.jetbrains.rider.plugins.efcore.features.shared.QuickActionsGroup

class EFCoreShellCommandHandler : TerminalShellCommandHandler {
import java.util.*

private class EFCoreShellCommandHandler : TerminalShellCommandHandler {
companion object {
// Define dotnet ef constant string and commands
private const val DOTNET_EF = "dotnet ef"
Expand Down

0 comments on commit 5af946d

Please sign in to comment.