1 11 package org.eclipse.team.internal.ccvs.ui.actions; 12 13 import java.lang.reflect.InvocationTargetException ; 14 15 import org.eclipse.jface.action.IAction; 16 import org.eclipse.team.internal.ccvs.core.ICVSRemoteFolder; 17 import org.eclipse.team.internal.ccvs.core.ICVSRepositoryLocation; 18 import org.eclipse.team.internal.ccvs.ui.operations.FetchAllMembersOperation; 19 20 public class FetchAllMembersAction extends CVSAction { 21 22 protected void execute(IAction action) throws InvocationTargetException , InterruptedException { 23 ICVSRemoteFolder[] folders = getSelectedRemoteFolders(); 24 ICVSRepositoryLocation repoLocation = getRepositoryManager().getRepositoryLocationFor(folders[0]); 25 new FetchAllMembersOperation (getTargetPart(), folders, repoLocation).run(); 26 } 27 28 31 public boolean isEnabled() { 32 return getSelectedRemoteFolders().length == 1; 34 } 35 36 } 37 | Popular Tags |