Skip to content

Commit 64f6022

Browse files
committed
re-factor open mysql by database tools
1 parent 9d9c8bd commit 64f6022

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/toolkit/intellij/mysql/action/OpenMySQLByToolsAction.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
import static com.microsoft.intellij.ui.messages.AzureBundle.message;
2525

26-
@Name(MySQLConnectToServerAction.ACTION_NAME)
27-
public class MySQLConnectToServerAction extends NodeActionListener {
26+
@Name(OpenMySQLByToolsAction.ACTION_NAME)
27+
public class OpenMySQLByToolsAction extends NodeActionListener {
2828

2929
public static final String ACTION_NAME = "Open by Database Tools";
3030
private static final String MYSQL_PATTERN_NAME = "Azure Database for MySQL - %s";
@@ -33,7 +33,7 @@ public class MySQLConnectToServerAction extends NodeActionListener {
3333
private final MySQLNode node;
3434
private final Project project;
3535

36-
public MySQLConnectToServerAction(MySQLNode node) {
36+
public OpenMySQLByToolsAction(MySQLNode node) {
3737
super();
3838
this.node = node;
3939
this.project = (Project) node.getProject();
@@ -75,7 +75,7 @@ private void doActionPerformed(NodeActionEvent e, boolean isLoggedIn, Project pr
7575
IntellijDatasourceService.DatasourceProperties properties = IntellijDatasourceService.DatasourceProperties.builder()
7676
.name(String.format(MYSQL_PATTERN_NAME, node.getServer().name()))
7777
.driverClassName(MYSQL_DEFAULT_DRIVER)
78-
.url(JdbcUrl.sqlserver(node.getServer().fullyQualifiedDomainName()).toString())
78+
.url(JdbcUrl.mysql(node.getServer().fullyQualifiedDomainName()).toString())
7979
.username(node.getServer().administratorLogin() + "@" + node.getServer().name())
8080
.build();
8181
IntellijDatasourceService.getInstance().openDataSourceManagerDialog(project, properties);

0 commit comments

Comments
 (0)