mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs] IJPL-173924 Drop VcsContext methods from VcsContextFactory
GitOrigin-RevId: c098fceef8ab9754c2977704b660376e6a0c636b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0cf7bdefed
commit
77e4b1f893
@@ -697,8 +697,6 @@ com.intellij.openapi.vcs.actions.VcsContext
|
||||
- a:getSelectedIOFiles():java.io.File[]
|
||||
- getSelectedUnversionedFilePaths():java.util.List
|
||||
com.intellij.openapi.vcs.actions.VcsContextFactory
|
||||
- a:createCachedContextOn(com.intellij.openapi.actionSystem.AnActionEvent):com.intellij.openapi.vcs.actions.VcsContext
|
||||
- a:createContextOn(com.intellij.openapi.actionSystem.AnActionEvent):com.intellij.openapi.vcs.actions.VcsContext
|
||||
- a:createFilePath(com.intellij.openapi.vfs.VirtualFile,java.lang.String,Z):com.intellij.openapi.vcs.FilePath
|
||||
- a:createFilePath(java.lang.String,Z):com.intellij.openapi.vcs.FilePath
|
||||
- a:createFilePath(java.nio.file.Path,Z):com.intellij.openapi.vcs.FilePath
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.openapi.vcs.actions;
|
||||
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
@@ -15,11 +14,6 @@ import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
|
||||
public interface VcsContextFactory {
|
||||
@NotNull
|
||||
VcsContext createCachedContextOn(@NotNull AnActionEvent event);
|
||||
|
||||
@NotNull
|
||||
VcsContext createContextOn(@NotNull AnActionEvent event);
|
||||
|
||||
/**
|
||||
* Creates a FilePath corresponding to the specified virtual file.
|
||||
|
||||
@@ -1,15 +1,12 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.peer.impl;
|
||||
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.vcs.FilePath;
|
||||
import com.intellij.openapi.vcs.LocalFilePath;
|
||||
import com.intellij.openapi.vcs.RemoteFilePath;
|
||||
import com.intellij.openapi.vcs.actions.VcsContext;
|
||||
import com.intellij.openapi.vcs.actions.VcsContextFactory;
|
||||
import com.intellij.openapi.vcs.actions.VcsContextWrapper;
|
||||
import com.intellij.openapi.vcs.changes.LocalChangeList;
|
||||
import com.intellij.openapi.vcs.changes.LocalChangeListImpl;
|
||||
import com.intellij.openapi.vfs.LocalFileSystem;
|
||||
@@ -22,16 +19,6 @@ import java.nio.file.Path;
|
||||
public class VcsContextFactoryImpl implements VcsContextFactory {
|
||||
private static final Logger LOG = Logger.getInstance(VcsContextFactoryImpl.class);
|
||||
|
||||
@Override
|
||||
public @NotNull VcsContext createCachedContextOn(@NotNull AnActionEvent event) {
|
||||
return VcsContextWrapper.createCachedInstanceOn(event);
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull VcsContext createContextOn(@NotNull AnActionEvent event) {
|
||||
return new VcsContextWrapper(event.getDataContext(), event.getModifiers(), event.getPlace(), event.getPresentation().getText());
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull FilePath createFilePathOn(@NotNull VirtualFile virtualFile) {
|
||||
String path = virtualFile.getPath();
|
||||
|
||||
Reference in New Issue
Block a user