本文整理汇总了Java中com.intellij.history.integration.ui.views.DirectoryChange类的典型用法代码示例。如果您正苦于以下问题:Java DirectoryChange类的具体用法?Java DirectoryChange怎么用?Java DirectoryChange使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DirectoryChange类属于com.intellij.history.integration.ui.views包,在下文中一共展示了DirectoryChange类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testSelectionRevertion
import com.intellij.history.integration.ui.views.DirectoryChange; //导入依赖的package包/类
public void testSelectionRevertion() throws Exception {
myRoot.createChildData(null, "f1.txt");
myRoot.createChildData(null, "f2.txt");
DirectoryHistoryDialogModel m = createModelAndSelectRevision(1);
DirectoryChange c = (DirectoryChange)m.getChanges().get(0);
m.createRevisionReverter(Collections.singletonList(c.getDifference())).revert();
assertNull(myRoot.findChild("f1.txt"));
assertNotNull(myRoot.findChild("f2.txt"));
}
示例2: testDifference
import com.intellij.history.integration.ui.views.DirectoryChange; //导入依赖的package包/类
public void testDifference() throws IOException {
VirtualFile dir = createDirectory("dir");
createFile("dir/file.txt");
initModelFor(dir);
assertEquals(2, m.getRevisions().size());
m.selectRevisions(1, 1);
List<Change> cc = m.getChanges();
assertEquals(2, cc.size());
assertEquals("dir", ((DirectoryChange)cc.get(0)).getModel().getEntryName(1));
assertEquals("file.txt", ((DirectoryChange)cc.get(1)).getModel().getEntryName(1));
}
示例3: createChange
import com.intellij.history.integration.ui.views.DirectoryChange; //导入依赖的package包/类
@Override
protected DirectoryChange createChange(Difference d) {
return new DirectoryChange(new DirectoryChangeModel(d, myGateway));
}