Package org.fusesource.ide.commons.ui.config

Examples of org.fusesource.ide.commons.ui.config.ColumnConfiguration


   *
   * @param item
   *            The item to move up
   */
  private void moveUp(ColumnConfiguration item) {
    ColumnConfiguration movedColumn = null;
    List<ColumnConfiguration> newColumns = new ArrayList<ColumnConfiguration>();
    for (ColumnConfiguration column : getColumns()) {
      if (!column.equals(item) || movedColumn == null) {
        newColumns.add(column);
        movedColumn = column;
View Full Code Here


   *
   * @param item
   *            The item to move down
   */
  private void moveDown(ColumnConfiguration item) {
    ColumnConfiguration movedColumn = null;
    List<ColumnConfiguration> newColumns = new ArrayList<ColumnConfiguration>();
    for (ColumnConfiguration column : getColumns()) {

      if (column.equals(item)) {
        movedColumn = item;
View Full Code Here

    .setLayoutData(new GridData(GridData.FILL_BOTH));
    columnsViewer.setLabelProvider(new LabelProvider() {
      @Override
      public String getText(Object element) {
        if (element instanceof ColumnConfiguration) {
          ColumnConfiguration config = (ColumnConfiguration) element;
          return config.getName();
        }
        return super.getText(element);
      }});
    columnsViewer.setContentProvider(new ArrayContentProvider());
  }
View Full Code Here

    System.out.println("Found columns: " + columns);

    assertTrue("Should have more than one column!", columns.size() > 0);

    ColumnConfiguration column = columns.get(0);

    System.out.println("Column " + column + " visible: " + column.isVisible() + " description: " + column.getDescription());

    List<String> sorted = tableConfig.sortDefaultColumnNames(defaultNames);
    List<String> expected = Arrays.asList("foo", "bar", "something", "another", "whatnot");

    assertEquals("Sorted list", expected, sorted);
View Full Code Here

TOP

Related Classes of org.fusesource.ide.commons.ui.config.ColumnConfiguration

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.