public boolean hasChildren(Object parent) { if (!(parent instanceof ISecurePreferences)) return false; ISecurePreferences node = (ISecurePreferences) parent; String[] childrenNames = node.childrenNames(); return (childrenNames.length > 0); } }
public boolean hasChildren(Object parent) { if (!(parent instanceof ISecurePreferences)) return false; ISecurePreferences node = (ISecurePreferences) parent; String[] childrenNames = node.childrenNames(); return (childrenNames.length > 0); } }
public Object[] getChildren(Object parent) { if (!(parent instanceof ISecurePreferences)) return new Object[0]; ISecurePreferences node = (ISecurePreferences) parent; String[] childrenNames = node.childrenNames(); ISecurePreferences[] result = new ISecurePreferences[childrenNames.length]; for (int i = 0; i < childrenNames.length; i++) result[i] = node.node(childrenNames[i]); return result; }
public Object[] getChildren(Object parent) { if (!(parent instanceof ISecurePreferences)) return new Object[0]; ISecurePreferences node = (ISecurePreferences) parent; String[] childrenNames = node.childrenNames(); ISecurePreferences[] result = new ISecurePreferences[childrenNames.length]; for (int i = 0; i < childrenNames.length; i++) result[i] = node.node(childrenNames[i]); return result; }
protected void export(ISecurePreferences node, PrintStream stream) { if (IStorageConst.PROVIDER_NODE.equals(node.absolutePath())) return; // skip internal node String[] keys = node.keys(); if (keys.length > 0) { String header = '[' + node.absolutePath() + ']'; stream.println(header); for (int i = 0; i < keys.length; i++) { try { String data = keys[i] + " := " + node.get(keys[i], ""); //$NON-NLS-1$ //$NON-NLS-2$ stream.println(data); } catch (StorageException e) { Activator.log(IStatus.ERROR, SecUIMessages.failedDecrypt, null, e); } } } String[] children = node.childrenNames(); for (int i = 0; i < children.length; i++) { export(node.node(children[i]), stream); } }
protected void export(ISecurePreferences node, PrintStream stream) { if (IStorageConst.PROVIDER_NODE.equals(node.absolutePath())) return; // skip internal node String[] keys = node.keys(); if (keys.length > 0) { String header = '[' + node.absolutePath() + ']'; stream.println(header); for (int i = 0; i < keys.length; i++) { try { String data = keys[i] + " := " + node.get(keys[i], ""); //$NON-NLS-1$ //$NON-NLS-2$ stream.println(data); } catch (StorageException e) { Activator.log(IStatus.ERROR, SecUIMessages.failedDecrypt, null, e); } } } String[] children = node.childrenNames(); for (int i = 0; i < children.length; i++) { export(node.node(children[i]), stream); } }
elements.add(new TmpElement(node.absolutePath(), map)); String[] childrenNames = node.childrenNames(); for (int i = 0; i < childrenNames.length; i++) { decrypt(node.node(childrenNames[i]));
elements.add(new TmpElement(node.absolutePath(), map)); String[] childrenNames = node.childrenNames(); for (int i = 0; i < childrenNames.length; i++) { decrypt(node.node(childrenNames[i]));