private void readObjectOld(Node.Handle h, ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException { if (h == null) { // do nothing => should not occur to often and moreover this is also // dead code replaced by new version return; } else { String[] rootCtx = (String[]) ois.readObject(); String[] exploredCtx = (String[]) ois.readObject(); List<String[]> ll = new LinkedList<String[]>(); for (;;) { String[] path = (String[]) ois.readObject(); if (path == null) { break; } ll.add(path); } Node root = findPath(h.getNode(), rootCtx); restoreSelection(root, exploredCtx, ll); } }
private void readObjectOld (Node.Handle h, ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException { if (h == null) { // do nothing => should not occur to often and moreover this is also // dead code replaced by new version return; } else { String[] rootCtx = (String[]) ois.readObject(); String[] exploredCtx = (String[]) ois.readObject (); LinkedList ll = new LinkedList (); for (;;) { String[] path = (String[]) ois.readObject(); if (path == null) break; ll.add(path); } Node root = findPath (h.getNode (), rootCtx); restoreSelection(root, exploredCtx, ll); } }
private void readObjectOld (Node.Handle h, ObjectInputStream ois) throws java.io.IOException, ClassNotFoundException { if (h == null) { // do nothing => should not occur to often and moreover this is also // dead code replaced by new version return; } else { String[] rootCtx = (String[]) ois.readObject(); String[] exploredCtx = (String[]) ois.readObject (); LinkedList ll = new LinkedList (); for (;;) { String[] path = (String[]) ois.readObject(); if (path == null) break; ll.add(path); } Node root = findPath (h.getNode (), rootCtx); restoreSelection(root, exploredCtx, ll); } }
if (root == null) throw new IOException("Node.Handle.getNode (for " + rootName + ") should not return null"); // NOI18N restoreSelection(root, exploredCtx, Arrays.asList(selPaths)); } catch (IOException ioe) { SafeException safe = new SafeException(ioe);
if (root == null) throw new IOException("Node.Handle.getNode (for " + rootName + ") should not return null"); // NOI18N restoreSelection(root, exploredCtx, Arrays.asList(selPaths)); } catch (IOException ioe) { SafeException safe = new SafeException(ioe);
restoreSelection(root, exploredCtx, Arrays.asList(selPaths)); } catch (IOException ioe) { SafeException safe = new SafeException(ioe);