@Override public String getPresentableName() { String name = getUrl(); if (myCurrentProject != null && myCurrentProject != UNSPECIFIED_PROJECT) { name += "/" + myCurrentProject.getName(); } return name; }
public void setCurrentProject(@Nullable GitlabProject project) { myCurrentProject = project != null && project.getId() == -1 ? UNSPECIFIED_PROJECT : project; }
private String getIssuesUrl() { if (myCurrentProject != null && myCurrentProject != UNSPECIFIED_PROJECT) { return getRestApiUrl("projects", myCurrentProject.getId(), "issues"); } return getRestApiUrl("issues"); }