1 12 package org.eclipse.team.internal.ccvs.ui.operations; 13 14 import org.eclipse.team.internal.ccvs.core.resources.RemoteFolder; 15 16 21 public class RemoteProjectFolder extends RemoteFolder { 22 23 protected String projectName; 24 25 30 public RemoteProjectFolder(RemoteFolder folder, String projectName) { 31 super((RemoteFolder) folder.getParent(), folder.getName(), folder.getRepository(), 32 folder.getRepositoryRelativePath(), folder.getTag(), folder.getFolderSyncInfo().getIsStatic()); 33 this.projectName = projectName; 34 } 35 36 39 public boolean hasProjectName() { 40 if (isProjectNameEmpty()) 41 return false; 42 return true; 43 } 44 45 48 public String getProjectName() { 49 if (isProjectNameEmpty()) 50 return null; 51 return projectName; 52 } 53 54 private boolean isProjectNameEmpty() { 55 return projectName == null || projectName.equals(""); } 57 } 58 | Popular Tags |