本文整理汇总了Java中com.intellij.history.integration.ui.models.SelectionCalculator类的典型用法代码示例。如果您正苦于以下问题:Java SelectionCalculator类的具体用法?Java SelectionCalculator怎么用?Java SelectionCalculator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SelectionCalculator类属于com.intellij.history.integration.ui.models包,在下文中一共展示了SelectionCalculator类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SelectionReverter
import com.intellij.history.integration.ui.models.SelectionCalculator; //导入依赖的package包/类
public SelectionReverter(Project p,
LocalHistoryFacade vcs,
IdeaGateway gw,
SelectionCalculator c,
Revision leftRevision,
Entry rightEntry,
int fromLine,
int toLine) {
super(p, vcs, gw);
myCalculator = c;
myLeftRevision = leftRevision;
myRightEntry = rightEntry;
myFromLine = fromLine;
myToLine = toLine;
}
示例2: createReverter
import com.intellij.history.integration.ui.models.SelectionCalculator; //导入依赖的package包/类
private SelectionReverter createReverter(int from, int to) {
List<Revision> rr = getRevisionsFor(f);
SelectionCalculator c = new SelectionCalculator(myGateway, rr, from, to);
Revision leftRev = rr.get(1);
Entry entry = getRootEntry().getEntry(f.getPath());
return new SelectionReverter(myProject, getVcs(), myGateway, c, leftRev, entry, from, to);
}