Package org.jitterbit.integration.data.entity

Examples of org.jitterbit.integration.data.entity.IntegrationEntity$ModificationListener


    private class DoubleClickPageOpener extends DoubleClickHandler {

        @Override
        protected boolean handleImpl(MouseEvent evt) {
            IntegrationEntity entity = getEntityClickedOn();
            if (entity != null) {
                openPage(entity);
            }
            return true;
        }
View Full Code Here


            }
            return super.getIcon(value);
        }

        private Icon getIconForEntity(Object nodeObject) {
            IntegrationEntity entity = (IntegrationEntity) nodeObject;
            EntityType type;
            Size size;
            if (entity instanceof RootFolder) {
                size = Size.MEDIUM;
                type = ((RootFolder) entity).getItemType();
            } else {
                size = Size.SMALL;
                type = entity.getEntityType();
            }
            EntityIcons icons = EntityIcons.forType(type);
            ValidationStatus status = validationModel.getStatus(entity, true);
            return icons.getIcon(Category.fromValidationStatus(status), size);
        }
View Full Code Here

    }

    private void selectInTree(EditorServiceEvent e) {
        Editor page = e.getEditor();
        if (page instanceof IntegrationEntityPage) {
            IntegrationEntity entity = ((IntegrationEntityPage) page).getObject();
            view.displayInTree(entity);
        }
    }
View Full Code Here

            if (entity == null) {
                sb.append("[null]");
            } else {
                sb.append("Name=").append(entity.getName());
                sb.append(" ID=").append(entity.getID());
                IntegrationEntity parent = entity.getParent();
                if (parent != null && !(parent instanceof RootFolder)) {
                    sb.append(" Parent={").append(toString(entity.getParent(), null, null)).append("}");
                }
            }
            if (postfix != null) {
View Full Code Here

        }
    }

    private Folder findParentForFolder(List<IntegrationEntity> selectedItems) {
        if (selectedItems.size() == 1) {
            IntegrationEntity parent = selectedItems.get(0);
            if (parent instanceof Folder) {
                return (Folder) parent;
            }
            throw new RuntimeException("Folder cannot be created under a " + parent.getEntityType());
        }
        throw new RuntimeException("Cannot find an appropriate owner for the new folder.");
    }
View Full Code Here

        list.setSelectionMode(ListSelectionMode.SINGLE_SELECTION);
        list.addSelectionListener(new SelectionListener() {

            @Override
            public void selectionChanged(SelectionChangedEvent evt) {
                IntegrationEntity entity = getSelectedEntity();
                publishPath(ResultList.this, entity);
            }
        });
        return list;
    }
View Full Code Here

        return validateItems(project, toDeploy);
    }

    private ManagedProject getProject(Collection<IntegrationEntity> toDeploy) {
        assert (toDeploy != null) && !toDeploy.isEmpty();
        IntegrationEntity e = toDeploy.iterator().next();
        IntegrationProject project = ProjectUtils.getProject(e);
        return project.getExtensionObject(ManagedProject.class);
    }
View Full Code Here

    public T getSelectedEntity() {
        UiThreadSupplier<T> supplier = UiThreadSupplier.wrap(new Supplier<T>() {

            @Override
            public T get() {
                IntegrationEntity entity = entityBoxControls.getSelectedEntity();
                if (entityClass.isInstance(entity)) {
                    return entityClass.cast(entity);
                }
                return null;
            }
View Full Code Here

    private KList<IntegrationEntity> translateDescriptorList(List<EntityDescriptor> eds) {
        KList<IntegrationEntity> entities = KList.newList();
        if (eds != null) {
            for (EntityDescriptor ed : eds) {
                IntegrationEntity e = dataLookup.getEntity(ed.getID());
                if (e != null) {
                    entities.add(e);
                }
            }
        }
View Full Code Here

    protected abstract boolean handleDrop(IntegrationEntity entity, TransferSupport support);

    @Override
    public final boolean canImport(TransferSupport support) {
        if (acceptsDropAction(support.getDropAction())) {
            IntegrationEntity entity = getDraggedEntity(support);
            if (entity != null) {
                return EntityDropHandler.this.accepts(entity, support);
            }
        }
        return false;
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.IntegrationEntity$ModificationListener

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.