org.openide.nodes.NodeReorderEvent Java Examples
The following examples show how to use
org.openide.nodes.NodeReorderEvent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PhadhailViews.java From netbeans with Apache License 2.0 | 5 votes |
protected void filterChildrenReordered(final NodeReorderEvent ev) { Locks.event().readLater(new Runnable() { public void run() { EQReplannedChildren.super.filterChildrenReordered(ev); } }); }
Example #2
Source File: TemplatesPanel.java From netbeans with Apache License 2.0 | 5 votes |
@Override protected void filterChildrenReordered (NodeReorderEvent ev) { super.filterChildrenReordered (ev); if (getTemplateRootNode ().equals (this.getNode ())) { sortNodes (); } }
Example #3
Source File: ProjectsRootNodePreferredOpenTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #4
Source File: ScanInProgressTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #5
Source File: PhysicalView.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void childrenReordered(NodeReorderEvent ev) { }
Example #6
Source File: ProjectsRootNodePhysicalViewTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #7
Source File: OpenProjectListSetMain2Test.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #8
Source File: ProjectsRootNodePreferredFromContextOpenTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #9
Source File: ProjectsRootNodePreferredFromPopupTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #10
Source File: ProjectsRootNodePhysicalViewModeSourcesTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #11
Source File: OpenProjectHookThrowsExceptionTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #12
Source File: EjbChildren.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { //nothing to do }
Example #13
Source File: OpenProjectListSetMainTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #14
Source File: CloseProjectsTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { assertFalse("No event in AWT thread", EventQueue.isDispatchThread()); events.add(ev); }
Example #15
Source File: DefaultCategory.java From netbeans with Apache License 2.0 | 4 votes |
/** Fired when the order of children is changed. * @param ev event describing the change */ public synchronized void childrenReordered(NodeReorderEvent ev) { items = null; notifyListeners(); }
Example #16
Source File: NavigatorController.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { // no operation }
Example #17
Source File: SceneEditorController.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { // setNeedsSave(true); toolController.refreshNonSpatialMarkers(); }
Example #18
Source File: TerrainEditorController.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { }
Example #19
Source File: TerrainEditorTopComponent.java From MikuMikuStudio with BSD 2-Clause "Simplified" License | 4 votes |
public void childrenReordered(NodeReorderEvent nre) { }
Example #20
Source File: ProxyNodeTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { }
Example #21
Source File: ActionFilterNode.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void childrenReordered(NodeReorderEvent ev) { }
Example #22
Source File: ViewTest.java From netbeans with Apache License 2.0 | 4 votes |
public synchronized void childrenReordered(NodeReorderEvent ev) { changes.add("childrenReordered"); }
Example #23
Source File: MatchingObjectNode.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void childrenReordered(NodeReorderEvent ev) { }
Example #24
Source File: MatchingObjectNodeTest.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void childrenReordered(NodeReorderEvent ev) { }
Example #25
Source File: TreeTableView.java From netbeans with Apache License 2.0 | 4 votes |
@Override protected void filterChildrenReordered (NodeReorderEvent ev) { super.filterChildrenReordered (ev); sortNodes (); }
Example #26
Source File: PropertiesRowModel.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void childrenReordered(NodeReorderEvent ev) {}
Example #27
Source File: NodeDeletionTest.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { }
Example #28
Source File: Tab.java From netbeans with Apache License 2.0 | 4 votes |
@Override public void childrenReordered(NodeReorderEvent e) {}
Example #29
Source File: DataFolderTimeOrderTest.java From netbeans with Apache License 2.0 | 4 votes |
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]); }
Example #30
Source File: CookieAction84636Test.java From netbeans with Apache License 2.0 | 4 votes |
public void childrenReordered(NodeReorderEvent ev) { }