- if (element instanceof DistParentElem) {
- DistParentElem bElement = (DistParentElem) element;
- if (bElement instanceof RepoElem)
- if (bElement.inHome())
- return DistImages.IMG_HOME_REPO;
- else if (bElement.isReadOnly())
- return DistImages.IMG_REPO_READONLY;
- else
- return DistImages.IMG_REPO;
- else if (bElement instanceof GroupElem)
- return DistImages.IMG_WKSP;
- else if (element instanceof WorkspaceElem)
- if (((WorkspaceElem) element).isReadOnly())
- return DistImages.IMG_DISTGRP_READONLY;
- else
- return DistImages.IMG_DISTGRP;
- }
- return null;
+ if (element instanceof RepoElem) {
+ RepoElem re = ((RepoElem) element);
+ if (re.inHome())
+ return DistImages.IMG_HOME_REPO;
+ else if (re.isConnected())
+ return JcrImages.REPOSITORY_CONNECTED;
+ else
+ return JcrImages.REPOSITORY_DISCONNECTED;
+ } else if (element instanceof WorkspaceElem) {
+ return JcrImages.WORKSPACE_CONNECTED;
+ } else if (element instanceof WkspGroupElem)
+ return DistImages.IMG_WKSP_GROUP;
+ // else if (element instanceof GroupBaseElem)
+ // return DistImages.IMG_GROUP_BASE;
+ else if (element instanceof ModularDistBaseElem)
+ return DistImages.IMG_MODULAR_DIST_BASE;
+ else if (element instanceof ModularDistVersionElem)
+ return DistImages.IMG_MODULAR_DIST_VERSION;
+ return super.getImage(element);