Package org.mongodb.meclipse.views.objects

Examples of org.mongodb.meclipse.views.objects.TreeParent


public final class FilterPlacement {
  private String placementStr;

  public FilterPlacement(TreeParent parent) {
    TreeParent treeObj = parent;
    do {
      if (placementStr == null)
        placementStr = treeObj.getName();
      else
        placementStr = treeObj.getName() + "." + placementStr;
      treeObj = treeObj.getParent();
    } while (treeObj != null);
  }
View Full Code Here


    Object obj = treeSelection.getFirstElement();
    if (!(obj instanceof Collection) && !(obj instanceof Filter))
      throw new IllegalStateException(obj.getClass().getSimpleName()
          + getCaption("filterWizard.error.noCollection"));

    TreeParent parent = (TreeParent) obj;
    existingFilters = MeclipsePlugin.getDefault().getFilters(
        new FilterPlacement(parent));
  }
View Full Code Here

    Object obj = treeSelection.getFirstElement();
    if (!(obj instanceof Collection) && !(obj instanceof Filter))
      throw new IllegalStateException(obj.getClass().getSimpleName()
          + getCaption("filterWizard.error.noCollection"));

    TreeParent parent = (TreeParent) obj;
    filter.setParent(parent);
    MeclipsePlugin.getDefault().addFilter(new FilterPlacement(parent),
        filter);
  }
View Full Code Here

TOP

Related Classes of org.mongodb.meclipse.views.objects.TreeParent

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.