Examples of GitRemoteInfo


Examples of com.jetbrains.heroku.git.GitRemoteInfo

    public int getColumnCount() {
        return 2;
    }

    public Object getValueAt(int row, int col) {
        final GitRemoteInfo remote = remotes.get(row);
        switch (col) {
            case 0:
                return remote.getName();
            case 1:
                return remote.getUrl();
        }
        return null;
    }
View Full Code Here

Examples of com.jetbrains.heroku.git.GitRemoteInfo

        return builder.getPanel();
    }

    private GitRemoteInfo attachRemote(Project project, App app) {
        final String gitUrl = app.getGitUrl();
        final GitRemoteInfo remote = GitHelper.findRemote(gitUrl, project);
        if (remote == null) {
            GitHelper.addHerokuRemote(project, gitUrl);
            return GitHelper.findRemote(gitUrl, project);
        }
        return null;
View Full Code Here

Examples of com.jetbrains.heroku.git.GitRemoteInfo

    public void doUpdate() {
        final Project project = getProject();
        final boolean gitEnabled = GitHelper.isGitEnabled(project);
        presentGitStatus(gitEnabled);
        final GitRemoteInfo existingRemote = GitHelper.findHerokuOrigin(project);
        final List<App> apps = load();
        tableModel.update(apps);
        final App appWithRemote = findAppForRemote(apps, existingRemote);
        tableModel.highlight(appWithRemote);
        representExistingRemote(existingRemote, appWithRemote!=null);
View Full Code Here

Examples of com.jetbrains.heroku.git.GitRemoteInfo

                    }

                    public void runActionPerformed(AnActionEvent anActionEvent) {
                        final App app = tableModel.getApplication(selectedRow.get());
                        if (app == null) return;
                        final GitRemoteInfo attachedRemote = GitHelper.attachRemote(getProject(), app);
                        if (attachedRemote != null) {
                            LOG.info("Attached remote " + attachedRemote.getName() + ":" + attachedRemote.getUrl() + " to project " + getProject().getName());
                            herokuProjectService.update(app);
                            updatePanels();
                            HerokuSetupWindow.this.doUpdate();
                        } else {
                            LOG.warn("No attached remote attached to project " + getProject().getName());
View Full Code Here

Examples of com.jetbrains.heroku.git.GitRemoteInfo

        return app.getDynos();
    }

    private String getGitRemote(App app) {
        final String gitUrl = app.getGitUrl();
        GitRemoteInfo herokuRemote = GitHelper.findRemote(gitUrl, getProject());
        if (herokuRemote == null) return gitUrl;
        return herokuRemote.getName() + " : " + herokuRemote.getUrl();
    }
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.