Package ru.batrdmi.svnplugin.logic

Examples of ru.batrdmi.svnplugin.logic.Revision


    private mxCell getLinkedCell(Revision rev) {
        if (rev.getLinkedRelPath() == null) {
            return null;
        } else {
            Revision mergeRev = new Revision(rev.getLinkedRelPath(), rev.getLinkedRevisionNumber());
            return cellMap.get(mergeRev);
        }
    }
View Full Code Here


                && revision != null && !revision.isDeleted();
    }

    @Override
    public void actionPerformed(@NotNull AnActionEvent ae) {
        Revision rev = ae.getData(SVNRevisionGraph.SELECTED_REVISION);
        FilePath filePath = ae.getData(SVNRevisionGraph.SRC_FILE);
        Project project = ae.getData(PlatformDataKeys.PROJECT);
        VcsFileRevision revision = ae.getData(VcsDataKeys.VCS_FILE_REVISION);
        if (!isEnabled(filePath, rev)) {
            return;
View Full Code Here

    }

    @Override
    public void update(@NotNull AnActionEvent e) {
        Presentation presentation = e.getPresentation();
        Revision revision = e.getData(SVNRevisionGraph.SELECTED_REVISION);
        FilePath filePath = e.getData(SVNRevisionGraph.SRC_FILE);
        boolean enabled = filePath!= null && revision != null && !revision.isDeleted();
        presentation.setEnabled(enabled);
        presentation.setVisible(enabled || !ActionPlaces.isPopupPlace(e.getPlace()));
    }
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;
        }
        final FileHistoryRetriever historyRetriever = new FileHistoryRetriever(svn, filePath.getVirtualFile());
View Full Code Here

TOP

Related Classes of ru.batrdmi.svnplugin.logic.Revision

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.