Examples of PatternFilter


Examples of org.eclipse.ui.dialogs.PatternFilter

  @Override
  protected void createContent(Composite parent) {
    Composite composite = new Composite(parent, SWT.RESIZE);
    composite.setLayout(new GridLayout());
    filteredTree = new FilteredContentOutlinePage.FilteredTreeWithAutoExpand(
        composite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL, new PatternFilter());

    getTreeViewer().setContentProvider(new ATGContentProviderAdaptor());
    getTreeViewer().setLabelProvider(new ATGLabelProvider());
    getTreeViewer().setAutoExpandLevel(AbstractTreeViewer.ALL_LEVELS);
View Full Code Here

Examples of org.eclipse.ui.dialogs.PatternFilter

     * Create a new filtered tree viewer in the parent.
     *
     * @param parent the parent <code>Composite</code>.
     */
    private void createFilteredTreeViewer(Composite parent) {
    PatternFilter filter = new ViewPatternFilter();
    int styleBits = SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER;
    filteredTree = new FilteredTree(parent, styleBits, filter);
    filteredTree.setBackground(parent.getDisplay().getSystemColor(
        SWT.COLOR_WIDGET_BACKGROUND));
   
View Full Code Here

Examples of org.eclipse.ui.dialogs.PatternFilter

        labelProvider = new PresentationLabelProvider();
        // create a new tree with a custom pattern matcher that will allow
        // non-category elements to be returned in the event that their children
        // do not
        tree = new FilteredTree(parent, SWT.SINGLE | SWT.H_SCROLL
                | SWT.V_SCROLL | SWT.BORDER, new PatternFilter() {
           
            /* (non-Javadoc)
             * @see org.eclipse.ui.dialogs.PatternFilter#isParentMatch(org.eclipse.jface.viewers.Viewer, java.lang.Object)
             */
            protected boolean isParentMatch(Viewer viewer, Object element) {
View Full Code Here

Examples of org.erlide.ui.editors.erl.outline.filters.PatternFilter

    @Override
    public Object execute(final ExecutionEvent event) throws ExecutionException {
        final Object activePart = HandlerUtil.getVariable(event, "activePart");
        final String targetId;
        final Shell shell;
        PatternFilter patternFilter;
        StructuredViewer viewer;
        if (activePart instanceof ContentOutline) {
            final ContentOutline outline = (ContentOutline) activePart;
            final ErlangOutlinePage erlangOutlinePage = (ErlangOutlinePage) outline
                    .getAdapter(ErlangOutlinePage.class);
View Full Code Here

Examples of org.jdesktop.swingx.decorator.PatternFilter

  final void setAdditionFilters(final List<Filter> filters) {
    ProductionUnit productionUnit = (ProductionUnit) productionUnitSelectionList
        .getSelection();
    if (productionUnit != null) {
      PatternFilter filterProductionUnit = new PatternFilter(
          productionUnit.getProductionUnitName(),
          Pattern.CASE_INSENSITIVE, 8);
      filters.add(filterProductionUnit);
    }
  }
View Full Code Here

Examples of org.jdesktop.swingx.decorator.PatternFilter

      ProductAreaGroup productAreaGroup) {
    currentProductAreaGroup = productAreaGroup;
    if (tableOrders != null) {
      List<Filter> filters = new ArrayList<Filter>();
      if (sentFilter) {
        Filter filter = new PatternFilter("Nei",
            Pattern.CASE_INSENSITIVE, tableOrders.getColumnExt(
                TransportOrderTableModel.TransportColumn.SENDT
                    .getColumnName()).getModelIndex());
        filters.add(filter);
      }
View Full Code Here

Examples of org.jdesktop.swingx.decorator.PatternFilter

      group = null;
    }
    List<Filter> filterList = new ArrayList<Filter>();

    if (!checkBoxFilter.isSelected()) {
      Filter filterApplied = new PatternFilter("---",
          Pattern.CASE_INSENSITIVE, getApplyColumn());
      filterList.add(filterApplied);
    }
    if (!checkBoxFilterStandard.isSelected()) {
      Filter filterStandard = new PatternFilter("nei",
          Pattern.CASE_INSENSITIVE, 11);
      filterList.add(filterStandard);
    }
    if (!checkBoxFilterOwn.isSelected()) {
      Filter filterStandard = new PatternFilter("ja",
          Pattern.CASE_INSENSITIVE, 11);
      filterList.add(filterStandard);
    }
    if (group != null) {
      PatternFilter filterProductAreaGroup = new PatternFilter(
          group.getProductAreaGroupName(), Pattern.CASE_INSENSITIVE,
          getProductAreaColumn());
      filterList.add(filterProductAreaGroup);
    }
    setAdditionFilters(filterList);
View Full Code Here

Examples of org.jdesktop.swingx.decorator.PatternFilter

          tableOrders);
      if (productAreaGroup != null
          && !productAreaGroup.getProductAreaGroupName()
              .equalsIgnoreCase("Alle")) {

        Filter[] filters = new Filter[] { new PatternFilter(
            productAreaGroup.getProductAreaGroupName(),
            Pattern.CASE_INSENSITIVE, orderPanelType.getProductAreaGroupColumn()) };
        FilterPipeline filterPipeline = new FilterPipeline(filters);
        tableOrders.setFilters(filterPipeline);
View Full Code Here

Examples of org.jdesktop.swingx.decorator.PatternFilter

          .getValue(ProductAreaGroupModel.PROPERTY_PRODUCT_AREA_GROUP);
      if (group != null
          && !group.getProductAreaGroupName()
              .equalsIgnoreCase("Alle")) {

        Filter filter = new PatternFilter(group
            .getProductAreaGroupName(), Pattern.CASE_INSENSITIVE,
            table.getColumnExt("Produktomr�de").getModelIndex());
        FilterPipeline filterPipeline = new FilterPipeline(
            new Filter[] { filter });
        table.setFilters(filterPipeline);
View Full Code Here

Examples of org.jdesktop.swingx.decorator.PatternFilter

    objectSelectionList.clearSelection();
   
    if(checkBoxShowInactive.isSelected()){
      table.setFilters(null);
    }else{
      Filter filterApplied = new PatternFilter("nei",
          Pattern.CASE_INSENSITIVE, 5);
      FilterPipeline filterPipeline = new FilterPipeline(filterApplied);
      table.setFilters(filterPipeline);
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.