1 11 package org.eclipse.team.internal.ccvs.ui.actions; 12 13 import org.eclipse.jface.action.IAction; 14 import org.eclipse.team.internal.ccvs.core.CVSException; 15 import org.eclipse.team.internal.ccvs.core.ICVSResource; 16 17 23 public class CompareWithRemoteAction extends SyncAction { 24 25 29 protected void setActionEnablement(IAction action) { 30 super.setActionEnablement(action); 31 action.setText(calculateActionTagValue()); 32 } 33 34 39 protected boolean isEnabledForCVSResource(ICVSResource cvsResource) throws CVSException { 40 return super.isEnabledForCVSResource(cvsResource) || cvsResource.getParent().isCVSFolder(); 41 } 42 43 46 protected boolean isEnabledForNonExistantResources() { 47 return true; 48 } 49 } 50 | Popular Tags |