Examples of InstanceOfPredicate


Examples of org.jitterbit.functors.predicate.InstanceOfPredicate

    @Override
    public List<Object> getZOrder() {
        KList<Object> z = KList.fromItems(zOrder.getZOrder());
        if (hideEmailNodes) {
            z.removeAll(new InstanceOfPredicate(EmailWrapperNode.class));
        }
        z.keepAll(edgeFilter.asNodeFilter());
        return z;
    }
View Full Code Here

Examples of org.jitterbit.functors.predicate.InstanceOfPredicate

    private final Predicate<Object> filter;

    private Set<PopupMenuSite> unsupportedSites;

    public SingleItemPopupMenuFactory(Action action, Class<?> targetClass) {
        this(action, new InstanceOfPredicate(targetClass));
    }
View Full Code Here

Examples of org.jitterbit.functors.predicate.InstanceOfPredicate

        }

        @Override
        public void updateState(PopupMenuSite site, List<?> objects) {
            super.updateState(site, objects);
            List<?> matches = PredicateUtils.filter(objects, new InstanceOfPredicate(WebServiceCall.class));
            boolean visible = !matches.isEmpty();
            boolean enabled = visible && (objects.size() == 1);
            setVisible(visible);
            setEnabled(enabled);
        }
View Full Code Here

Examples of org.jitterbit.functors.predicate.InstanceOfPredicate

        private Collection<IntegrationEntity> collectEntities() {
            if (entity instanceof IntegrationProject) {
                return ((IntegrationProject) entity).getAllEntities();
            } else if (entity instanceof Folder) {
                KList<IntegrationEntity> items = ((Folder) entity).getAllItemsRecursively(IntegrationEntity.class);
                return items.removeAll(new InstanceOfPredicate(Folder.class));
            } else {
                Set<IntegrationEntity> items = Sets.newHashSet(project.getDependencyStore().getRequiredObjectsRecursively(entity));
                items.add(entity);
                return items;
            }
View Full Code Here

Examples of org.jitterbit.functors.predicate.InstanceOfPredicate

        public void updateState(PopupMenuSite site, List<?> objects) {
            if (site == PopupMenuSites.DETACHED_PAGE) {
                setVisible(false);
            } else {
                super.updateState(site, objects);
                setVisible(PredicateUtils.all(objects, new InstanceOfPredicate(IntegrationEntity.class)));
                setEnabled(isVisible() && getAction().isEnabled());
            }
        }
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.