public String getText(Object object) { SecurityIdentity securityIdentity = ((SecurityIdentity) object); return "SecurityIdentity " + securityIdentity.getDescription(); //$NON-NLS-1$ }
public Translator[] getChildren(Object o, int versionID) { if (o == null) return CommonTranslators.EMPTY_CHILDREN; if (((SecurityIdentity)o).isRunAsSpecifiedIdentity()) return RUN_AS_TRANSLATORS; else if (((SecurityIdentity)o).isUseCallerIdentity()) return USE_CALLER_TRANSLATORS; else throw new IllegalStateException("Internal error: Security Identity Type expected"); //$NON-NLS-1$ }