1 11 package org.eclipse.team.internal.ccvs.ui.subscriber; 12 13 import org.eclipse.jface.action.IMenuManager; 14 import org.eclipse.team.internal.ui.synchronize.IChangeSetProvider; 15 import org.eclipse.team.ui.synchronize.*; 16 17 20 public class CVSChangeSetActionGroup extends SynchronizePageActionGroup { 21 22 private OpenChangeSetAction openCommitSet; 23 24 public void initialize(ISynchronizePageConfiguration configuration) { 25 super.initialize(configuration); 26 openCommitSet = new OpenChangeSetAction(configuration); 27 } 28 29 32 public void fillContextMenu(IMenuManager menu) { 33 ISynchronizeParticipant participant = getConfiguration().getParticipant(); 34 if (participant instanceof IChangeSetProvider) { 35 if (((IChangeSetProvider)participant).getChangeSetCapability().enableCheckedInChangeSetsFor(getConfiguration())) { 36 appendToGroup( 37 menu, 38 ISynchronizePageConfiguration.FILE_GROUP, 39 openCommitSet); 40 } 41 } 42 } 43 } 44 | Popular Tags |