private String workspaceName;
private String label;
- /**
- * Helper to display only version when the workspace name is well formatted
- */
- private static String formatName(String name) {
- if (name != null && name.lastIndexOf(VERSION_SEP) > 0)
- return name.substring(name.lastIndexOf(VERSION_SEP) + 1);
- else
- return name;
- }
+ // /**
+ // * Helper to display only version when the workspace name is well
+ // formatted
+ // */
+ // private static String formatName(String name) {
+ // if (name != null && name.lastIndexOf(VERSION_SEP) > 0)
+ // return name.substring(name.lastIndexOf(VERSION_SEP) + 1);
+ // else
+ // return name;
+ // }
public WorkspaceElem(RepoElem repoElem, String workspaceName) {
this.repoElem = repoElem;
this.workspaceName = workspaceName;
- this.label = formatName(workspaceName);
+ this.label = workspaceName; // formatName(workspaceName);
}
public String getWorkspaceName() {
params.put(Fetch.PARAM_TARGET_REPO_PATH, targetRepoPath);
CommandHelpers.refreshParameterizedCommand(menuManager, window,
Fetch.ID, Fetch.DEFAULT_LABEL, Fetch.DEFAULT_ICON_PATH,
- isRepoElem && singleElement && !isReadOnly, params);
+ isRepoElem && isHomeRepo && singleElement && !isReadOnly, params);
// Normalize workspace
params = new HashMap<String, String>();