DynamicTestsSquareSectionDescriptor.java :  » IDE-Eclipse » ui » org » eclipse » ui » tests » views » properties » tabbed » dynamic » section » descriptors » Java Open Source

Java Open Source » IDE Eclipse » ui 
ui » org » eclipse » ui » tests » views » properties » tabbed » dynamic » section » descriptors » DynamicTestsSquareSectionDescriptor.java
/*******************************************************************************
 * Copyright (c) 2007 IBM Corporation and others.
 * 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.tests.views.properties.tabbed.dynamic.section.descriptors;

import org.eclipse.jface.viewers.IFilter;
import org.eclipse.ui.tests.views.properties.tabbed.dynamic.filters.DynamicTestsSquareSectionFilter;
import org.eclipse.ui.tests.views.properties.tabbed.dynamic.sections.DynamicTestsSquareSection;
import org.eclipse.ui.views.properties.tabbed.AbstractSectionDescriptor;
import org.eclipse.ui.views.properties.tabbed.ISection;
import org.eclipse.ui.views.properties.tabbed.ITypeMapper;

/**
 * A section descriptor for the dynamic tests view.
 * 
 * @author Anthony Hunter
 */
public class DynamicTestsSquareSectionDescriptor extends
    AbstractSectionDescriptor {

  /**
   * Constructor for DynamicTestsSquareSectionDescriptor.
   * 
   * @param typeMapper
   *            the optional type mapper for the section.
   */
  public DynamicTestsSquareSectionDescriptor(ITypeMapper typeMapper) {
    super(typeMapper);
  }

  public IFilter getFilter() {
    return new DynamicTestsSquareSectionFilter();
  }

  public String getId() {
    return "DynamicTestsSquareSection"; //$NON-NLS-1$
  }

  public ISection getSectionClass() {
    return new DynamicTestsSquareSection();
  }

  public String getTargetTab() {
    return "ShapeTab"; //$NON-NLS-1$
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.