/******************************************************************************* | |
* Copyright (c) 2004, 2007 Boeing. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Boeing - initial API and implementation | |
*******************************************************************************/ | |
package org.eclipse.osee.framework.ui.skynet.blam.operation; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import org.eclipse.core.runtime.IProgressMonitor; | |
import org.eclipse.osee.framework.skynet.core.artifact.Branch; | |
import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQuery; | |
import org.eclipse.osee.framework.ui.skynet.blam.VariableMap; | |
/** | |
* @author Andrew M. Finkbeiner | |
*/ | |
public class LoadAllArtifactsOnBranch extends AbstractBlam { | |
/* (non-Javadoc) | |
* @see org.eclipse.osee.framework.ui.skynet.blam.operation.AbstractBlam#getName() | |
*/ | |
@Override | |
public String getName() { | |
return "Load All Artifacts On Branch"; | |
} | |
/* (non-Javadoc) | |
* @see org.eclipse.osee.framework.ui.skynet.blam.operation.BlamOperation#runOperation(org.eclipse.osee.framework.ui.skynet.blam.VariableMap, org.eclipse.osee.framework.skynet.core.artifact.Branch, org.eclipse.core.runtime.IProgressMonitor) | |
*/ | |
public void runOperation(VariableMap variableMap, IProgressMonitor monitor) throws Exception { | |
Branch branch = variableMap.getBranch("Parent Branch"); | |
ArtifactQuery.getArtifactsFromBranch(branch, false); | |
} | |
@Override | |
public String getXWidgetsXml() { | |
return "<xWidgets><XWidget xwidgetType=\"XText\" displayName=\"Branch List\" /><XWidget xwidgetType=\"XBranchSelectWidget\" displayName=\"Parent Branch\" /></xWidgets>"; | |
} | |
public Collection<String> getCategories() { | |
return Arrays.asList("Admin.Health"); | |
} | |
} |