本文整理汇总了Java中com.intellij.openapi.vcs.actions.VcsContextWrapper类的典型用法代码示例。如果您正苦于以下问题:Java VcsContextWrapper类的具体用法?Java VcsContextWrapper怎么用?Java VcsContextWrapper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VcsContextWrapper类属于com.intellij.openapi.vcs.actions包,在下文中一共展示了VcsContextWrapper类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getSelection
import com.intellij.openapi.vcs.actions.VcsContextWrapper; //导入依赖的package包/类
@Nullable
private static VcsSelection getSelection(AnActionEvent e) {
VcsContext c = VcsContextWrapper.createCachedInstanceOn(e);
return VcsSelectionUtil.getSelection(c);
}
示例2: createCachedContextOn
import com.intellij.openapi.vcs.actions.VcsContextWrapper; //导入依赖的package包/类
@Override
@NotNull
public VcsContext createCachedContextOn(@NotNull AnActionEvent event) {
return VcsContextWrapper.createCachedInstanceOn(event);
}
示例3: createContextOn
import com.intellij.openapi.vcs.actions.VcsContextWrapper; //导入依赖的package包/类
@Override
@NotNull
public VcsContext createContextOn(@NotNull AnActionEvent event) {
return new VcsContextWrapper(event.getDataContext(), event.getModifiers(), event.getPlace(), event.getPresentation().getText());
}
示例4: createCachedContextOn
import com.intellij.openapi.vcs.actions.VcsContextWrapper; //导入依赖的package包/类
public VcsContext createCachedContextOn(AnActionEvent event) {
return VcsContextWrapper.createCachedInstanceOn(event);
}
示例5: createContextOn
import com.intellij.openapi.vcs.actions.VcsContextWrapper; //导入依赖的package包/类
public VcsContext createContextOn(final AnActionEvent event) {
return new VcsContextWrapper(event.getDataContext(), event.getModifiers(), event.getPlace(), event.getPresentation().getText());
}
示例6: createCachedContextOn
import com.intellij.openapi.vcs.actions.VcsContextWrapper; //导入依赖的package包/类
@Override
@Nonnull
public VcsContext createCachedContextOn(@Nonnull AnActionEvent event) {
return VcsContextWrapper.createCachedInstanceOn(event);
}
示例7: createContextOn
import com.intellij.openapi.vcs.actions.VcsContextWrapper; //导入依赖的package包/类
@Override
@Nonnull
public VcsContext createContextOn(@Nonnull AnActionEvent event) {
return new VcsContextWrapper(event.getDataContext(), event.getModifiers(), event.getPlace(), event.getPresentation().getText());
}