Deploy Selection in PL/SQL files seems to be broken
authorSubhashini Sooriarachchi <subslk@netbeans.org>
Wed, 22 May 2013 16:22:11 +0530
changeset 407315a62f4569b
parent 406 077128e91ca3
child 408 518fc1b75b79
child 411 35997cc876eb
Deploy Selection in PL/SQL files seems to be broken
PLSQL/Execution/src/org/netbeans/modules/plsql/execution/actions/DeploySelectedCodeAction.java
     1.1 --- a/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/actions/DeploySelectedCodeAction.java	Tue May 21 12:45:08 2013 +0200
     1.2 +++ b/PLSQL/Execution/src/org/netbeans/modules/plsql/execution/actions/DeploySelectedCodeAction.java	Wed May 22 16:22:11 2013 +0530
     1.3 @@ -203,6 +203,9 @@
     1.4              String output = "";
     1.5              connection = (DatabaseConnection) item.getClientProperty(DATABASE_CONNECTION_KEY);
     1.6              DatabaseConnectionManager connectionProvider = DatabaseConnectionManager.getInstance(project);
     1.7 +            if (connection.getJDBCConnection() == null) {
     1.8 +                connectionProvider.connect(connection);
     1.9 +            }
    1.10              EditorCookie editorCookie = activatedNodes[0].getLookup().lookup(EditorCookie.class);
    1.11              try {
    1.12                  output = replaceAliases(getSelection(editorCookie), dataObject.getLookup().lookup(PlsqlBlockFactory.class), '&');