Package com.salesforce.ide.core.remote

Examples of com.salesforce.ide.core.remote.Connection


        handleComponentFolder(folder.getProject(), component);
    }

    private void handleComponentFolder(IProject project, Component component) throws ForceConnectionException,
            PartInitException, MalformedURLException, InsufficientPermissionsException {
        Connection connection = getConnectionFactory().getConnection(project);

        String url = getUrl(connection, project);
        if (Utils.isEmpty(url)) {
            logger.error(UIMessages.getString("ShowInForceAction.UnableToShow.error")
                    + ".  Frontdoor string, session id and/or component id not available.");
View Full Code Here


        openBrowser(strBuff.toString());
    }

    private void handleSetupLanding(IProject project) throws ForceConnectionException, PartInitException,
            MalformedURLException, InsufficientPermissionsException {
        Connection connection = getConnectionFactory().getConnection(project);

        String url = getUrl(connection, project);
        if (Utils.isEmpty(url)) {
            logger.error(UIMessages.getString("ShowInForceAction.UnableToShow.error")
                    + ".  Frontdoor string, session id and/or component id not available.");
View Full Code Here

    public String[] getEnabledComponentTypes(IProject project) throws ForceConnectionException, ForceRemoteException,
            InterruptedException, FactoryException {
        if (project == null) {
            throw new IllegalArgumentException("Project cannot be null");
        }
        Connection connection = getConnectionFactory().getConnection(project);
        return getEnabledComponentTypes(connection);
    }
View Full Code Here

            logger.warn("Unable to perform post finish jobs - project is null or does not exist");
            return;
        }

        try {
            Connection connection = ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory().getConnection(componentWizardModel.getProject());
            LoadSObjectsJob loadSObjectsJob =
                    new LoadSObjectsJob(ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory().getDescribeObjectRegistry(), connection,
                            componentWizardModel.getProject().getName());
            loadSObjectsJob.setSystem(true);
            loadSObjectsJob.schedule();
View Full Code Here

                childFieldsNode = SchemaBrowser.CHILD_FIELDS_NODE;
                fieldPrefix = ((ChildRelationship) crRoot.getData("relationship")).getRelationshipName();
            }
            DescribeSObjectResult dr = null;
            IProject project = file.getProject();
            Connection connection = getConnectionFactory().getConnection(project);
            // get describe object w/o client id
            dr = connection.describeSObject(crRoot.getText(), false);

            Field[] fields = dr.getFields();
            TreeItem childFields = createTreeItemChild(crRoot, "Fields", true, 0, true, childFieldsNode);

            SubProgressMonitor spm = new SubProgressMonitor(monitor, 1);
View Full Code Here

    private DescribeSObjectResult getCachedDescribe(String componentType) throws ForceConnectionException,
            ForceProjectException, ForceRemoteException {
        if (!describeCache.containsKey(componentType.toLowerCase())) {
            IProject project = file.getProject();
            Connection connection = getConnectionFactory().getConnection(project);

            // get describe object w/o client id
            DescribeSObjectResult describeSObject = connection.describeSObject(componentType, false);
            describeCache.put(componentType.toLowerCase(), describeSObject);
        }
        return describeCache.get(componentType.toLowerCase());
    }
View Full Code Here

        Cursor wait_cursor = new Cursor(schemaEditorComposite.getDisplay(), SWT.CURSOR_WAIT);
        schemaEditorComposite.setCursor(wait_cursor);

        IProject project = file.getProject();
        try {
            Connection connection = getConnectionFactory().getConnection(project);
            // get types w/o client id
            String[] types = connection.retrieveTypes(false);

            if (Utils.isNotEmpty(types) && schemaEditorComposite != null && schemaEditorComposite.getTree() != null
                    && schemaEditorComposite.getTree().getItemCount() > 0) {
                schemaEditorComposite.getTree().removeAll();
            }
View Full Code Here

        // open project in force.com perspective
        Utils.openForcePerspective();

        try {
            Connection connection =
                    ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory()
                            .getConnection(getProjectModel().getForceProject());
            LoadSObjectsJob loadSObjectsJob =
                    new LoadSObjectsJob(ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory()
                            .getDescribeObjectRegistry(), connection, getProjectModel().getProject().getName());
View Full Code Here

        ForceProject forceProject = getProjectModel().getForceProject();

        try {
            monitorCheck(monitor);
            Connection connection =
                    ContainerDelegate.getInstance().getFactoryLocator().getConnectionFactory()
                            .getConnection(forceProject);
            getProjectModel().setConnection(connection);

            getDescribeMetadata(monitor);
View Full Code Here

                logger.info("Fetching and saving all non-packaged Force.com components for '"
                        + getProjectModel().getProjectName() + "'");
            }

            getProjectModel().setSelectedPackageName(Constants.DEFAULT_PACKAGED_NAME);
            Connection connection = getProjectModel().getConnection();

            Package defaultPackageManifest =
                    ContainerDelegate.getInstance().getServiceLocator().getProjectService().getPackageManifestFactory()
                            .getDefaultPackageManifest(connection);
            List<String> componentTypes =
View Full Code Here

TOP

Related Classes of com.salesforce.ide.core.remote.Connection

Copyright © 2018 www.massapicom. 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.