Package rabbit.ui.internal.util

Examples of rabbit.ui.internal.util.CategoryProvider


  public SessionPage() {}

  @Override
  public void createContents(Composite parent) {
    Category[] supported = {WORKSPACE, DATE};
    categoryProvider = new CategoryProvider(supported, DATE);
    categoryProvider.addObserver(this);
    contentProvider = new TreePathContentProvider(new SessionDataTreeBuilder(categoryProvider));
    contentProvider.addObserver(this);
    valueProvider = createValueProvider();
    valueProvider.addObserver(this);
View Full Code Here


  public TaskPage() {}

  @Override
  public void createContents(Composite parent) {
    Category[] supported = {WORKSPACE, DATE, TASK, PROJECT, FOLDER, FILE};
    categoryProvider = new CategoryProvider(supported,
        TASK, PROJECT, FOLDER, FILE);
    categoryProvider.addObserver(this);

    contentProvider = new TreePathContentProvider(
        new TaskDataTreeBuilder(categoryProvider));
View Full Code Here

        JAVA_PACKAGE_ROOT,
        JAVA_PACKAGE,
        JAVA_TYPE_ROOT,
        JAVA_MEMBER,
        };
    categoryProvider = new CategoryProvider(supported,
        PROJECT, JAVA_PACKAGE_ROOT, JAVA_PACKAGE, JAVA_TYPE_ROOT, JAVA_MEMBER);
    categoryProvider.addObserver(this);

    contentProvider = new TreePathContentProvider(
        new JavaDataTreeBuilder(categoryProvider));
View Full Code Here

  public PerspectivePage() {}

  @Override
  public void createContents(Composite parent) {
    Category[] supported = {WORKSPACE, DATE, PERSPECTIVE};
    categoryProvider = new CategoryProvider(supported, PERSPECTIVE);
    categoryProvider.addObserver(this);

    contentProvider = new TreePathContentProvider(
        new PerspectiveDataTreeBuilder(categoryProvider));
    contentProvider.addObserver(this);
View Full Code Here

  public LaunchPage() {}

  @Override
  public void createContents(Composite parent) {
    Category[] supported = {WORKSPACE, DATE, LAUNCH, LAUNCH_MODE, LAUNCH_TYPE};
    categoryProvider = new CategoryProvider(supported, LAUNCH);
    categoryProvider.addObserver(this);

    contentProvider = new TreePathContentProvider(
        new LaunchDataTreeBuilder(categoryProvider));
    contentProvider.addObserver(this);
View Full Code Here

  }

  @Override
  public void createContents(Composite parent) {
    Category[] supported = {WORKSPACE, DATE, WORKBENCH_TOOL};
    categoryProvider = new CategoryProvider(supported, WORKBENCH_TOOL);
    categoryProvider.addObserver(this);

    realContentProvider = new TreePathContentProvider(
        new PartDataTreeBuilder(categoryProvider));
    realContentProvider.addObserver(this);
View Full Code Here

  public ResourcePage() {}

  @Override
  public void createContents(Composite parent) {
    Category[] supported = {WORKSPACE, DATE, PROJECT, FOLDER, FILE};
    categoryProvider = new CategoryProvider(supported, PROJECT, FOLDER, FILE);
    categoryProvider.addObserver(this);

    contentProvider = new TreePathContentProvider(
        new FileDataTreeBuilder(categoryProvider));
    contentProvider.addObserver(this);
View Full Code Here

  public CommandPage() {}

  @Override
  public void createContents(Composite parent) {
    Category[] supported = {WORKSPACE, DATE, COMMAND};
    categoryProvider = new CategoryProvider(supported, COMMAND);
    categoryProvider.addObserver(this);
    contentProvider = new TreePathContentProvider(
        new CommandDataTreeBuilder(categoryProvider));
    contentProvider.addObserver(this);
    valueProvider = createValueProvider();
View Full Code Here

  }

  @Test
  public void restoreCategoriesShouldDoNothingIfNoCategoriesHaveBeenSaved() {
    ICategory[] categories = {DATE, FILE};
    ICategoryProvider provider = new CategoryProvider(categories, categories);
    helper.restoreCategories(provider);
    assertThat(provider.getSelected(), equalTo(asList(categories)));
  }
View Full Code Here

TOP

Related Classes of rabbit.ui.internal.util.CategoryProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.