public void removeTopLevelNode(ISwingTreeNode node) { super.removeTopLevelNode(node); if(node instanceof IFileNode && spanel!=null && spanel.lastfile!=null) { final String path = ((IFileNode)node).getFilePath(); final String model = spanel.lastfile; SRemoteGui.matchModel(path, model, jcc.getPlatformAccess()).addResultListener(new SwingDefaultResultListener<Boolean>() { public void customResultAvailable(Boolean result) { if(result.booleanValue() && model.equals(spanel.lastfile)) { spanel.loadModel(null, null); } } public void customExceptionOccurred(Exception exception) { // ignore. } }); } } };
public void removeTopLevelNode(ISwingTreeNode node) { super.removeTopLevelNode(node); if(node instanceof IFileNode && spanel!=null && spanel.lastfile!=null) { final String path = ((IFileNode)node).getFilePath(); final String model = spanel.lastfile; SRemoteGui.matchModel(path, model, jcc.getPlatformAccess()).addResultListener(new SwingDefaultResultListener<Boolean>() { public void customResultAvailable(Boolean result) { if(result.booleanValue() && model.equals(spanel.lastfile)) { spanel.loadModel(null, null); } } public void customExceptionOccurred(Exception exception) { // ignore. } }); } } };