Package rabbit.ui.internal.util

Examples of rabbit.ui.internal.util.TreePathValueProvider


    Map<Predicate<Object>, Category> categories = ImmutableMap.of(
        instanceOf(LocalDate.class), DATE,
        instanceOf(WorkspaceStorage.class), WORKSPACE);
    ICategorizer categorizer = new Categorizer(categories);
    IConverter<TreePath> converter = new TreePathDurationConverter();
    return new TreePathValueProvider(categorizer, contentProvider, converter, DATE);
  }
View Full Code Here


  }

  private TreePathValueProvider createDurationValueProvider() {
    ICategorizer categorizer = createCategorizer();
    IConverter<TreePath> converter = new TreePathDurationConverter();
    return new TreePathValueProvider(
        categorizer, contentProvider, converter, TASK);
  }
View Full Code Here

  }

  private TreePathValueProvider createDurationValueProvider() {
    ICategorizer categorizer = new JavaVisualCategorizer();
    IConverter<TreePath> converter = new TreePathDurationConverter();
    return new TreePathValueProvider(
        categorizer, contentProvider, converter, JAVA_METHOD);
  }
View Full Code Here

  }

  private TreePathValueProvider createDurationValueProvider() {
    ICategorizer categorizer = createCategorizer();
    IConverter<TreePath> converter = new TreePathDurationConverter();
    return new TreePathValueProvider(
        categorizer, contentProvider, converter, PERSPECTIVE);
  }
View Full Code Here

  }

  private TreePathValueProvider createDurationValueProvider() {
    ICategorizer categorizer = createCategorizer();
    IConverter<TreePath> converter = new TreePathDurationConverter();
    return new TreePathValueProvider(
        categorizer, contentProvider, converter, LAUNCH);
  }
View Full Code Here

  }

  private TreePathValueProvider createCountValueProvider() {
    ICategorizer categorizer = createCategorizer();
    IConverter<TreePath> converter = new TreePathIntConverter();
    return new TreePathValueProvider(
        categorizer, contentProvider, converter, LAUNCH);
  }
View Full Code Here

  }

  private TreePathValueProvider createDurationValueProvider() {
    ICategorizer categorizer = createCategorizer();
    IConverter<TreePath> converter = new TreePathDurationConverter();
    return new TreePathValueProvider(
        categorizer, realContentProvider, converter, WORKBENCH_TOOL);
  }
View Full Code Here

  }

  private TreePathValueProvider createDurationValueProvider() {
    ICategorizer categorizer = createCategorizer();
    IConverter<TreePath> converter = new TreePathDurationConverter();
    return new TreePathValueProvider(
        categorizer, contentProvider, converter, PROJECT);
  }
View Full Code Here

        instanceOf(Command.class), COMMAND,
        instanceOf(LocalDate.class), DATE,
        instanceOf(WorkspaceStorage.class), WORKSPACE);
    ICategorizer categorizer = new Categorizer(categories);
    IConverter<TreePath> converter = new TreePathIntConverter();
    return new TreePathValueProvider(
        categorizer, contentProvider, converter, COMMAND);
  }
View Full Code Here

  @Test
  public void restoreVisualCategoryShouldDoNothingIsNoCategoryHasBeenSaved() {
    ICategorizer categorizer = mock(ICategorizer.class);
    given(categorizer.hasCategory(Mockito.<ICategory> any())).willReturn(true);
    @SuppressWarnings("unchecked")
    TreePathValueProvider provider = new TreePathValueProvider(categorizer,
        mock(IProvider.class), mock(IConverter.class));

    provider.setVisualCategory(FILE);
    helper.restoreVisualCategory(provider);

    assertThat(provider.getVisualCategory(), equalTo((ICategory) FILE));
  }
View Full Code Here

TOP

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

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.