1 11 package org.eclipse.team.internal.ccvs.ui.subscriber; 12 13 import org.eclipse.team.internal.ccvs.ui.Policy; 14 import org.eclipse.team.internal.ccvs.ui.actions.CVSAction; 15 import org.eclipse.team.internal.ui.Utils; 16 import org.eclipse.team.internal.ui.synchronize.ActionDelegateWrapper; 17 import org.eclipse.team.ui.synchronize.ISynchronizePageConfiguration; 18 19 23 public class CVSActionDelegateWrapper extends ActionDelegateWrapper { 24 25 public CVSActionDelegateWrapper(CVSAction delegate, ISynchronizePageConfiguration configuration) { 26 super(delegate, configuration, delegate.getId()); 27 Utils.initAction(this, getBundleKeyPrefix(), Policy.getActionBundle()); 28 } 29 30 35 protected String getBundleKeyPrefix() { 36 String name = getDelegate().getClass().getName(); 37 int lastDot = name.lastIndexOf("."); if (lastDot == -1) { 39 return name; 40 } 41 return name.substring(lastDot + 1) + "."; } 43 } 44 | Popular Tags |