Package org.jetbrains.idea.svn

Examples of org.jetbrains.idea.svn.SvnVcs


        } else {
            presentation.setVisible(true);
        }

        VirtualFile[] files = PlatformDataKeys.VIRTUAL_FILE_ARRAY.getData(dataContext);
        SvnVcs vcs = SvnVcs.getInstance(project);

        presentation.setEnabled(files != null
                && files.length == 1
                && ProjectLevelVcsManager.getInstance(project).checkAllFilesAreUnder(vcs, files)
                && SvnStatusUtil.isUnderControl(project, files[0]));
View Full Code Here


    }

    @Override
    public void actionPerformed(@NotNull AnActionEvent e) {
        final Project project = e.getData(PlatformDataKeys.PROJECT);
        SvnVcs svn = SvnVcs.getInstance(project);
        FilePath filePath = e.getData(SVNRevisionGraph.SRC_FILE);
        if (filePath == null) {
            return;
        }
        List<Revision> revisions = e.getData(SVNRevisionGraph.SELECTED_REVISIONS);
View Full Code Here

            private Exception myException;

            @Override
            public void run(@NotNull ProgressIndicator indicator) {
                try {
                    SvnVcs svn = SvnVcs.getInstance(project);
                    if (scanMode != null) {
                        indicator.setText("Collecting revision history for file: " + filePath.getName());
                        history = new FileHistoryRetriever(svn, filePath.getVirtualFile())
                                .getFileHistory(scanMode, indicator);
                    } else {
View Full Code Here

    private VcsFileRevision createVcsFileRevision(Revision r, boolean checkCurrentRevision) {
        SVNRevision svnRev = SVNRevision.create(r.getRevisionNumber());
        if (checkCurrentRevision && r == model.getCurrentRevision()) {
            return new CurrentRevision(_filePath.getVirtualFile(), new SvnRevisionNumber(svnRev));
        } else {
            SvnVcs svnVcs = SvnVcs.getInstance(_project);
            return new SvnFileRevision(svnVcs, svnRev, svnRev,
                    revisionHistory.getRepoRoot() + r.getRelPath(), null, null, null, null);
        }
    }
View Full Code Here

    }

    @Override
    public void actionPerformed(@NotNull AnActionEvent event) {
        final Project project = event.getData(PlatformDataKeys.PROJECT);
        SvnVcs svn = SvnVcs.getInstance(project);
        final Revision revision = event.getData(SVNRevisionGraph.SELECTED_REVISION);
        FilePath filePath = event.getData(SVNRevisionGraph.SRC_FILE);
        if (filePath == null || revision == null) {
            return;
        }
View Full Code Here

*/
public class PostReviewAction extends AnAction {
    @Override
    public void actionPerformed(AnActionEvent event) {
        final Project project = event.getData(PlatformDataKeys.PROJECT);
        final SvnVcs svnVcs = SvnVcs.getInstance(project);
        final VirtualFile[] vFiles = event.getData(PlatformDataKeys.VIRTUAL_FILE_ARRAY);
        if (vFiles == null || vFiles.length == 0) {
            Messages.showMessageDialog("No file to be review", "Alert", null);
            return;
        }
View Full Code Here

TOP

Related Classes of org.jetbrains.idea.svn.SvnVcs

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.