// Javadoc inherited
public void setFocus(Path path) {
boolean seekingVariants = true;
int stepCount = path.getStepCount();
for (int i = 0; i < stepCount && seekingVariants; i++) {
Step step = path.getStep(i);
if (step instanceof PropertyStep) {
PropertyStep property = (PropertyStep) step;
if (PolicyModel.VARIANTS.getName().equals(
property.getProperty())) {
if ((i + 1) < stepCount) {
Step variantIndexStep = path.getStep(i + 1);
if (variantIndexStep instanceof IndexedStep) {
int variantIndex =
((IndexedStep) variantIndexStep).getIndex();
ISelection newSelection = new StructuredSelection(
viewer.getElementAt(variantIndex));