本文整理汇总了Java中org.openide.nodes.NodeReorderEvent类的典型用法代码示例。如果您正苦于以下问题:Java NodeReorderEvent类的具体用法?Java NodeReorderEvent怎么用?Java NodeReorderEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NodeReorderEvent类属于org.openide.nodes包,在下文中一共展示了NodeReorderEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: filterChildrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
protected void filterChildrenReordered(final NodeReorderEvent ev) {
Locks.event().readLater(new Runnable() {
public void run() {
EQReplannedChildren.super.filterChildrenReordered(ev);
}
});
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:PhadhailViews.java
示例2: filterChildrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override
protected void filterChildrenReordered (NodeReorderEvent ev) {
super.filterChildrenReordered (ev);
if (getTemplateRootNode ().equals (this.getNode ())) {
sortNodes ();
}
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:TemplatesPanel.java
示例3: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override
public void childrenReordered(NodeReorderEvent ev) {
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:MatchingObjectNode.java
示例4: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
public void childrenReordered(NodeReorderEvent ev) {
assertFalse("No event in AWT thread", EventQueue.isDispatchThread());
events.add(ev);
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:5,代码来源:ScanInProgressTest.java
示例5: filterChildrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override
protected void filterChildrenReordered (NodeReorderEvent ev) {
super.filterChildrenReordered (ev);
sortNodes ();
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:6,代码来源:TreeTableView.java
示例6: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override
public void childrenReordered(NodeReorderEvent ev) {}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:PropertiesRowModel.java
示例7: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
public void childrenReordered(NodeReorderEvent ev) {
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:NodeDeletionTest.java
示例8: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
/** Fired when the order of children is changed.
* @param ev event describing the change
*/
public synchronized void childrenReordered(NodeReorderEvent ev) {
items = null;
notifyListeners();
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:8,代码来源:DefaultCategory.java
示例9: testLastModifiedOrderUpdatedAfterFileIsTouched
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
public void testLastModifiedOrderUpdatedAfterFileIsTouched() throws Exception {
aa.setSortMode(DataFolder.SortMode.LAST_MODIFIED);
Node n = aa.getNodeDelegate().cloneNode();
Node[] nodes = n.getChildren().getNodes(true);
assertEquals ("Two nodes", 2, nodes.length);
waitEvents();
assertEquals("Sort mode not changed and children not refreshed: " + events, 2, events.size());
assertTrue(DataFolder.PROP_SORT_MODE + " change not fired", events.contains(DataFolder.PROP_SORT_MODE));
assertTrue(DataFolder.PROP_CHILDREN + " change not fired", events.contains(DataFolder.PROP_CHILDREN));
assertEquals("Y.txt", nodes[0].getName()); // Y is newer
assertEquals("X.txt", nodes[1].getName()); // X is older
events.clear();
final FileObject orig = lfs.findResource("AA/Y.txt");
final FileObject touch = lfs.findResource("AA/X.txt");
// After touching, X.txt will be newer than Y.txt.
TestFileUtils.touch(FileUtil.toFile(touch), FileUtil.toFile(orig));
// It's not enough to wait only for DataFolder event
// because of number of RP tasks run before node children are updated
// must wait for reorder fired by node itself.
final CountDownLatch barrier = new CountDownLatch(1);
NodeListener nodeList = new NodeAdapter() {
@Override
public void childrenReordered (NodeReorderEvent ev) {
barrier.countDown();
}
};
n.addNodeListener(nodeList);
try {
touch.refresh();
waitEvents();
// wait for node reorder event
barrier.await(10, TimeUnit.SECONDS);
} finally {
n.removeNodeListener(nodeList);
}
assertEquals(0, barrier.getCount());
assertTrue(DataFolder.PROP_CHILDREN + " change not fired", events.contains(DataFolder.PROP_CHILDREN));
Node[] newNodes = n.getChildren().getNodes(true);
assertEquals("Node " + nodes[1].getName() + " expected first.", newNodes[0], nodes[1]);
assertEquals("Node " + nodes[0].getName() + " expected second.", newNodes[1], nodes[0]);
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:49,代码来源:DataFolderTimeOrderTest.java
示例10: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
public void childrenReordered(NodeReorderEvent ev) {
// no operation
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:NavigatorController.java
示例11: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
public synchronized void childrenReordered(NodeReorderEvent ev) {
changes.add("childrenReordered");
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:4,代码来源:ViewTest.java
示例12: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override
public void childrenReordered(NodeReorderEvent e) {}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:3,代码来源:Tab.java
示例13: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override
public void childrenReordered(NodeReorderEvent ev) {
// setNeedsSave(true);
toolController.refreshNonSpatialMarkers();
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:6,代码来源:SceneEditorController.java
示例14: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override
public void childrenReordered(NodeReorderEvent nre) {
}
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:4,代码来源:TerrainEditorTopComponent.java
示例15: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
public void childrenReordered(NodeReorderEvent ev) {
// setNeedsSave(true);
toolController.refreshNonSpatialMarkers();
}
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:5,代码来源:SceneEditorController.java
示例16: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
public void childrenReordered(NodeReorderEvent nre) {
}
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:3,代码来源:TerrainEditorTopComponent.java
示例17: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
/** Fired when the order of children is changed.
* @param ev event describing the change
*/
public void childrenReordered(NodeReorderEvent ev) {
}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:6,代码来源:PasteAction.java
示例18: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override
public void childrenReordered(NodeReorderEvent ev) {
}
开发者ID:dbunibas,项目名称:BART,代码行数:5,代码来源:AuthoritativeSourcesNodeFactory.java
示例19: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
@Override public void childrenReordered(NodeReorderEvent ev) { }
开发者ID:apache,项目名称:incubator-netbeans,代码行数:2,代码来源:ProjectsRootNode.java
示例20: childrenReordered
import org.openide.nodes.NodeReorderEvent; //导入依赖的package包/类
public @Override void childrenReordered(NodeReorderEvent ev) {}
开发者ID:apache,项目名称:incubator-netbeans,代码行数:2,代码来源:HelpCtxProcessor.java
注:本文中的org.openide.nodes.NodeReorderEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论