Examples of ExecuteAnonymousResultExt


Examples of com.salesforce.ide.core.remote.apex.ExecuteAnonymousResultExt

            connection = getConnectionFactory().getConnection(project);
            return executeAnonymous(code, apexLogInfo, connection, readTimeout);
        } catch (Exception e) {
            ExecuteAnonymousResult er =
                    errorExecuteAnonymousResult(connection != null ? connection.getConnectorConfig() : null, e);
            return new ExecuteAnonymousResultExt(er, null);
        }
    }
View Full Code Here

Examples of com.salesforce.ide.core.remote.apex.ExecuteAnonymousResultExt

       
        SoapConnection apex = null;
        try {
            apex = Connector.newConnection(connectorConfig);
            apex.setDebuggingHeader(logInfo, LogType.None);
            return new ExecuteAnonymousResultExt(apex.executeAnonymous(code), apex.getDebuggingInfo());
        } catch (ConnectionException e) {
            ExecuteAnonymousResult er = errorExecuteAnonymousResult(connectorConfig, e);
            ExecuteAnonymousResultExt erx = new ExecuteAnonymousResultExt(er, apex.getDebuggingInfo());
            DebuggingInfo_element dbi = new DebuggingInfo_element();
            dbi.setDebugLog(e.getMessage());
            erx.setDebugInfo(dbi);
            return erx;
        } finally {
            connectorConfig.setTraceMessage(orig_traceMsg);
            connectorConfig.setPrettyPrintXml(orig_prettyPrintXml);
            connectorConfig.setSessionId(orig_sessionId);
View Full Code Here

Examples of com.salesforce.ide.core.remote.apex.ExecuteAnonymousResultExt

        final String code = txtSourceInput.getText();
        // Execute the code in a different thread to allow debugging (since DBGP takes up the main thread)
        WorkspaceJob job = new WorkspaceJob("Execute-Anonymous") {
            @Override
            public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
                ExecuteAnonymousResultExt result = executeAnonymousController.executeExecuteAnonymous(code);
                handleExecuteResults(result);
                return Status.OK_STATUS;
            }
        };
        job.schedule();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.