|
|
@ -35,6 +35,8 @@ import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.ArrayUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
import com.fr.workspace.server.entity.connection.ConnectionBean; |
|
|
|
|
|
|
|
import com.fr.workspace.server.repository.connection.ConnectionRepository; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.Box; |
|
|
|
import javax.swing.Box; |
|
|
@ -176,8 +178,9 @@ public class ProcedureDataPane extends AbstractTableDataPane<StoreProcedure> imp |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean isAutoParameterDatabase() { |
|
|
|
private boolean isAutoParameterDatabase() { |
|
|
|
Connection connection = ConnectionConfigProviderFactory.getConfigProvider().getConnection(connectionTableProcedurePane.getSelectedDatabaseConnnectonName()); |
|
|
|
ConnectionBean bean = ConnectionRepository.getInstance().getByName(connectionTableProcedurePane.getSelectedDatabaseConnnectonName()); |
|
|
|
return connection == null ? false : ArrayUtils.contains(DRIVERS, connection.getDriver()); |
|
|
|
Connection connection = bean == null ? null : bean.getConnection(); |
|
|
|
|
|
|
|
return connection != null && ArrayUtils.contains(DRIVERS, connection.getDriver()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|