Package com.intellij.openapi.vcs

Examples of com.intellij.openapi.vcs.FilePathImpl


      if (fileScope.getVcsAfterRev() == null)
      {
        return true;
      }
        vcsRevisionNumber = vcs.parseRevisionNumber(fileScope.getVcsAfterRev(), new FilePathImpl(vFile));
        return (vcsRevisionNumber == null) || rev.compareTo(vcsRevisionNumber) > 0;
    }
    catch (Exception ignored)
    {
      if (LOGGER.isDebugEnabled())
View Full Code Here


        List<Change> changes = gitCommit.getChanges();

        String content = new CommitMessageFormatter(gitCommit).getLongCommitMessage();
        GitRepository repository = gerritGitUtil.getRepositoryForGerritProject(project, selectedChange.project).get();
        VirtualFile root = getRootDirectory(repository.getRoot());
        FilePathImpl commitMsg = new FilePathImpl(root, "COMMIT_MSG", false) {
            @Override
            public FileType getFileType() {
                return PlainTextFileType.INSTANCE;
            }
        };
View Full Code Here

            setChangesToDisplay(Collections.<Change>emptyList());
            Optional<GitRepository> gitRepositoryOptional = gerritGitUtil.getRepositoryForGerritProject(project, selectedChange.project);
            if (!gitRepositoryOptional.isPresent()) return;
            final GitRepository gitRepository = gitRepositoryOptional.get();
            final VirtualFile virtualFile = gitRepository.getGitDir();
            final FilePathImpl filePath = new FilePathImpl(virtualFile);

            Map<String, RevisionInfo> revisions = selectedChange.revisions;
            final String revisionId = selectedRevisions.get(selectedChange);
            RevisionInfo currentRevision = revisions.get(revisionId);
            RevisionFetcher revisionFetcher = new RevisionFetcher(gerritUtil, gerritGitUtil, notificationService, project, gitRepository)
View Full Code Here

    public void diffRequestChange(DiffRequest diffRequest, DiffPanelImpl diffPanel) {
        handleComments(diffPanel, diffRequest.getWindowTitle());
    }

    private void handleComments(final DiffPanelImpl diffPanel, final String filePathString) {
        final FilePath filePath = new FilePathImpl(new File(filePathString), false);
        final String relativeFilePath = PathUtils.ensureSlashSeparators(getRelativeOrAbsolutePath(project, filePath.getPath()));

        addCommentAction(diffPanel, relativeFilePath, changeInfo);

        gerritUtil.getChangeDetails(changeInfo._number, project, new Consumer<ChangeInfo>() {
            @Override
View Full Code Here

TOP

Related Classes of com.intellij.openapi.vcs.FilePathImpl

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.