Source:
<code>private String getSimpleText(RepositoryTreeNode node) { switch (node.getType()) { case REPO: Repository repository = (Repository) node.getObject(); <START> return getText(repository); <END> case FILE: case FOLDER: return ((File) node.getObject()).getName(); case BRANCHES: return UIText.RepositoriesView_Branches_Nodetext; case LOCAL: return UIText.RepositoriesViewLabelProvider_LocalNodetext; case REMOTETRACKING: return UIText.RepositoriesViewLabelProvider_RemoteTrackingNodetext; case BRANCHHIERARCHY: IPath fullPath = (IPath) node.getObject(); return fullPath.lastSegment(); case TAGS: return UIText.RepositoriesViewLabelProvider_TagsNodeText; case ADDITIONALREFS: return UIText.RepositoriesViewLabelProvider_SymbolicRefNodeText; case REMOTES: return UIText.RepositoriesView_RemotesNodeText; case REF: case TAG: { Ref ref = (Ref) node.getObject(); String refName = Repository.shortenRefName(ref.getName()); if (node.getParent().getType() == RepositoryTreeNodeType.BRANCHHIERARCHY) { int index = refName.lastIndexOf('/'); refName = refName.substring(index + 1); } return refName; } case ADDITIONALREF: { Ref ref = (Ref) node.getObject(); String refName = Repository.shortenRefName(ref.getName()); if (ref.isSymbolic()) { refName = refName + " - " + ref.getLeaf().getName() + " - " + ObjectId.toString(ref.getLeaf().getObjectId()); } else { refName = refName + " - " + ObjectId.toString(ref.getObjectId()); } return refName; } case WORKINGDIR: if (node.getRepository().isBare()) return UIText.RepositoriesView_WorkingDir_treenode + " - " + UIText.RepositoriesViewLabelProvider_BareRepositoryMessage; else return UIText.RepositoriesView_WorkingDir_treenode + " - " + node.getRepository().getWorkTree().getAbsolutePath(); case REMOTE: case PUSH: case FETCH: case ERROR: return (String) node.getObject(); } return null; }</code><technical_language>super.getText</technical_language>

Target:
private String getSimpleText(RepositoryTreeNode node) { switch (node.getType()) { case REPO: Repository repository = (Repository) node.getObject(); return super.getText(repository); case FILE: case FOLDER: return ((File) node.getObject()).getName(); case BRANCHES: return UIText.RepositoriesView_Branches_Nodetext; case LOCAL: return UIText.RepositoriesViewLabelProvider_LocalNodetext; case REMOTETRACKING: return UIText.RepositoriesViewLabelProvider_RemoteTrackingNodetext; case BRANCHHIERARCHY: IPath fullPath = (IPath) node.getObject(); return fullPath.lastSegment(); case TAGS: return UIText.RepositoriesViewLabelProvider_TagsNodeText; case ADDITIONALREFS: return UIText.RepositoriesViewLabelProvider_SymbolicRefNodeText; case REMOTES: return UIText.RepositoriesView_RemotesNodeText; case REF: case TAG: { Ref ref = (Ref) node.getObject(); String refName = Repository.shortenRefName(ref.getName()); if (node.getParent().getType() == RepositoryTreeNodeType.BRANCHHIERARCHY) { int index = refName.lastIndexOf('/'); refName = refName.substring(index + 1); } return refName; } case ADDITIONALREF: { Ref ref = (Ref) node.getObject(); String refName = Repository.shortenRefName(ref.getName()); if (ref.isSymbolic()) { refName = refName + " - " + ref.getLeaf().getName() + " - " + ObjectId.toString(ref.getLeaf().getObjectId()); } else { refName = refName + " - " + ObjectId.toString(ref.getObjectId()); } return refName; } case WORKINGDIR: if (node.getRepository().isBare()) return UIText.RepositoriesView_WorkingDir_treenode + " - " + UIText.RepositoriesViewLabelProvider_BareRepositoryMessage; else return UIText.RepositoriesView_WorkingDir_treenode + " - " + node.getRepository().getWorkTree().getAbsolutePath(); case REMOTE: case PUSH: case FETCH: case ERROR: return (String) node.getObject(); } return null; }