MCPcopy Create free account
hub / github.com/GateNLP/gate-core / run

Method run

src/main/java/gate/gui/MainFrame.java:3954–3972  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3952 public void actionPerformed(ActionEvent e) {
3953 Runnable runner = new Runnable() {
3954 @Override
3955 public void run() {
3956 // for each element in the tree look if it is in the tab panel
3957 // if yes, remove it from the tab panel
3958 Enumeration<?> nodesEnum = resourcesTreeRoot.preorderEnumeration();
3959 DefaultMutableTreeNode node;
3960 while(nodesEnum.hasMoreElements()) {
3961 node = (DefaultMutableTreeNode)nodesEnum.nextElement();
3962 if ((node.getUserObject() instanceof Handle)
3963 && (mainTabbedPane.indexOfComponent(
3964 ((Handle)node.getUserObject()).getLargeView()) != -1)) {
3965 final Handle handle = (Handle)node.getUserObject();
3966 SwingUtilities.invokeLater(new Runnable() { @Override
3967 public void run() {
3968 (new CloseViewAction(handle)).actionPerformed(null);
3969 }});
3970 }
3971 }
3972 }
3973 };
3974 Thread thread = new Thread(runner, "HideAllAction");
3975 thread.setPriority(Thread.MIN_PRIORITY);

Callers

nothing calls this directly

Calls 2

getLargeViewMethod · 0.65
actionPerformedMethod · 0.45

Tested by

no test coverage detected