1 11 package org.eclipse.team.internal.ccvs.ui; 12 13 import org.eclipse.osgi.util.NLS; 14 import org.eclipse.team.internal.ccvs.core.CVSTag; 15 import org.eclipse.ui.dialogs.PropertyPage; 16 17 public abstract class CVSPropertiesPage extends PropertyPage { 18 19 25 26 public static String getTagLabel(CVSTag tag) { 27 28 if (tag == null) { 29 return CVSUIMessages.CVSFilePropertiesPage_none; 30 } 31 32 switch (tag.getType()) { 33 case CVSTag.HEAD: 34 return tag.getName(); 35 case CVSTag.VERSION: 36 return NLS.bind(CVSUIMessages.CVSFilePropertiesPage_version, new String [] { tag.getName() }); 37 case CVSTag.BRANCH: 38 return NLS.bind(CVSUIMessages.CVSFilePropertiesPage_branch, new String [] { tag.getName() }); 39 case CVSTag.DATE: 40 return NLS.bind(CVSUIMessages.CVSFilePropertiesPage_date, new String [] { tag.getName() }); 41 default : 42 return tag.getName(); 43 } 44 } 45 } 46 | Popular Tags |