MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / unarchiveExpandedState

Method unarchiveExpandedState

unused/javax/swing/JTree.java:3175–3190  ·  view source on GitHub ↗

Updates the expanded state of nodes in the tree based on the previously archived state state .

(Object state)

Source from the content-addressed store, hash-verified

3173 * previously archived state <code>state</code>.
3174 */
3175 private void unarchiveExpandedState(Object state) {
3176 if(state instanceof Vector) {
3177 Vector<?> paths = (Vector)state;
3178
3179 for(int counter = paths.size() - 1; counter >= 0; counter--) {
3180 Boolean eState = (Boolean)paths.elementAt(counter--);
3181 TreePath path;
3182
3183 try {
3184 path = getPathForIndexs((int[])paths.elementAt(counter));
3185 if(path != null)
3186 expandedState.put(path, eState);
3187 } catch (Error error) {}
3188 }
3189 }
3190 }
3191
3192 /**
3193 * Returns an array of integers specifying the indexs of the

Callers 1

readObjectMethod · 0.95

Calls 2

getPathForIndexsMethod · 0.95
putMethod · 0.45

Tested by

no test coverage detected